IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 11:13:48 AM (20 years ago)
Author:
Paul Price
Message:

Synchronising with SDRS, and cleaning up:

  • Replaced is_psType() with PS_ASSERT_PTR() throughout psLib.
  • Changed "char *" to "psString" where appropriate in psDB and a few other places (to indicate pointers on the PS memory system).
  • Removed psLogArguments and psTraceArguments (functionality in psArgumentVerbosity).
  • Renamed psMetadataLookupMD to psMetadataLookupMetadata (it was about time...). Similarly with the psPolynomial?D{From,To}MD functions.
  • Removed psMetadataRemove() since it is ambiguous about what's removed --- use psMetadataRemove{Key,Index}.
  • psArrayRemoveByPos --> psArrayRemoveIndex
  • psArrayRemove --> psArrayRemoveData
File:
1 edited

Legend:

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

    r8627 r9538  
    2121 *  @author Robert DeSonia, MHPCC
    2222 *
    23  *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    24  *  @date $Date: 2006-08-26 04:34:28 $
     23 *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     24 *  @date $Date: 2006-10-13 21:13:48 $
    2525 *
    2626 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    308308// This is a temporary gauss-jordan solver based on gene's
    309309// version based on the Numerical Recipes version
    310 bool psMatrixGJSolve(
    311     psImage *a,
    312     psVector *b)
    313 {
     310bool psMatrixGJSolve(psImage *a,
     311                     psVector *b
     312                    )
     313{
     314    PS_ASSERT_IMAGE_NON_NULL(a, false);
     315    PS_ASSERT_VECTOR_NON_NULL(b, false);
     316    PS_ASSERT_IMAGE_TYPE(a, PS_TYPE_F64, false);
     317    PS_ASSERT_VECTOR_TYPE(b, PS_TYPE_F64, false);
     318    PS_ASSERT_INT_EQUAL(a->numCols, a->numRows, false);
     319    int Nx = a->numCols;
     320    PS_ASSERT_VECTOR_SIZE(b, (long int)Nx, false);
     321
    314322    psF64 *vector = b->data.F64;
    315323    psF64 **matrix = a->data.F64;
    316     int Nx = a->numCols;
    317324    int *indxc = psAlloc(Nx*sizeof(int));
    318325    int *indxr = psAlloc(Nx*sizeof(int));
Note: See TracChangeset for help on using the changeset viewer.