IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2004, 1:29:39 PM (22 years ago)
Author:
harman
Message:

Changed psVector to be consistent with psImage

File:
1 edited

Legend:

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

    r824 r831  
    2020 *  @author Ross Harman, MHPCC
    2121 *   
    22  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    23  *  @date $Date: 2004-06-01 22:42:57 $
     22 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     23 *  @date $Date: 2004-06-02 23:29:21 $
    2424 *
    2525 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    7070/** Preprocessor macro to generate error a NULL image */
    7171#define PS_CHECK_NULL_VECTOR(NAME, RETURN)                                                          \
    72 if (NAME == NULL || NAME->vec.v == NULL) {                                                          \
     72if (NAME == NULL || NAME->data.V == NULL) {                                                          \
    7373    psError(__func__,"Invalid operation: %s or its data is NULL.", #NAME);                          \
    7474    return RETURN;                                                                                  \
     
    7878#define PS_CHECK_ALLOC_VECTOR(NAME, SIZE, PS_TYPE)                                                  \
    7979if(NAME == NULL) {                                                                                  \
    80     NAME = psVectorAlloc(PS_TYPE, SIZE);                                                            \
     80    NAME = psVectorAlloc(SIZE, PS_TYPE);                                                            \
    8181}
    8282
     
    173173    perm.size = numCols;
    174174    outPerm->n = numCols;
    175     perm.data = outPerm->vec.v;
     175    perm.data = outPerm->data.V;
    176176    PS_GSL_MATRIX_INITIALIZE(lu, outImage->data.V[0]);
    177177
     
    226226
    227227    perm.size = inPerm->n;
    228     perm.data = inPerm->vec.v;
     228    perm.data = inPerm->data.V;
    229229
    230230    b.size = inVector->n;
    231231    b.stride = 1;
    232     b.data = inVector->vec.v;
     232    b.data = inVector->data.V;
    233233
    234234    x.size = numCols;
    235235    x.stride = 1;
    236     x.data = outVector->vec.v;
     236    x.data = outVector->data.V;
    237237
    238238    // Solve for {x} in equation: {b} = [A]{x}
     
    483483
    484484    colSize = PSELEMTYPE_SIZEOF(inImage->type.type)*inImage->numRows;
    485     memcpy(outVector->vec.v, inImage->data.V[0], colSize);
     485    memcpy(outVector->data.V, inImage->data.V[0], colSize);
    486486
    487487    return outVector;
     
    510510
    511511    colSize = PSELEMTYPE_SIZEOF(outImage->type.type)*outImage->numRows;
    512     memcpy(outImage->data.V[0], inVector->vec.v, colSize);
     512    memcpy(outImage->data.V[0], inVector->data.V, colSize);
    513513
    514514    return outImage;
Note: See TracChangeset for help on using the changeset viewer.