Changeset 340
- Timestamp:
- Mar 31, 2004, 4:41:26 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psMatrix.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMatrix.h
r333 r340 7 7 */ 8 8 9 /** A matrix */10 typedef struct {11 int xSize, ySize; //!< Dimensions in x and y12 float *restrict *restrict value; //!< Values in matrix13 } psMatrix;14 15 9 /** Functions **************************************************************/ 16 10 /** \addtogroup MathGroup Math Utilities … … 18 12 */ 19 13 20 /** Constructor */21 psMatrix *22 psMatrixAlloc(int Xdimen, //!< x dimension of new matrix23 int Ydimen //!< y dimension of new matrix24 );25 26 /** Destructor */27 void28 psMatrixFree(psMatrix *restrict myMatrix //!< Matrix to destroy29 );30 31 /***********************************************************************************************************/32 14 33 15 /* Linear Algebra */ 34 16 35 17 /** Invert matrix. Not using restrict, to allow inversion to be done in-place */ 36 ps Matrix*37 psMatrixInvert(ps Matrix*out, //!< Matrix to return, or NULL38 const ps Matrix*myMatrix, //!< Matrix to be inverted18 psImage * 19 psMatrixInvert(psImage *out, //!< Matrix to return, or NULL 20 const psImage *myMatrix, //!< Matrix to be inverted 39 21 float *restrict determinant //!< Determinant to return, or NULL 40 22 ); … … 42 24 /** Matrix determinant */ 43 25 float 44 psMatrixDeterminant(const ps Matrix*restrict myMatrix //!< Matrix to get determinant for26 psMatrixDeterminant(const psImage *restrict myMatrix //!< Matrix to get determinant for 45 27 ); 46 28 47 29 /** Matrix operation: addition, subtraction, multiplication */ 48 ps Matrix*49 psMatrixOp(ps Matrix*out, //!< Matrix to return, or NULL50 const ps Matrix*matrix1, //!< Matrix 151 const ps Matrix*matrix2 //!< Matrix 230 psImage * 31 psMatrixOp(psImage *out, //!< Matrix to return, or NULL 32 const psImage *matrix1, //!< Matrix 1 33 const psImage *matrix2 //!< Matrix 2 52 34 ); 53 35 54 36 /** Transpose Matrix */ 55 ps Matrix*56 psMatrixTranspose(ps Matrix *out,//!< Matrix to return, or NULL57 const ps Matrix*myMatrix //!< Matrix to transpose37 psImage * 38 psMatrixTranspose(psImage *out, //!< Matrix to return, or NULL 39 const psImage *myMatrix //!< Matrix to transpose 58 40 ); 59 41 … … 65 47 psVector * 66 48 psMatrixToVector(psVector *out, //!< Vector to return, or NULL 67 ps Matrix*myMatrix //!< Matrix to convert49 psImage *myMatrix //!< Matrix to convert 68 50 ); 69 51 70 52 /** Convert vector to matrix. */ 71 ps Matrix*72 psVectorToMatrix(ps Matrix*out, //!< Matrix to return, or NULL53 psImage * 54 psVectorToMatrix(psImage *out, //!< Matrix to return, or NULL 73 55 psVector *myVector //!< Vector to convert 74 );75 76 /** Convert matrix to image */77 psImage *78 psMatrixToImage(psImage *out, //!< Image to return, or NULL79 psMatrix *myMatrix //!< Matrix to convert80 );81 82 /* Convert image to matrix */83 psMatrix *84 psImageToMatrix(psMatrix *out, //!< Matrix to return, or NULL85 psImage *myImage //!< Image to convert86 56 ); 87 57
Note:
See TracChangeset
for help on using the changeset viewer.
