Table of Contents
QccMatrixIntVectorMultiply - multiply an integer matrix on the right
by a column vector
#include "libQccPack.h"
int QccMatrixIntVectorMultiply(const
QccMatrixInt matrix, const QccVectorInt vector1, QccVectorInt vector2,
int num_rows, int num_cols);
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.
QccMatrixIntVectorMultiply()
returns 0 on success, 1 on error.
QccVectorIntDotProduct(3)
,
QccMatrixInt(3)
, QccPack(3)
Copyright (C) 1997-2021 James E. Fowler
Table of Contents