Changeset 2697
- Timestamp:
- Dec 10, 2004, 2:16:38 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
dataManip/psMatrix.c (modified) (3 diffs)
-
math/psMatrix.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psMatrix.c
r2671 r2697 20 20 * @author Ross Harman, MHPCC 21 21 * 22 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $23 * @date $Date: 2004-12- 09 20:51:16$22 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2004-12-11 00:16:38 $ 24 24 * 25 25 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 102 102 for(i=0; i<n; i++) { 103 103 if(inVector->type.type == PS_TYPE_F32) { 104 outGslVector->data[i] = (ps S32)inVector->data.F32[i];104 outGslVector->data[i] = (psF64)inVector->data.F32[i]; 105 105 } else { 106 106 outGslVector->data[i] = inVector->data.F64[i]; … … 140 140 for(j=0; j<numCols; j++) { 141 141 if(inImage->type.type == PS_TYPE_F32) { 142 outGslMatrix->data[i*numCols+j] = (ps S32)inImage->data.F32[i][j];142 outGslMatrix->data[i*numCols+j] = (psF64)inImage->data.F32[i][j]; 143 143 } else { 144 144 outGslMatrix->data[i*numCols+j] = inImage->data.F64[i][j]; -
trunk/psLib/src/math/psMatrix.c
r2671 r2697 20 20 * @author Ross Harman, MHPCC 21 21 * 22 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $23 * @date $Date: 2004-12- 09 20:51:16$22 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 23 * @date $Date: 2004-12-11 00:16:38 $ 24 24 * 25 25 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 102 102 for(i=0; i<n; i++) { 103 103 if(inVector->type.type == PS_TYPE_F32) { 104 outGslVector->data[i] = (ps S32)inVector->data.F32[i];104 outGslVector->data[i] = (psF64)inVector->data.F32[i]; 105 105 } else { 106 106 outGslVector->data[i] = inVector->data.F64[i]; … … 140 140 for(j=0; j<numCols; j++) { 141 141 if(inImage->type.type == PS_TYPE_F32) { 142 outGslMatrix->data[i*numCols+j] = (ps S32)inImage->data.F32[i][j];142 outGslMatrix->data[i*numCols+j] = (psF64)inImage->data.F32[i][j]; 143 143 } else { 144 144 outGslMatrix->data[i*numCols+j] = inImage->data.F64[i][j];
Note:
See TracChangeset
for help on using the changeset viewer.
