Changeset 2226
- Timestamp:
- Oct 27, 2004, 2:45:44 PM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
src/dataManip/psStats.c (modified) (3 diffs)
-
src/math/psStats.c (modified) (3 diffs)
-
test/dataManip/tst_psHist02.c (modified) (3 diffs)
-
test/dataManip/tst_psStats00.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psStats.c
r2224 r2226 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-28 00: 22:53$11 * @version $Revision: 1.78 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-28 00:45:44 $ 13 13 n * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1546 1546 PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL); 1547 1547 PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL); 1548 PS_VECTOR_CHECK_NULL(in, NULL);1548 PS_VECTOR_CHECK_NULL(in, out); 1549 1549 if (mask != NULL) { 1550 1550 PS_VECTOR_CHECK_SIZE_EQUAL(in, mask, NULL); … … 1679 1679 { 1680 1680 PS_PTR_CHECK_NULL(stats, NULL); 1681 PS_VECTOR_CHECK_NULL(in, NULL);1681 PS_VECTOR_CHECK_NULL(in, stats); 1682 1682 if (mask != NULL) { 1683 PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, NULL);1684 PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, NULL);1683 PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, stats); 1684 PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, stats); 1685 1685 } 1686 1686 psVector* inF32; -
trunk/psLib/src/math/psStats.c
r2224 r2226 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.7 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-10-28 00: 22:53$11 * @version $Revision: 1.78 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-10-28 00:45:44 $ 13 13 n * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1546 1546 PS_VECTOR_CHECK_TYPE(out->nums, PS_TYPE_U32, NULL); 1547 1547 PS_INT_CHECK_NON_NEGATIVE(out->nums->n, NULL); 1548 PS_VECTOR_CHECK_NULL(in, NULL);1548 PS_VECTOR_CHECK_NULL(in, out); 1549 1549 if (mask != NULL) { 1550 1550 PS_VECTOR_CHECK_SIZE_EQUAL(in, mask, NULL); … … 1679 1679 { 1680 1680 PS_PTR_CHECK_NULL(stats, NULL); 1681 PS_VECTOR_CHECK_NULL(in, NULL);1681 PS_VECTOR_CHECK_NULL(in, stats); 1682 1682 if (mask != NULL) { 1683 PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, NULL);1684 PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, NULL);1683 PS_VECTOR_CHECK_SIZE_EQUAL(mask, in, stats); 1684 PS_VECTOR_CHECK_TYPE(mask, PS_TYPE_U8, stats); 1685 1685 } 1686 1686 psVector* inF32; -
trunk/psLib/test/dataManip/tst_psHist02.c
r2204 r2226 114 114 "Calling psVectorHistogram() with various NULL inputs." ); 115 115 116 117 118 // ******************************************************************** 116 119 // Verify the return value is null and program execution doesn't stop, 117 120 // if input parameter myHist is null. … … 125 128 126 129 127 // Verify the retrun value is the same as the input parameter myHist and 130 // ******************************************************************** 131 // Verify the return value is the same as the input parameter myHist and 128 132 // program execution doesn't stop, if the input parameter myArray is 129 133 // null. … … 138 142 139 143 144 exit(0); 145 // ******************************************************************** 140 146 // Verify the return value is the same as the input parameter myHist and 141 147 // program execution doesn't stop, if the input parameter myArray has no -
trunk/psLib/test/dataManip/tst_psStats00.c
r2204 r2226 11 11 { 12 12 psStats *myStats = NULL; 13 psStats *myStats2 = NULL;14 13 psS32 testStatus = true; 15 14 psS32 globalTestStatus = true; … … 164 163 "PS_STAT_SAMPLE_MEAN: with vector mask=3", 165 164 testStatus); 165 166 166 /*************************************************************************/ 167 167 /* Call psVectorStats() with NULL inputs. */ 168 168 /*************************************************************************/ 169 169 170 printPositiveTestHeader(stdout, 170 171 "psStats functions", … … 172 173 173 174 myStats = psVectorStats(myStats, NULL, NULL, 0); 174 myStats2 = psVectorStats(NULL, myVector, NULL, 0);175 psStats *myStats2 = psVectorStats(NULL, myVector, NULL, 0); 175 176 176 177 printFooter(stdout, … … 195 196 psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks); 196 197 } 198 psFree(myStats2); 197 199 198 200 printFooter(stdout,
Note:
See TracChangeset
for help on using the changeset viewer.
