At Tue, 16 Dec 2008 13:00:20 +0100,
George Kalema wrote:
> Brian, many thanks for your endavor to help. However, compiling my code
> below returns error C2664: 'gsl_matrix_submatrix' : cannot convert parameter
> 1 from 'double *' to 'gsl_matrix *' Types pointed to are unrelated;
> conversion requires reinterpret_cast, C-style cast or function-style cast.
> Please note that parameter 1 (matrix X) is just read in (from SAS).

If you need to convert from an array of doubles to a matrix or vector,
there are several functions available e.g. gsl_matrix_view_array --
see the vectors and matrices chapter of the manual for details.

-- 
Brian Gough

Support freedom by joining the FSF!
http://www.fsf.org/news/fall-2008-fundraiser


_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to