Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

matrixFunctionInterface.cpp File Reference


Detailed Description

Miscellaneous matrix functions.

Author:
Author
jayhawk_hokie
Version:
Revision
1.3
Date:
Date
2007/07/24 08:40:44

Definition in file matrixFunctionInterface.cpp.

#include "matrixFunctionInterface.h"

Include dependency graph for matrixFunctionInterface.cpp:

Include dependency graph

Go to the source code of this file.

Functions

void eigenValues (Matrix _Matrix, Matrix &_EigenVectors, Vector &_RealEigenValues, Vector &_ImaginaryEigenValues)
 Takes in a square matrix and returns, by reference, the Real and Imaginary Eigenvalues and the Eigenvectors for that matrix This function does not normalize the Eigenvectors.
bool greatestEigenValue (Matrix _Matrix, double &_EigenValue, Vector &_EigenVector, int _MaxIterations)
double norm2 (Matrix _Matrix)
 Takes in a square matrix and returns the norm of the matrix, which is the square root of the largest eigenvalue of A(transpose)*A.
REAL ** convertMatrix (Matrix _Matrix)
 Takes in a Matrix and returns a REAL ** with the same values.
REALconvertVector (Vector _Vector)
 Takes in a Vector and returns a REAL * with the same values.
Matrix convertMatrix (REAL **_Matrix, int n)
 Takes in a REAL ** and returns a Matrix with the same values.
Vector convertVector (REAL *_Vector, int n)
 Takes in a REAL * and returns a Vector with the same values.
Matrix matrixInv3x3 (Matrix _A)
 Determines the inverse of a 3x3 matrix.
double matrixDet (Matrix _A)
 Determines the determinate of a matrix up to 3x3.
double matrixDet2x2 (Matrix _A)
 Determines the determinate of a 2x2 matrix.


Function Documentation

Matrix convertMatrix REAL **  _Matrix,
int  n
 

Takes in a REAL ** and returns a Matrix with the same values.

Parameters:
finalMatrix the Matrix in REAL **
Returns:
_Matrix is a Matrix

Definition at line 258 of file matrixFunctionInterface.cpp.

References O_SESSAME::Matrix.

Referenced by eigenValues().

REAL** convertMatrix Matrix  _Matrix  ) 
 

Takes in a Matrix and returns a REAL ** with the same values.

Parameters:
_Matrix is a Matrix
Returns:
finalMatrix the Matrix in REAL **

Definition at line 215 of file matrixFunctionInterface.cpp.

Vector convertVector REAL _Vector,
int  n
 

Takes in a REAL * and returns a Vector with the same values.

Parameters:
finalMatrix the Matrix in REAL *
Returns:
_Matrix is a Vector

Definition at line 276 of file matrixFunctionInterface.cpp.

References O_SESSAME::Vector.

Referenced by eigenValues().

REAL* convertVector Vector  _Vector  ) 
 

Takes in a Vector and returns a REAL * with the same values.

Parameters:
_Matrix is a Vector
Returns:
finalMatrix the Matrix in REAL *

Definition at line 238 of file matrixFunctionInterface.cpp.

void eigenValues Matrix  _Matrix,
Matrix _EigenVectors,
Vector _RealEigenValues,
Vector _ImaginaryEigenValues
 

Takes in a square matrix and returns, by reference, the Real and Imaginary Eigenvalues and the Eigenvectors for that matrix This function does not normalize the Eigenvectors.

Parameters:
_Matrix is a matrix passed to find the eigenvalues and eigenvectors
Returns:
_EigenVectors is a matrix of the eigen vectors

_RealEigenValues is a vector of the real eigenvalues of matrix _Matrix

_ImaginaryEigenValues is a vector of the imaginary eigenvalues of matrix _Matrix

Definition at line 23 of file matrixFunctionInterface.cpp.

References convertMatrix(), convertVector(), eigen(), O_SESSAME::Matrix, MATRIX, REAL, O_SESSAME::Vector, VEKTOR, vmalloc(), vminit(), and VVEKTOR.

Referenced by norm2().

bool greatestEigenValue Matrix  _Matrix,
double &  _EigenValue,
Vector _EigenVector,
int  _MaxIterations
 

Definition at line 73 of file matrixFunctionInterface.cpp.

References O_SESSAME::Matrix, and O_SESSAME::Vector.

Referenced by norm2().

double matrixDet Matrix  _A  ) 
 

Determines the determinate of a matrix up to 3x3.

Parameters:
_A matrix is a nxn matrix where n<=3
Returns:
_det is a double

Definition at line 346 of file matrixFunctionInterface.cpp.

References _, O_SESSAME::Matrix, and matrixDet2x2().

Referenced by matrixInv3x3().

double matrixDet2x2 Matrix  _A  ) 
 

Determines the determinate of a 2x2 matrix.

Parameters:
_A matrix is a 2x2 matrix
Returns:
_det is a double

Definition at line 377 of file matrixFunctionInterface.cpp.

References O_SESSAME::Matrix.

Referenced by matrixDet().

Matrix matrixInv3x3 Matrix  _A  ) 
 

Determines the inverse of a 3x3 matrix.

Parameters:
_A matrix is a 3x3 matrix to be inverted
Returns:
_Ainv is a 3x3 Matrix

Definition at line 291 of file matrixFunctionInterface.cpp.

References _, O_SESSAME::Matrix, and matrixDet().

Referenced by slidingModeControlMRPMW::Initialize(), slidingModeControlMRPMW::Run(), and QuaternionEKFObserver::SingleMeasurement().

double norm2 Matrix  _Matrix  ) 
 

Takes in a square matrix and returns the norm of the matrix, which is the square root of the largest eigenvalue of A(transpose)*A.

Parameters:
_Matrix is a matrix passed to find the norm
Returns:
norm2 is the norm of the matrix _Matrix
Examples:
testEnvironment.cpp.

Definition at line 169 of file matrixFunctionInterface.cpp.

Referenced by norm2().


Generated on Wed Sep 5 12:54:32 2007 for DSACSS Operational Code by  doxygen 1.3.9.1