[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] Matrix Multiplication Help
From: |
James Bergstra |
Subject: |
Re: [Help-gsl] Matrix Multiplication Help |
Date: |
Fri, 30 Oct 2009 09:04:36 -0400 |
If you want to multiply matrices that the user has typed in, your
program needs to look something like:
1. allocate storage for each of A, B and C matrices (gsl_matrix_alloc
for example)
2. ask the user to type in values, and store them into the matrices A and B
3. call the gsl_cblas_dgemm function as in the manual to fill the
matrix C from the values in A and B.
On Fri, Oct 30, 2009 at 7:17 AM, syed raza <address@hidden> wrote:
> Hi
>
> I am new using GSL library. Can any body help me in finding the AB=C
> matrix Multiplication using the GSL library using C Language. Where A,B
> are any array/matrices entered by user.
>
> The Example in the GSL Reference manual (attached) is for fixed values ,
> mean matrix values are already there.
>
> I want to take the matrix values from the user . but I not sure that the
> gsl_blas_dgemm (, ,) will work through variables or not.
>
> Please guide me in this regard.
>
>
>
> Thanks
>
> _______________________________________________
> Help-gsl mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gsl
>
>
--
http://www-etud.iro.umontreal.ca/~bergstrj