Table of Contents
QccMatrixIntMultiply - multiply two integer matrices
#include
"libQccPack.h"
int QccMatrixIntMultiply(const QccMatrixInt matrix1, int
num_rows1, int num_cols1, const QccMatrixInt matrix2, int num_rows2, int
num_cols2, QccMatrixInt matrix3);
QccMatrixIntMultiply()
multiplies matrix1, a matrix of dimension num_rows1 x num_cols1 by another
matrix, matrix2, of dimension num_rows2 x num_cols2. The result of the
multiplication, a matrix of dimension num_rows1 x num_cols2 is returned
as matrix3 which must be allocated to this size before calling QccMatrixIntMultiply().
The inner matrix dimensions must agree for matrix multiplication. That
is, num_cols1 and num_rows2 must be the same; if not, QccMatrixIntMultiply()
returns in error.
QccMatrixIntMultiply() returns 0 on success,
1 on error.
QccMatrix(3)
, QccPack(3)
Copyright (C) 1997-2021
James E. Fowler
Table of Contents