Table of Contents
QccMatrixMultiply - multiply two matrices
#include "libQccPack.h"
int QccMatrixMultiply(const QccMatrix matrix1, int num_rows1, int num_cols1,
const QccMatrix matrix2, int num_rows2, int num_cols2, QccMatrix matrix3);
QccMatrixMultiply() 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 QccMatrixMultiply().
The inner matrix dimensions must agree
for matrix multiplication. That is, num_cols1 and num_rows2 must be the
same; if not, QccMatrixMultiply() returns in error.
QccMatrixMultiply()
returns 0 on success, 1 on error.
QccMatrix(3)
, QccPack(3)
Copyright (C) 1997-2021 James E. Fowler
Table of Contents