- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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?
