[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] return value of matrix operations
From: |
Thomas Weber |
Subject: |
Re: [Help-gsl] return value of matrix operations |
Date: |
Fri, 26 Feb 2010 08:52:11 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Feb 26, 2010 at 01:36:50AM -0500, kamaraju kusumanchi wrote:
> I am a bit confused about where the result of a matrix operation
> function is stored. For example consider gsl_matrix_add as described
> in http://www.gnu.org/software/gsl/manual/html_node/Matrix-operations.html.
>
> Function: int gsl_matrix_add (gsl_matrix * a, const gsl_matrix * b)
>
> This function adds the elements of matrix b to the elements of
> matrix a, a'(i,j) = a(i,j) + b(i,j). The two matrices must have the
> same dimensions.
Actually, the help text is clearer than the formula:
"adds the elements of matrix b to the elements of matrix a"
So, after the call, you have a different matrix a then before.
Thomas