[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] more than one submatrix of the same matrix?
From: |
Brian Gough |
Subject: |
Re: [Help-gsl] more than one submatrix of the same matrix? |
Date: |
Mon, 2 Feb 2004 13:42:14 +0000 |
"Eduardo ZacarÃas B." writes:
> gsl_matrix *secondRow = &gsl_matrix_submatrix(mat,1,0,1,mat->size2).matrix;
Hello,
Making a pointer to the return value of a function is not allowed in
C. The return value is on the stack and will be overwritten.
You need to copy the return value (see the LU example in the Linear
Algebra chapter of the manual (2nd ed, p187)).
regards
--
Brian Gough
Network Theory Ltd -- Publishing Free Software Manuals
15 Royal Park
Bristol BS8 3AL
United Kingdom
Tel: +44 (0)117 3179309
Fax: +44 (0)117 9048108
Web: http://www.network-theory.co.uk/
- Re: [Help-gsl] more than one submatrix of the same matrix?,
Brian Gough <=