forms b=M.x where Q is nxn, stored by columns, with stride nmax
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer | :: | n | ||||
integer | :: | nmax | ||||
real | :: | Q | ||||
real | :: | x | ||||
real | :: | b |
subroutine Qprod(n,nmax,Q,x,b)
implicit double precision (a-h,o-z)
dimension Q(*),x(*),b(*)
do i=1,n
b(i)=0.D0
end do
i1=1
do i=1,n
call mysaxpy(x(i),Q(i1),b,n)
i1=i1+nmax
end do
end subroutine Qprod