| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
D.4 Examples
The following program computes the product of two matrices using the
Level-3 BLAS function SGEMM,
The matrices are stored in row major order but could be stored in column
major order if the first argument of the call to cblas_sgemm was
changed to CblasColMajor.
|
To compile the program use the following command line,
$ gcc -Wall demo.c -lgslcblas |
There is no need to link with the main library -lgsl in this
case as the CBLAS library is an independent unit. Here is the output
from the program,
$ ./a.out[ 367.76, 368.12 674.06, 674.72 ] |
