- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hi,
What is the most efficient way to calculate vTAv where A is a CRS sparse matrix and v is a vector using Intel MKL (Fortran)?
Thanks in advance.
Carlos
링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Dear customer,
The quadratic form x'*A*x is actually calculated as a sum of n^2 terms A(i,j)*x(i)*x(j), where i and j runs from 1 to n.
Are you going to use CSR format for matrix A? If so, you could split the quadratic form into two equations. You could use mkl_?csrsymv to calculate y:=A*x first and then use ?dot to calculate sum of dot multiplication of two vectors res=x' * y. Hope it would be useful to you.
Best regards,
Fiona
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Dear customer,
I am afraid there might no real quadratic form function for matrix with sparse storage format. The good way is to separate calculation. Thanks.
Best regards,
Fiona