This class is designed to enable fast vectormatrix operations for small sizes (from 2 to 5)
Inheritance:
Public Fields

fields
Public Methods

constructor and destructor

vector and matrix initialization

vector and matrix operations

other methods
Documentation
This class is designed to enable fast vectormatrix operations for small sizes (from 2 to 5)
 fields
 int n
 matrix size
 constructor and destructor
 fastMatrix(int n_)
 Creates a set of fast vectormatrix operations of a given size
 Parameters:
 n_  is the size of the matrix
 ~fastMatrix()
 destructor
 vector and matrix initialization
 void initVector(real* V_)
 Zeroing the vector V_
 void initMatrix(real** M_)
 Zeroing the matrix M_
 void initMatrix(real** M_, real d_)
 Filling all the matrix M_ with d_
 vector and matrix operations
 void transposeMatrix(real** M_)
 Transpose the matrix M_
 void copyVector(real* V1_, real* V2_)
 Copy vector V2_ to V1_
 void copyMatrix(real** M1_, real** M2_)
 Copy matrix M2_ to M1_
 void vectorialProduct(real** M_, real* X_, real* T_X_)
 Computes the vectorial product
 Parameters:
 M_  is the matrix that contains
X_  is a vector
T_X_  is the transpose of vector
 void product(real* VM_, real* V_, real** M_)
 Computes the vectormatrix product
 Parameters:
 VM_  is the vector that contains
V_  is a vector
M_  is a matrix
 void addMatrix(real** M_, real** Madd_)
 Computes the addition of 2 matrices
 Parameters:
 M_  is the matrix that contains
Madd_  is a matrix
 void prodMatrix(real** M_, real d_)
 Computes the product of a matrix and a scalar
 Parameters:
 M_  is the matrix that contains
d_  is a scalar
 void divMatrix(real** M_, real d_)
 Computes the division of a matrix and a scalar
 Parameters:
 M_  is the matrix that contains
d_  is a scalar
 void divVector(real* V_, real d_)
 Computes the division of a vector and a scalar
 Parameters:
 V_  is the vector that contains
d_  is a scalar
 real inverse(real** Minv_, real** M_)
 Computes the inverse of a matrix
 Parameters:
 Minv_  contains
M_  is a matrix
 Returns:
 the determinant
 real normVector(real* V_)
 Computes the norm of a vector
 Parameters:
 V_  is a vector
 Returns:
 the norm of the vector
 real normMatrix(real** M_)
 Computes the norm of a matrix
 Parameters:
 M_  is a matrix
 Returns:
 the norm of the matrix
 other methods
 void printVector(real* V_)
 print the vector V_
 void printMatrix(real** M_)
 print the matrix M_
 This class has no child classes.
 Author:
 Sebastien Marcel (marcel@idiap.ch)
 Version:
 2.0
Fri 15 Jul 2005 11:35:11 AM CEST
 Since:
 1.0
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.