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