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/collections/psSort.c

    r670 r831  
    1414 *  @author Ross Harman, MHPCC
    1515 *   
    16  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2004-05-13 22:47:52 $
     16 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2004-06-02 23:29:14 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    129129    inN = inVector->n;
    130130    outN = outVector->n;
    131     inVec = inVector->vec.f;
    132     outVec = outVector->vec.f;
     131    inVec = inVector->data.F32;
     132    outVec = outVector->data.F32;
    133133    elSize = sizeof(float);
    134134
     
    188188    inN = inVector->n;
    189189    outN = outVector->n;
    190     inVec = inVector->vec.f;
    191     outVec = outVector->vec.i32;
     190    inVec = inVector->data.F32;
     191    outVec = outVector->data.S32;
    192192
    193193    if(inN != outN) {
     
    197197    }
    198198
    199     tmpFloatVector = psVectorAlloc(PS_TYPE_FLOAT, inN);
     199    tmpFloatVector = psVectorAlloc(inN, PS_TYPE_F32);
    200200    tmpFloatVector->n = inN;
    201201    tmpFloatVector = psSort(tmpFloatVector, inVector);
    202202
    203203    for(i=0; i<inN; i++) {
    204         tempVal = tmpFloatVector->vec.f[i];
     204        tempVal = tmpFloatVector->data.F32[i];
    205205        for(j=0; j<inN; j++) {
    206206            diff = fabsf(tempVal - inVec[j]);
Note: See TracChangeset for help on using the changeset viewer.