Next: 5.2 MXMB: matrix-matrix product
Up: 5 Linear algebra subroutines
Previous: 5 Linear algebra subroutines
subroutine mxma(a,mcola,mrowa,b,mcolb,mrowb,
*r,mcolr,mrowr,ncol,nlink,nrow)
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 matrix
- mcolb
- memory increment in b between adjacent columns
of
.
- mrowb
- memory increment in b between adjacent rows of
.
- r
- real array containing the matrix
; r is cleared
to zero at the start of mxma, and so any previous contents
are lost.
- mcolr
- memory increment in r between adjacent columns
of
.
- mrowr
- memory increment in r between adjacent rows of
.
- ncol
- number of rows in
and
.
- nlink
- dimension which is summed over: number of rows in
and number of columns in
.
- nrow
- number of columns in
and
.
Thus standard use of mxma would take the form
call mxma(a,1,nlink,b,1,nrow,r,1,nrow,ncol,nlink,nrow)
whilst, for example,
call mxma(a,1,nlink,b,nrow,1,r,1,nrow,ncol,nlink,nrow)
would multiply a(ncol,nlink) by the transpose of
b(nrow,link).
Next: 5.2 MXMB: matrix-matrix product
Up: 5 Linear algebra subroutines
Previous: 5 Linear algebra subroutines
P.J. Knowles and H.-J. Werner
molpro-support@tc.bham.ac.uk
Jan 10, 2000