Changeset 799 for trunk/psLib/src/dataManip/psMatrix.h
- Timestamp:
- May 27, 2004, 4:53:27 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psMatrix.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMatrix.h
r760 r799 21 21 * @author Ross Harman, MHPCC 22 22 * 23 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $24 * @date $Date: 2004-05-2 4 21:10:03$23 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 24 * @date $Date: 2004-05-28 02:53:27 $ 25 25 * 26 26 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 49 49 * 50 50 * Performs a LU decomposition on a psImage matrix and returns the LU matrix. If the user specifies NULL as the 51 * outImage argument, then the decomposition is done in-place and inImage will hold the inverted image. The input52 * image must be square. This function operates only with psF32 and psF64 data types.51 * outImage argument, then the output argument will be created based on input values. The input image must 52 * be square. This function operates only with the psF32 data type. 53 53 * 54 54 * @return psImage*: Pointer to LU decomposed psImage. … … 102 102 /** Performs basic psImage matrix operations. 103 103 * 104 * Performs psImage matrix operations for: addition, subtraction, multiplication. For addition, each element 105 * of the input image is added to the corresponding element of the output matrix. Subtraction works in a 106 * similar manner. For multiplication, the function performs a classical matrix multiplication involving row 107 * and column operations. For matrix multiplication, the number of columns must match the number of rows for 108 * inImage1 and inImage2, respectively. Matrix division is not defined for this function. If the user 109 * specifies NULL as the outImage argument, then a new psImage will be created and returned. This function 110 * operates only with psF32 and psF64 data types. 104 * Performs a classical matrix multiplication involving row and column operations. This function assumes both 105 * matrices are the same size. If the user specifies NULL as the outImage argument, then a new psImage will be 106 * created and returned. This function operates only with the psF64 data type. GSL indexes the top row as the 107 * zero row, not the bottom. 111 108 * 112 109 * @return psImage*: Pointer to resulting psImage. 113 110 */ 114 psImage *psMatrix Op(111 psImage *psMatrixMultiply( 115 112 psImage *outImage, ///< Matrix to return, or NULL. 116 113 psImage *inImage1, ///< First input image. 117 const char op, ///< Operation to perform: "+", "-", "*".118 114 psImage *inImage2 ///< Second input image. 119 115 ); … … 134 130 /** Calculate matrix eigenvectors. 135 131 * 136 * Calculates the eigenvectors for a matrix. The input image must be s quare. If the user specifies NULL as132 * Calculates the eigenvectors for a matrix. The input image must be symmetric. If the user specifies NULL as 137 133 * the outImage argument, then a new psImage will be created and returned. This function operates only with 138 * psF32 and psF64 data types.134 * the psF64 data type. 139 135 * 140 136 * @return psImage*: Pointer to matrix of Eigenvectors. 141 137 */ 142 138 psImage *psMatrixEigenvectors( 143 psImage *outImage, ///< Eigenvectors to return, or NULL.139 psImage *outImage, ///< Eigenvectors to return, or NULL. 144 140 psImage *inImage ///< Input image. 145 141 ); … … 147 143 /** Convert matrix to vector. 148 144 * 149 * Converts a 1-d matrix into a vector. If the user specifies NULL as the outVector argument, then a new psImage will be created 150 * and returned. This function operates only with psF32 and psF64 data types. 145 * Converts a 1-d psImage matrix into a vector. If the user specifies NULL as the outVector argument, then a 146 * new psVector will be created. The input matrix must be a 1-d column matrix. This function operates only with 147 * the psF64 data type 151 148 * 152 149 * @return psVector*: Pointer to psVector. … … 159 156 /** Convert vector to matrix. 160 157 * 161 * Converts a vector to a 1-d psImage matrix into a vector. If the user specifies NULL as the outImage 162 * argument, then a new psImage will be created and returned. This function operates only with psF32 and 163 * psF64 data types. 158 * Converts a vector into a 1-d column psImage matrix. If the user specifies NULL as the outImage argument, 159 * then a new psImage will be created. This function operates only with the psF64 data type. 164 160 * 165 161 * @return psVector*: Pointer to psIamge.
Note:
See TracChangeset
for help on using the changeset viewer.
