Table of Contents

NAME

QccMatrixIntVectorMultiply - multiply an integer matrix on the right by a column vector

SYNOPSIS

#include "libQccPack.h"

int QccMatrixIntVectorMultiply(const QccMatrixInt matrix, const QccVectorInt vector1, QccVectorInt vector2, int num_rows, int num_cols);

DESCRIPTION

QccMatrixIntVectorMultiply() multiplies an integer matrix of dimension num_rows by num_cols by an integer vector, vector1, of dimension 1 by num_cols (i.e., a column vector). This multiplication is accomplished by using QccVectorIntDotProduct(3) to take the inner product between each row of matrix and vector1. The result of the multiplication, a 1 by num_rows dimensioned integer vector, is returned in vector2. It is assumed that vector2 is allocated to the proper size before QccMatrixIntVectorMultiply() is called.

RETURN VALUE

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

SEE ALSO

QccVectorIntDotProduct(3) , QccMatrixInt(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