22 void casadi_rank1(T1* A,
const casadi_int* sp_A, T1 alpha,
const T1* x,
const T1* y) {
23 casadi_int ncol_A, cc, rr, el;
24 const casadi_int *colind_A, *row_A;
27 colind_A = sp_A+2; row_A = sp_A + 2 + ncol_A+1;
30 for (cc=0; cc<ncol_A; ++cc) {
32 for (el=colind_A[cc]; el<colind_A[cc+1]; ++el) {
37 A[el] += alpha*x[rr]*y[cc];