Table of Contents

NAME

QccMatrixMultiply - multiply two matrices

SYNOPSIS

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

DESCRIPTION

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.

RETURN VALUE

QccMatrixMultiply() 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