Changeset 831 for trunk/psLib/src/math/psMatrix.c
- Timestamp:
- Jun 2, 2004, 1:29:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psMatrix.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psMatrix.c
r824 r831 20 20 * @author Ross Harman, MHPCC 21 21 * 22 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $23 * @date $Date: 2004-06-0 1 22:42:57$22 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2004-06-02 23:29:21 $ 24 24 * 25 25 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 /** Preprocessor macro to generate error a NULL image */ 71 71 #define PS_CHECK_NULL_VECTOR(NAME, RETURN) \ 72 if (NAME == NULL || NAME-> vec.v== NULL) { \72 if (NAME == NULL || NAME->data.V == NULL) { \ 73 73 psError(__func__,"Invalid operation: %s or its data is NULL.", #NAME); \ 74 74 return RETURN; \ … … 78 78 #define PS_CHECK_ALLOC_VECTOR(NAME, SIZE, PS_TYPE) \ 79 79 if(NAME == NULL) { \ 80 NAME = psVectorAlloc( PS_TYPE, SIZE); \80 NAME = psVectorAlloc(SIZE, PS_TYPE); \ 81 81 } 82 82 … … 173 173 perm.size = numCols; 174 174 outPerm->n = numCols; 175 perm.data = outPerm-> vec.v;175 perm.data = outPerm->data.V; 176 176 PS_GSL_MATRIX_INITIALIZE(lu, outImage->data.V[0]); 177 177 … … 226 226 227 227 perm.size = inPerm->n; 228 perm.data = inPerm-> vec.v;228 perm.data = inPerm->data.V; 229 229 230 230 b.size = inVector->n; 231 231 b.stride = 1; 232 b.data = inVector-> vec.v;232 b.data = inVector->data.V; 233 233 234 234 x.size = numCols; 235 235 x.stride = 1; 236 x.data = outVector-> vec.v;236 x.data = outVector->data.V; 237 237 238 238 // Solve for {x} in equation: {b} = [A]{x} … … 483 483 484 484 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); 486 486 487 487 return outVector; … … 510 510 511 511 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); 513 513 514 514 return outImage;
Note:
See TracChangeset
for help on using the changeset viewer.
