I think you're way out of your league.
It's hard to say whether you don't understand the programming aspect, or understand the math aspect.
If you don't understand the math, then it's going to be hard explaining what each of those parameters are for.
Since conj is unused inside the function, there's no point in passing anything useful, so
Now paste that into your main() function and try compiling it.Code:c_sdot ( 0, // unused conjugate 3, // int n, 0.0, // float alpha, array_a, // const float* x, 1, // int incx, 0.0, // float beta, array_b, // const float* y, 1, // int incy, results // float* r );
Then add a loop to print the results array, and then perhaps figure out whether the resutl is what you expect.