Changeset 1407 for trunk/psLib/src/math/psMatrix.h
- Timestamp:
- Aug 6, 2004, 2:06:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMatrix.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMatrix.h
r974 r1407 1 1 2 /** @file psMatrix.h 2 3 * … … 21 22 * @author Ross Harman, MHPCC 22 23 * 23 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $24 * @date $Date: 2004-0 6-10 01:58:06 $24 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 25 * @date $Date: 2004-08-07 00:06:06 $ 25 26 * 26 27 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 28 29 29 30 #ifndef PSMATRIX_H 30 # define PSMATRIX_H31 # define PSMATRIX_H 31 32 32 33 /// @addtogroup Matrix … … 42 43 * @return psImage*: Pointer to LU decomposed psImage. 43 44 */ 44 psImage *psMatrixLUD( 45 psImage *outImage, ///< Image to return, or NULL. 46 psVector *outPerm, ///< Output permutation vector used by psMatrixLUSolve. 47 psImage *inImage ///< Image to decompose. 48 ); 45 psImage *psMatrixLUD(psImage * outImage, // /< Image to return, or NULL. 46 psVector * outPerm, // /< Output permutation vector used by psMatrixLUSolve. 47 psImage * inImage // /< Image to decompose. 48 ); 49 49 50 50 /** LU Solution of psImage matrix. … … 57 57 * @return psVector*: Pointer to psVector solution of matrix equation. 58 58 */ 59 psVector *psMatrixLUSolve( 60 psVector *outVector, ///< Vector to return, or NULL.61 const psImage *luImage, ///< LU-decomposed matrix.62 const psVector *inVector, ///< Vector right-hand-side of equation.63 const psVector *inPerm ///< Permutation vector resulting from psMatrixLUDfunction.64 );59 psVector *psMatrixLUSolve(psVector * outVector, // /< Vector to return, or NULL. 60 const psImage * luImage, // /< LU-decomposed matrix. 61 const psVector * inVector, // /< Vector right-hand-side of equation. 62 const psVector * inPerm // /< Permutation vector resulting from psMatrixLUD 63 // function. 64 ); 65 65 66 66 /** Invert psImage matrix. … … 73 73 * @return psImage*: Pointer to inverted psImage. 74 74 */ 75 psImage *psMatrixInvert( 76 psImage *outImage, ///< Image to return, or NULL for in-place substitution. 77 const psImage *inImage, ///< Image to be inverted 78 float *restrict det ///< Determinant to return, or NULL 79 ); 75 psImage *psMatrixInvert(psImage * outImage, // /< Image to return, or NULL for in-place substitution. 76 const psImage * inImage, // /< Image to be inverted 77 float *restrict det // /< Determinant to return, or NULL 78 ); 80 79 81 80 /** Calculate psImage matrix determinant. … … 87 86 * @return float: Determinant from psImage. 88 87 */ 89 float* psMatrixDeterminant( 90 const psImage *restrict inMatrix ///< Image used to calculate determinant. 91 ); 88 float *psMatrixDeterminant(const psImage * restrict inMatrix // /< Image used to calculate determinant. 89 ); 92 90 93 91 /** Performs psImage matrix multiplication. … … 100 98 * @return psImage*: Pointer to resulting psImage. 101 99 */ 102 psImage *psMatrixMultiply( 103 psImage *outImage, ///< Matrix to return, or NULL. 104 psImage *inImage1, ///< First input image. 105 psImage *inImage2 ///< Second input image. 106 ); 100 psImage *psMatrixMultiply(psImage * outImage, // /< Matrix to return, or NULL. 101 psImage * inImage1, // /< First input image. 102 psImage * inImage2 // /< Second input image. 103 ); 107 104 108 105 /** Transpose matrix. … … 115 112 * @return psImage*: Pointer to transposed psImage. 116 113 */ 117 psImage *psMatrixTranspose( 118 psImage *outImage, ///< Image to return, or NULL 119 const psImage *inImage ///< Image to transpose 120 ); 114 psImage *psMatrixTranspose(psImage * outImage, // /< Image to return, or NULL 115 const psImage * inImage // /< Image to transpose 116 ); 121 117 122 118 /** Calculate matrix eigenvectors. … … 128 124 * @return psImage*: Pointer to matrix of Eigenvectors. 129 125 */ 130 psImage *psMatrixEigenvectors( 131 psImage *outImage, ///< Eigenvectors to return, or NULL. 132 psImage *inImage ///< Input image. 133 ); 126 psImage *psMatrixEigenvectors(psImage * outImage, // /< Eigenvectors to return, or NULL. 127 psImage * inImage // /< Input image. 128 ); 134 129 135 130 /** Convert matrix to vector. … … 142 137 * @return psVector*: Pointer to psVector. 143 138 */ 144 psVector *psMatrixToVector( 145 psVector *outVector, ///< Vector to return, or NULL. 146 psImage *inImage ///< Image to convert. 147 ); 139 psVector *psMatrixToVector(psVector * outVector, // /< Vector to return, or NULL. 140 psImage * inImage // /< Image to convert. 141 ); 148 142 149 143 /** Convert vector to matrix. … … 156 150 * @return psVector*: Pointer to psIamge. 157 151 */ 158 psImage *psVectorToMatrix( 159 psImage *outImage, ///< Matrix to return, or NULL. 160 psVector *inVector ///< Vector to convert. 161 ); 152 psImage *psVectorToMatrix(psImage * outImage, // /< Matrix to return, or NULL. 153 psVector * inVector // /< Vector to convert. 154 ); 162 155 163 156 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
