class fastMatrix

This class is designed to enable fast vector-matrix operations for small sizes (from 2 to 5)

Inheritance:


Public Fields

[more] fields

Public Methods

[more] constructor and destructor
[more] vector and matrix initialization
[more] vector and matrix operations
[more] other methods


Documentation

This class is designed to enable fast vector-matrix operations for small sizes (from 2 to 5)

o fields

oint n
matrix size

o constructor and destructor

o fastMatrix(int n_)
Creates a set of fast vector-matrix operations of a given size

Parameters:
n_ - is the size of the matrix

o ~fastMatrix()
destructor

o vector and matrix initialization

ovoid initVector(real* V_)
Zero-ing the vector V_

ovoid initMatrix(real** M_)
Zero-ing the matrix M_

ovoid initMatrix(real** M_, real d_)
Filling all the matrix M_ with d_

o vector and matrix operations

ovoid transposeMatrix(real** M_)
Transpose the matrix M_

ovoid copyVector(real* V1_, real* V2_)
Copy vector V2_ to V1_

ovoid copyMatrix(real** M1_, real** M2_)
Copy matrix M2_ to M1_

ovoid 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

ovoid product(real* VM_, real* V_, real** M_)
Computes the vector-matrix product

Parameters:
VM_ - is the vector that contains
V_ - is a vector
M_ - is a matrix

ovoid addMatrix(real** M_, real** Madd_)
Computes the addition of 2 matrices

Parameters:
M_ - is the matrix that contains
Madd_ - is a matrix

ovoid 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

ovoid 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

ovoid 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

oreal inverse(real** Minv_, real** M_)
Computes the inverse of a matrix

Parameters:
Minv_ - contains
M_ - is a matrix
Returns:
the determinant

oreal normVector(real* V_)
Computes the norm of a vector

Parameters:
V_ - is a vector
Returns:
the norm of the vector

oreal normMatrix(real** M_)
Computes the norm of a matrix

Parameters:
M_ - is a matrix
Returns:
the norm of the matrix

o other methods

ovoid printVector(real* V_)
print the vector V_

ovoid 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++.