IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2009, 2:18:37 PM (17 years ago)
Author:
eugene
Message:

rename psMatrixLUSolve to psMatrixLUSolution, psMatrixLUD to psMatrixLUDecomposition, add psMatrixLUInvert and distinct psMatrixLUSolve vs psMatrixGJSolve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMatrix.h

    r15820 r24084  
    3939 *  @return  psImage* : Pointer to LU decomposed psImage.
    4040 */
    41 psImage* psMatrixLUD(
     41psImage *psMatrixLUDecomposition(
    4242    psImage* out,                      ///< Image to return, or NULL.
    4343    psVector** perm,                   ///< Output permutation vector used by psMatrixLUSolve.
     
    5454 *  @return  psVector* : Pointer to psVector solution of matrix equation.
    5555 */
    56 psVector* psMatrixLUSolve(
     56psVector *psMatrixLUSolution(
    5757    psVector* out,                     ///< Vector to return, or NULL.
    5858    const psImage* LU,                 ///< LU-decomposed matrix.
     
    6161);
    6262
    63 /** Used to be a Gauss-Jordan numerical solver, but now uses LU decomposition.
     63/** LU Decomposition-based Matrix inversion
     64 *
     65 *  @return  psImage * : Pointer to psImage inverse of matrix
     66 */
     67psImage *psMatrixLUInvert(
     68    psImage *out,                  ///< place result here if not NULL
     69    const psImage* LU,             ///< LU-decomposed matrix.
     70    const psVector* perm           ///< Permutation vector resulting from psMatrixLUD function.
     71);
     72
     73/** LU Decomposition-based solver for Ax = B.
     74 *
     75 *  @return bool:   True if successful.
     76 */
     77bool psMatrixLUSolve(
     78    psImage *A,                   ///< Matrix to be solved
     79    psVector *b                   ///< Vector of values
     80);
     81
     82/** Gauss-Jordan-based solver for Ax = B.
    6483 *
    6584 *  @return bool:   True if successful.
     
    6988    psVector *b                   ///< Vector of values
    7089);
    71 
    72 /** Gauss-Jordan numerical solver for F32 input data */
    73 #define psMatrixGJSolveF32(A,B) psMatrixGJSolve(A,B)
    74 
    7590
    7691/** Invert psImage matrix.
Note: See TracChangeset for help on using the changeset viewer.