The Complete SPRLIB & ANNLIB

matmult

- multiply two matrices and store result in a new matrix

SYNOPSIS

int matmult (A, m, n, s, B, MOut)

ARGUMENTS

double **A Input matrix.
double **B Input matrix.
double **MOut Output (result) matrix.
int m First dimension. See in FUNCTION below.
int n Second dimension. See in FUNCTION below.
int s Third dimension. See in FUNCTION below.

RETURNS

TRUE if (input matrix == output matrix), FALSE if no error was detected.

FUNCTION

See above. Matrices A[1..m][1..n] and B[1..n][1..s] are input matrices (in NRinC format) where the dimensions must match and MOut[1..m][1..s] is the resulting matrix. It is assumed that the supplied input (A and B) matrices match with the required format and that the supplied output matrix MOut is also supplied with the proper dimensions. In mathematical form : MOut = A * B.

NOTE

A core dump will probably result if the requirements are violated !

SEE ALSO

matcopy, mattransp, vecinmult, matvecmult, matinv, matinvd

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998