Can i put matrix vector multiplication in the same vector using lapack
Answers
Answered by
0
have to generate a matrix using
do i=1,n
x(i) = i*i*1.0D+00
do j=1,n
A(i,j) = (i+j)*j*1.00D+00
end do
end do
and then simply multiply Matrix A by Vector x (b=Ax).
For Lapack, I simply use CALL DGEMV('N',n,n,1.0D+00,a,n,x,1,0.0D+00,b,1)
How do I achieve this in PBLAS? I have run the sample (example1.f from the website) program and it works.
What is partitioning of the matrix? How do I do it?
Everyone (in tutorials) seem to be concentrating on DGESV while I want DGEMV/DGEMM i.e. BLAS
do i=1,n
x(i) = i*i*1.0D+00
do j=1,n
A(i,j) = (i+j)*j*1.00D+00
end do
end do
and then simply multiply Matrix A by Vector x (b=Ax).
For Lapack, I simply use CALL DGEMV('N',n,n,1.0D+00,a,n,x,1,0.0D+00,b,1)
How do I achieve this in PBLAS? I have run the sample (example1.f from the website) program and it works.
What is partitioning of the matrix? How do I do it?
Everyone (in tutorials) seem to be concentrating on DGESV while I want DGEMV/DGEMM i.e. BLAS
Similar questions
Math,
7 months ago
Social Sciences,
7 months ago