Table of Contents

NAME

QccMatrixVectorMultiply - multiply a matrix on the right by a column vector

SYNOPSIS

#include "libQccPack.h"

int QccMatrixVectorMultiply(const QccMatrix matrix, const QccVector vector1, QccVector vector2, int num_rows, int num_cols);

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

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