IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2004, 6:03:48 PM (22 years ago)
Author:
Paul Price
Message:

Added transpose operation, and changed multiplication to a generic "op".
Also added conversion between a matrix and vector (for when you've got
a Nx1 or 1xN matrix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psMatrix.h

    r160 r239  
    2525/** Invert matrix.  Not using restrict, to allow inversion to be done in-place */
    2626psMatrix *
    27 psInvertMatrix(psMatrix *out,           //!< Matrix to return, or NULL
     27psMatrixInvert(psMatrix *out,           //!< Matrix to return, or NULL
    2828               const psMatrix *myMatrix, //!< Matrix to be inverted
    2929               float *restrict determinant //!< Determinant to return, or NULL
     
    3232/** Matrix determinant */
    3333float
    34 psDeterminant(const psMatrix *restrict myMatrix //!< Matrix to get determinant for
    35               );
     34psMatrixDeterminant(const psMatrix *restrict myMatrix //!< Matrix to get determinant for
     35                    );
    3636
    37 /** Matrix Multiplication.  Not using restrict, to allow matrix1 == matrix2, and to do multiplication
    38  * in-place
    39  */
    40 psMatrix
    41 psMatrixMultiply(psMatrix *out,         //!< Matrix to return, or NULL
    42                  const psMatrix *matrix1, //!< Matrix 1
    43                  const psMatrix *matrix2 //!< Matrix 2
    44                  );
     37/** Matrix operations */
     38psMatrix *
     39psMatrixOp(psMatrix *out,               //!< Matrix to return, or NULL
     40           const psMatrix *matrix1,     //!< Matrix 1
     41           const char *op,              //!< Operation to perform
     42           const psMatrix *matrix2      //!< Matrix 2
     43           );
     44
     45/** Transpose Matrix */
     46psMatrix *
     47psMatrixTranspose(psMatrix *out,        //!< Matrix to return, or NULL
     48                  const psMatrix *myMatrix //!< Matrix to transpose
     49                  );
     50
     51/** Convert matrix to vector.  Mainly for a 1-d matrix. */
     52psVector *
     53psMatrixToVector(psMatrix *myMatrix     //!< Matrix to convert
    4554
    4655#endif
Note: See TracChangeset for help on using the changeset viewer.