Table of Contents

NAME

QccMatrixIntMultiply - multiply two integer matrices

SYNOPSIS

#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);

DESCRIPTION

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.

RETURN VALUE

QccMatrixIntMultiply() returns 0 on success, 1 on error.

SEE ALSO

QccMatrix(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads