First you need to make a "vector view" of your array, and then you can
treat it as a vector. Example:
gsl_vector_view v = gsl_vector_view_array(my_array, n);
gsl_vector_memcpy(dest, &v.vector);
On 6/10/21 11:48 PM, Fritz Sonnichsen wrote:
I am about to use some filtering routines and I am new to GSL. My C routine
creates a vector (1x1024) and I want to convert this to a gsl_vector type.
(In particular I want to use the /int gsl_vector_memcpy(gsl_vector *dest,
constgsl_vector *src) function.
I see copying routines in your document for copying gsl_vector types
(for example int gsl_vector_memcpy(gsl_vector *dest, constgsl_vector
*src) )
but I do not see one to copy my C vector to the gsl type for further
processing. Is there such a routine?
Thanks
Fritz