MATMUL — matrix multiplication#
-
MATMUL(MATRIX_A, MATRIX_B)#
Performs a matrix multiplication on numeric or logical arguments.
- Parameters:
MATRIX_A – An array of
INTEGER
,REAL
,COMPLEX
, orLOGICAL
type, with a rank of one or two.MATRIX_B – An array of
INTEGER
,REAL
, orCOMPLEX
type ifMATRIX_A
is of a numeric type; otherwise, an array ofLOGICAL
type. The rank shall be one or two, and the first (or only) dimension ofMATRIX_B
shall be equal to the last (or only) dimension ofMATRIX_A
.MATRIX_A
andMATRIX_B
shall not both be rank one arrays.
- Returns:
The matrix product of
MATRIX_A
andMATRIX_B
. The type and kind of the result follow the usual type and kind promotion rules, as for the*
or.AND.
operators.
- Standard:
Fortran 90 and later
- Class:
Transformational function
- Syntax:
RESULT = MATMUL(MATRIX_A, MATRIX_B)