help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] creating a submatrix from a matrix in a loop


From: Brian Gough
Subject: Re: [Help-gsl] creating a submatrix from a matrix in a loop
Date: Fri, 19 Dec 2008 17:25:37 +0000
User-agent: Wanderlust/2.14.0 (Africa) Emacs/22.2 Mule/5.0 (SAKAKI)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]