I want to do in place vector addition in cython, so I'm using scipy.linalg.cython_blas.daxpy
.
My syntax is:
daxpy(&n_samples, &tmp, &Q[0, ii], &inc, &G[0], &inc)
But in scikit-learn code, I read
axpy(n_samples, -w[ii], &X_data[ii * n_samples], 1, R_data, 1)
where axpy has been defined as daxpy earlier.
Is the & mandatory for the first two variable (int and double respectively) ? Why is there no & for the two first arguments in sklearn code ?