Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 162437 Details for
Bug 233932
sci-libs/mkl-10.0.3.020-r3 eselect environment module missing some paths
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
BLAS example using dgemv
testblas.c (text/plain), 667 bytes, created by
Eric Thibodeau
on 2008-08-07 16:10:20 UTC
(
hide
)
Description:
BLAS example using dgemv
Filename:
MIME Type:
Creator:
Eric Thibodeau
Created:
2008-08-07 16:10:20 UTC
Size:
667 bytes
patch
obsolete
>/* from: http://seehuhn.de/pages/linear >To compile this program we use the following command. > gcc testblas.c -o testblas -lblas >The output of this test program is > 3.0 1.0 3.0 > 1.0 5.0 9.0 > 2.0 6.0 5.0 > -1.0 > 3.0 > -3.0 >*/ >#include <stdio.h> >#include <cblas.h> > >double m[] = { > 3, 1, 3, > 1, 5, 9, > 2, 6, 5 >}; > >double x[] = { > -1, -1, 1 >}; > >double y[] = { > 0, 0, 0 >}; > >int >main() >{ > int i, j; > > for (i=0; i<3; ++i) { > for (j=0; j<3; ++j) printf("%5.1f", m[i*3+j]); > putchar('\n'); > } > > cblas_dgemv(CblasRowMajor, CblasNoTrans, 3, 3, 1.0, m, 3, > x, 1, 0.0, y, 1); > > for (i=0; i<3; ++i) printf("%5.1f\n", y[i]); > > return 0; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 233932
: 162437