IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2004, 4:53:27 PM (22 years ago)
Author:
harman
Message:

Added to psMatrix functionality

File:
1 edited

Legend:

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

    r760 r799  
    2121 *  @author Ross Harman, MHPCC
    2222 *   
    23  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    24  *  @date $Date: 2004-05-24 21:10:03 $
     23 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     24 *  @date $Date: 2004-05-28 02:53:27 $
    2525 *
    2626 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4949 *
    5050 *  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 input
    52  *  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.
    5353 *
    5454 *  @return  psImage*: Pointer to LU decomposed psImage.
     
    102102/** Performs basic psImage matrix operations.
    103103 *
    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. 
    111108 *
    112109 *  @return  psImage*: Pointer to resulting psImage.
    113110 */
    114 psImage *psMatrixOp(
     111psImage *psMatrixMultiply(
    115112    psImage *outImage,  ///< Matrix to return, or NULL.
    116113    psImage *inImage1,  ///< First input image.
    117     const char op,      ///< Operation to perform: "+", "-", "*".
    118114    psImage *inImage2   ///< Second input image.
    119115);
     
    134130/** Calculate matrix eigenvectors.
    135131 *
    136  *  Calculates the eigenvectors for a matrix. The input image must be square. If the user specifies NULL as
     132 *  Calculates the eigenvectors for a matrix. The input image must be symmetric. If the user specifies NULL as
    137133 *  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.
    139135 *
    140136 *  @return  psImage*: Pointer to matrix of Eigenvectors.
    141137 */
    142138psImage *psMatrixEigenvectors(
    143     psImage *outImage, ///< Eigenvectors to return, or NULL.
     139    psImage *outImage,  ///< Eigenvectors to return, or NULL.
    144140    psImage *inImage    ///< Input image.
    145141);
     
    147143/** Convert matrix to vector.
    148144 *
    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
    151148 *
    152149 *  @return  psVector*: Pointer to psVector.
     
    159156/** Convert vector to matrix.
    160157 *
    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. 
    164160 *
    165161 *  @return  psVector*: Pointer to psIamge.
Note: See TracChangeset for help on using the changeset viewer.