- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MKL BLAS level1 and MKL Sparse BLAS level 1 contain functions for vector-vector operations.
These routines can be used for performing multiplication of selected row of one matrix and a column of other matrix.
1.Dot product the i-th row of dense matrix A (m by n matrix stored in 2 dimensional FORTRAN array) and the j-th column of dense matrix B (n by n) can be computed with the help of "?dot" routine from BLAS level 1.
res = ddot(n, a(i, 1), m, b(1,j), 1)
2.Dot product the i-th row of sparse matrix A (m by n matrix stored in the CSR matrix format) and the j-th column of dense matrix B (n by n) can be computed with the help of "?doti" routine from Sparse BLAS level 1.
res = ddoti( pointere(i)-pointerb(i), values(pointerb(i)), columns(pointerb(i)), b(1,j))
See MKL Reference Manual for more details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MKL BLAS level1 and MKL Sparse BLAS level 1 contain functions for vector-vector operations.
These routines can be used for performing multiplication of selected row of one matrix and a column of other matrix.
1.Dot product the i-th row of dense matrix A (m by n matrix stored in 2 dimensional FORTRAN array) and the j-th column of dense matrix B (n by n) can be computed with the help of "?dot" routine from BLAS level 1.
res = ddot(n, a(i, 1), m, b(1,j), 1)
2.Dot product the i-th row of sparse matrix A (m by n matrix stored in the CSR matrix format) and the j-th column of dense matrix B (n by n) can be computed with the help of "?doti" routine from Sparse BLAS level 1.
res = ddoti( pointere(i)-pointerb(i), values(pointerb(i)), columns(pointerb(i)), b(1,j))
See MKL Reference Manual for more details.
Would I need to extract a(i, 1) or b(1, j) in a vector manually first before calling the dot product function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is not actually needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would I need to extract a(i, 1) or b(1, j) in a vector manually first before calling the dot product function?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page