Collaboration diagram for Matrix Operations:
|
Files | |
| file | psMatrix.h |
| Provides functions for linear algebra operations on psImages and psVectors. | |
Functions | |
| psImage * | psMatrixLUD (psImage *outImage, psVector **outPerm, psImage *inImage) |
| LU Decomposition of psImage matrix. | |
| psVector * | psMatrixLUSolve (psVector *outVector, const psImage *luImage, const psVector *inVector, const psVector *inPerm) |
| LU Solution of psImage matrix. | |
| psImage * | psMatrixInvert (psImage *outImage, const psImage *inImage, psF32 *det) |
| Invert psImage matrix. | |
| psF32 * | psMatrixDeterminant (const psImage *inMatrix) |
| Calculate psImage matrix determinant. | |
| psImage * | psMatrixMultiply (psImage *outImage, psImage *inImage1, psImage *inImage2) |
| Performs psImage matrix multiplication. | |
| psImage * | psMatrixTranspose (psImage *outImage, const psImage *inImage) |
| Transpose matrix. | |
| psImage * | psMatrixEigenvectors (psImage *outImage, psImage *inImage) |
| Calculate matrix eigenvectors. | |
| psVector * | psMatrixToVector (psVector *outVector, const psImage *inImage) |
| Convert matrix to vector. | |
| psImage * | psVectorToMatrix (psImage *outImage, const psVector *inVector) |
| Convert vector to matrix. | |
|
|
Calculate psImage matrix determinant. Calculates the determinant of a psImage matrix and returns the single precision floating point result. The input image must be square. This function operates only with the psF64 data type. GSL indexes the top row as the zero row, not the bottom.
|
|
||||||||||||
|
Calculate matrix eigenvectors. Calculates the eigenvectors for a matrix. The input image must be symmetric and square. If the user specifies NULL as the outImage argument, then it will automatically be created. This function operates only with the psF64 data type. GSL indexes the top row as the zero row, not the bottom.
|
|
||||||||||||||||
|
Invert psImage matrix. Inverts a psImage matrix and returns the determinant as an option through the argument list. If the user specifies NULL as the outImage argument, then it will automatically be created. The input image must be square. This function operates only with the psF64 data type. Input and output arguments should not be the same. GSL indexes the top row as the zero row, not the bottom.
|
|
||||||||||||||||
|
LU Decomposition of psImage matrix. Performs a LU decomposition on a psImage matrix and returns the LU matrix. If the user specifies NULL for the outImage or outPerm arguments, then they will be automatically created. The input image must be square. This function operates only with the psF64 data type. Input and output arguments should not be the same. GSL indexes the top row as the zero row, not the bottom.
|
|
||||||||||||||||||||
|
LU Solution of psImage matrix. Solves for and returns the psVector, {x} in the equation [A]{x} = {b}. If the user specifies NULL as the outVector argument, then it will automatically be created. The input image must be square. This function operates only with the psF64 data type. Input and output arguments should not be the same. GSL indexes the top row as the zero row, not the bottom.
|
|
||||||||||||||||
|
Performs psImage matrix multiplication. Performs a classical matrix multiplication involving row and column operations. Input images must be square and the same size. If the user specifies NULL as the outImage argument, then it will automatically be created. This function operates only with the psF64 data type. GSL indexes the top row as the zero row, not the bottom.
|
|
||||||||||||
|
Convert matrix to vector. Converts a 1-d psImage matrix into a vector. If the user specifies NULL as the outVector argument, then it will automatically be created based on the input image (PS_DIMEN_VECTOR for an input image with 1 col or PS_DIMENT_TRANSV for an input image with 1 row). Either the number of rows or the number of colums of the input matrix must be 1. This function operates only with the psF64 data type.
|
|
||||||||||||
|
Transpose matrix. Performs psImage matrix transpose by substituting existing rows for columns. The input image must be square. If the user specifies NULL as the outImage argument, then it will automaticallty be created. This function operates only with the psF64 data type. GSL indexes the top row as the zero row, not the bottom.
|
|
||||||||||||
|
Convert vector to matrix. Converts a vector into a psImage matrix. If the dimensionality of the vector is PS_DIMEN_VECTOR, then the resulting psImage is a 1d column. If the dimensionality of the vector is PS_DIMEN_TRANSV, then the resulting psImage is a 1d row. If the user specifies NULL as the outImage argument, then it will automatically be created. This function operates only with the psF64 data type.
|
1.4.1