Name: Anonymous 2012-09-18 17:01
Let's say i've allocated memory for a dxd-matrix (displayed as a d^2 vector) like this:
double* A = calloc(d*d, sizeof(double));
Now i want to set the whole vector at one, like
" &A = {0,1,2,3}; "
But isn't working, is there a method setting the whole vector at once without going through every entry A[i] i=0,...,3?
Thank you!
double* A = calloc(d*d, sizeof(double));
Now i want to set the whole vector at one, like
" &A = {0,1,2,3}; "
But isn't working, is there a method setting the whole vector at once without going through every entry A[i] i=0,...,3?
Thank you!