Next: 5.4 MXVB: matrix-vector product
Up: 5 Linear algebra subroutines
Previous: 5.2 MXMB: matrix-matrix product
subroutine mxva(a,mcola,mrowa,b,mcolb,
1 r,mcolr,ncol,nlink)
implicit double precision (a-h,o-z)
dimension r(1),a(1),b(1)
calculates the
matrix product
.
- a
- real array containing the matrix
; note that the
matrix may be supplied transposed, with non-unit stride, and with
enlarged leading dimension, under the control of the parameters
mcola, mrowa described below.
- mcola
- memory increment in a between adjacent columns
of
.
- mrowa
- memory increment in a between adjacent rows of
.
- b
- real array containing the vector
- mcolb
- memory increment in b between adjacent elements
of
.
- r
- real array containing the vector
; r is cleared
to zero at the start of mxma, and so any previous contents
are lost.
- mcolr
- memory increment in r between adjacent elements
of
.
- ncol
- number of rows in
and elements in
.
- nlink
- dimension which is summed over: number of elements in
and number of columns in
.
Thus standard use of mxva would take the form
call mxva(a,1,nlink,b,1,r,1,ncol,nlink)
P.J. Knowles and H.-J. Werner
molpro-support@tc.bham.ac.uk
Jan 10, 2000