BOOTSTRAP (klibm) functions


LIBRARY ROUTINE

kdmatrix_multiply - multiply two matrices

LIBRARY CALL

int kdmatrix_multiply(
   double *matrix1,
   int    rows1,
   int    cols1,
   double *matrix2,
   int    rows2,
   int    cols2,
   double *outmat)

INPUT

OUTPUT

RETURN VALUE

TRUE (1) on success, otherwise it returns FALSE (0) and kerrno is set to KLIMITATION if the matrices are not 3x3 or 4x4.

DESCRIPTION

kdmatrix_multiply() multiplies two arbitrary matrices. The input matrices are expected to be organized in a 1 dimensional array as consecutive rows. The result is stored in the same format and has the dimensions rows1 * cols2. The result is returned in outmat.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

This function really only works on when the two matrices are either 3x3 or 4x4.

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/klibm/src/dmatrix.c

SEE ALSO

klibm(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.