Changeset 4330
- Timestamp:
- Jun 20, 2005, 5:01:37 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 48 edited
-
pslib.kdevelop.pcs (modified) ( previous)
-
pslib.kdevses (modified) (1 diff)
-
src/astro/psCoord.c (modified) (6 diffs)
-
src/astro/psCoord.h (modified) (4 diffs)
-
src/astro/psTime.c (modified) (14 diffs)
-
src/astro/psTime.h (modified) (16 diffs)
-
src/astronomy/psCoord.c (modified) (6 diffs)
-
src/astronomy/psCoord.h (modified) (4 diffs)
-
src/astronomy/psTime.c (modified) (14 diffs)
-
src/astronomy/psTime.h (modified) (16 diffs)
-
src/collections/psList.h (modified) (7 diffs)
-
src/collections/psMetadata.h (modified) (8 diffs)
-
src/collections/psScalar.c (modified) (3 diffs)
-
src/collections/psScalar.h (modified) (2 diffs)
-
src/collections/psVector.c (modified) (6 diffs)
-
src/collections/psVector.h (modified) (3 diffs)
-
src/dataManip/psFunctions.c (modified) (4 diffs)
-
src/dataManip/psFunctions.h (modified) (5 diffs)
-
src/dataManip/psMinimize.h (modified) (4 diffs)
-
src/dataManip/psRandom.c (modified) (6 diffs)
-
src/dataManip/psRandom.h (modified) (6 diffs)
-
src/image/psImage.c (modified) (2 diffs)
-
src/image/psImage.h (modified) (3 diffs)
-
src/image/psImagePixelManip.h (modified) (3 diffs)
-
src/imageops/psImagePixelManip.h (modified) (3 diffs)
-
src/math/psMinimize.h (modified) (4 diffs)
-
src/math/psPolynomial.c (modified) (4 diffs)
-
src/math/psPolynomial.h (modified) (5 diffs)
-
src/math/psRandom.c (modified) (6 diffs)
-
src/math/psRandom.h (modified) (6 diffs)
-
src/math/psSpline.c (modified) (4 diffs)
-
src/math/psSpline.h (modified) (5 diffs)
-
src/mathtypes/psImage.c (modified) (2 diffs)
-
src/mathtypes/psImage.h (modified) (3 diffs)
-
src/mathtypes/psScalar.c (modified) (3 diffs)
-
src/mathtypes/psScalar.h (modified) (2 diffs)
-
src/mathtypes/psVector.c (modified) (6 diffs)
-
src/mathtypes/psVector.h (modified) (3 diffs)
-
src/sys/psLogMsg.h (modified) (2 diffs)
-
src/sys/psMemory.h (modified) (2 diffs)
-
src/sys/psTrace.c (modified) (2 diffs)
-
src/sys/psTrace.h (modified) (2 diffs)
-
src/sysUtils/psLogMsg.h (modified) (2 diffs)
-
src/sysUtils/psMemory.h (modified) (2 diffs)
-
src/sysUtils/psTrace.c (modified) (2 diffs)
-
src/sysUtils/psTrace.h (modified) (2 diffs)
-
src/types/psList.h (modified) (7 diffs)
-
src/types/psMetadata.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/pslib.kdevses
r4321 r4330 2 2 <!DOCTYPE KDevPrjSession> 3 3 <KDevPrjSession> 4 <DocsAndViews NumberOfDocuments=" 4" >5 <Doc0 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/ collections/psList.h" >6 <View0 Type="Source" />4 <DocsAndViews NumberOfDocuments="3" > 5 <Doc0 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/dataManip/psMatrix.c" > 6 <View0 line="0" Type="Source" /> 7 7 </Doc0> 8 <Doc1 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/ collections/psList.c" >9 <View0 Type="Source" />8 <Doc1 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/dataManip/psMatrix.h" > 9 <View0 line="88" Type="Source" /> 10 10 </Doc1> 11 <Doc2 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/sysUtils/ps LogMsg.h" >12 <View0 Type="Source" />11 <Doc2 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/sysUtils/psMemory.h" > 12 <View0 line="14" Type="Source" /> 13 13 </Doc2> 14 <Doc3 NumberOfViews="1" URL="file:/home/drobbin/panstarrs/psLib/src/sysUtils/psLogMsg.c" >15 <View0 line="369" Type="Source" />16 </Doc3>17 14 </DocsAndViews> 18 15 <pluginList> -
trunk/psLib/src/astro/psCoord.c
r4321 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-2 0 22:42:29$12 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 221 221 } 222 222 223 psPlaneTransform* psPlaneTransformAlloc( psS32 n1, psS32n2)223 psPlaneTransform* psPlaneTransformAlloc(int n1, int n2) 224 224 { 225 225 PS_ASSERT_INT_NONNEGATIVE(n1, NULL); … … 290 290 const psPlaneDistort* transform, 291 291 const psPlane* coords, 292 float color,293 float magnitude)292 float mag, 293 float color) 294 294 { 295 295 PS_ASSERT_PTR_NON_NULL(transform, NULL); … … 305 305 coords->x, 306 306 coords->y, 307 color,308 magnitude307 mag, 308 color 309 309 ); 310 310 out->y = psDPolynomial4DEval( … … 312 312 coords->x, 313 313 coords->y, 314 color,315 magnitude314 mag, 315 color 316 316 ); 317 317 return (out); … … 481 481 482 482 psProjection* psProjectionAlloc( 483 psF64R,484 psF64D,485 psF64Xs,486 psF64Ys,483 double R, 484 double D, 485 double Xs, 486 double Ys, 487 487 psProjectionType type) 488 488 { -
trunk/psLib/src/astro/psCoord.h
r4321 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-2 0 22:42:29$12 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 188 188 189 189 psPlaneTransform* psPlaneTransformAlloc( 190 psS32 n1,///< The order of the x term in the transform.191 psS32 n2///< The order of the y term in the transform.190 int n1, ///< The order of the x term in the transform. 191 int n2 ///< The order of the y term in the transform. 192 192 ); 193 193 … … 223 223 const psPlaneDistort* transform, ///< the transform to apply 224 224 const psPlane* coords, ///< the coordinate to apply the transform above. 225 float term3,///< third term -- maybe magnitude226 float term4///< forth term -- maybe color225 float mag, ///< third term -- maybe magnitude 226 float color ///< forth term -- maybe color 227 227 ); 228 228 … … 283 283 */ 284 284 psProjection* psProjectionAlloc( 285 psF64R, ///< Right-ascension of projection center.286 psF64D, ///< Declination of projection center.287 psF64Xs, ///< Scale in x-dimension288 psF64Ys, ///< Scale in y-dimension285 double R, ///< Right-ascension of projection center. 286 double D, ///< Declination of projection center. 287 double Xs, ///< Scale in x-dimension 288 double Ys, ///< Scale in y-dimension 289 289 psProjectionType type 290 290 ); -
trunk/psLib/src/astro/psTime.c
r4209 r4330 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 10 18:09:12$12 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 731 731 } 732 732 733 psF64 psTimeToLMST(psTime *time, psF64longitude)733 double psTimeToLMST(psTime *time, double longitude) 734 734 { 735 735 psF64 jdTdtDays = 0.0; … … 804 804 } 805 805 806 psF64psTimeGetUT1Delta(const psTime *time, psTimeBulletin bulletin)806 double psTimeGetUT1Delta(const psTime *time, psTimeBulletin bulletin) 807 807 { 808 808 psU32 nTables = 2; … … 1081 1081 } 1082 1082 1083 psS64psTimeLeapSecondDelta(const psTime *time1, const psTime *time2)1083 long psTimeLeapSecondDelta(const psTime *time1, const psTime *time2) 1084 1084 { 1085 1085 psS64 diff = 0; … … 1095 1095 } 1096 1096 1097 psBool psTimeIsLeapSecond(const psTime* utc)1097 bool psTimeIsLeapSecond(const psTime* utc) 1098 1098 { 1099 1099 psTime* prevUtc = NULL; … … 1126 1126 } 1127 1127 1128 psF64psTimeToJD(const psTime *time)1128 double psTimeToJD(const psTime *time) 1129 1129 { 1130 1130 psF64 jd = NAN; … … 1146 1146 } 1147 1147 1148 psF64psTimeToMJD(const psTime *time)1148 double psTimeToMJD(const psTime *time) 1149 1149 { 1150 1150 psF64 mjd = NAN; … … 1302 1302 */ 1303 1303 1304 psTime* psTimeFromJD( psF64 time)1304 psTime* psTimeFromJD(double jd) 1305 1305 { 1306 1306 psF64 days = 0.0; … … 1312 1312 1313 1313 // Julian date conversion courtesy of Eugene Magnier 1314 days = time- 2440587.5;1314 days = jd - 2440587.5; 1315 1315 seconds = days * SEC_PER_DAY; 1316 1316 if(seconds < 0.0) { … … 1327 1327 } 1328 1328 1329 psTime* psTimeFromMJD( psF64 time)1329 psTime* psTimeFromMJD(double mjd) 1330 1330 { 1331 1331 psF64 days = 0.0; … … 1337 1337 1338 1338 // Modified Julian date conversion courtesy of Eugene Magnier 1339 days = time- 40587.0;1339 days = mjd - 40587.0; 1340 1340 seconds = days * SEC_PER_DAY; 1341 1341 … … 1406 1406 } 1407 1407 1408 psTime* psTimeFromUTC(psS64 sec, psU32 nsec, psBool leapsecond)1408 psTime* psTimeFromUTC(psS64 sec, psU32 nsec, bool leapsecond) 1409 1409 { 1410 1410 psTime* outTime = NULL; … … 1510 1510 } 1511 1511 1512 psTime* psTimeMath(const psTime *time, psF64delta)1512 psTime* psTimeMath(const psTime *time, double delta) 1513 1513 { 1514 1514 psF64 sec = 0.0; … … 1551 1551 } 1552 1552 1553 psF64psTimeDelta(const psTime *time1, const psTime *time2)1553 double psTimeDelta(const psTime *time1, const psTime *time2) 1554 1554 { 1555 1555 psF64 out = 0.0; -
trunk/psLib/src/astro/psTime.h
r4293 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 17 00:10:59$13 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 127 127 * in UTC format, then it is converted. 128 128 * 129 * @return psF64: LST Time.130 */ 131 psF64psTimeToLMST(132 psTime *time, ///< psTime to be converted.133 psF64longitude ///< Longitude.129 * @return double: LST Time. 130 */ 131 double psTimeToLMST( 132 psTime *time, ///< psTime to be converted. 133 double longitude ///< Longitude. 134 134 ); 135 135 … … 138 138 * This function is necessary to for various SLALIB functions. 139 139 * 140 * @return psF64: Time difference.141 */ 142 psF64psTimeGetUT1Delta(140 * @return double: Time difference. 141 */ 142 double psTimeGetUT1Delta( 143 143 const psTime *time, ///< psTime to be looked up. 144 144 psTimeBulletin bulletin ///< IERS bulletin to use … … 169 169 * Calculates the number of leapseconds between two times. 170 170 * 171 * @return psS64: leapseconds added between given times172 */ 173 psS64psTimeLeapSecondDelta(174 const psTime* time1, ///< First input time.175 const psTime* time2 ///< Second input time.171 * @return long: leapseconds added between given times 172 */ 173 long psTimeLeapSecondDelta( 174 const psTime* time1, ///< First input time. 175 const psTime* time2 ///< Second input time. 176 176 ); 177 177 … … 180 180 * Determines if the specified UTC time is a valid leapsecond. 181 181 * 182 * @return psBool: valid leap second183 */ 184 psBool psTimeIsLeapSecond(182 * @return bool: valid leap second 183 */ 184 bool psTimeIsLeapSecond( 185 185 const psTime* utc ///< UTC to verify if leap second 186 186 ); … … 191 191 * subtract leapseconds. 192 192 * 193 * @return psF64: Julian Date (JD) time.194 */ 195 psF64psTimeToJD(196 const psTime* time ///< Input time to be converted.193 * @return double: Julian Date (JD) time. 194 */ 195 double psTimeToJD( 196 const psTime* time ///< Input time to be converted. 197 197 ); 198 198 /** Convert psTime to modified Julian date time. … … 201 201 * add or subtract leapseconds. 202 202 * 203 * @return psF64: Modified Julian Days (MJD) time.204 */ 205 psF64psTimeToMJD(203 * @return double: Modified Julian Days (MJD) time. 204 */ 205 double psTimeToMJD( 206 206 const psTime* time ///< Input time to be converted. 207 207 ); … … 248 248 */ 249 249 psTime* psTimeFromJD( 250 psF64 time///< Input time to be converted.250 double jd ///< Input time to be converted. 251 251 ); 252 252 … … 258 258 */ 259 259 psTime* psTimeFromMJD( 260 psF64 time///< Input time to be converted.260 double mjd ///< Input time to be converted. 261 261 ); 262 262 … … 268 268 */ 269 269 psTime* psTimeFromISO( 270 const char* time ///< Input time to be converted.270 const char* time ///< Input time to be converted. 271 271 ); 272 272 … … 278 278 */ 279 279 psTime* psTimeFromTimeval( 280 const struct timeval *time ///< Input time to be converted.280 const struct timeval *time ///< Input time to be converted. 281 281 ); 282 282 … … 288 288 */ 289 289 psTime* psTimeFromTT( 290 psS64 sec, ///< Input terrestrial time in seconds291 psU32 nsec ///< Input terrestrial time fraction of seconds (nanoseconds)290 psS64 sec, ///< Input terrestrial time in seconds 291 psU32 nsec ///< Input terrestrial time fraction of seconds (nanoseconds) 292 292 ); 293 293 … … 299 299 */ 300 300 psTime* psTimeFromUTC( 301 psS64 sec, ///< Input time in seconds302 psU32 nsec, ///< Input time fraction of seconds (nanoseconds)303 psBool leapsecond///< Input time is a leapsecond301 psS64 sec, ///< Input time in seconds 302 psU32 nsec, ///< Input time fraction of seconds (nanoseconds) 303 bool leapsecond ///< Input time is a leapsecond 304 304 ); 305 305 … … 313 313 */ 314 314 psTime* p_psTimeFromTM( 315 const struct tm *time ///< Input time to be converted.315 const struct tm *time ///< Input time to be converted. 316 316 ); 317 317 … … 323 323 */ 324 324 psTime* psTimeMath( 325 const psTime *time, ///< Time.326 psF64 delta///< Time delta.325 const psTime *time, ///< Time. 326 double delta ///< Time delta. 327 327 ); 328 328 … … 331 331 * Determine difference between two times. Input times are converted to TAI format if necessary. 332 332 * 333 * @return psF64: Time difference.334 */ 335 psF64psTimeDelta(336 const psTime *time1, ///< First time.337 const psTime *time2 ///< Second time.333 * @return double: Time difference. 334 */ 335 double psTimeDelta( 336 const psTime *time1, ///< First time. 337 const psTime *time2 ///< Second time. 338 338 ); 339 339 -
trunk/psLib/src/astronomy/psCoord.c
r4321 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.7 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-2 0 22:42:29$12 * @version $Revision: 1.76 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 221 221 } 222 222 223 psPlaneTransform* psPlaneTransformAlloc( psS32 n1, psS32n2)223 psPlaneTransform* psPlaneTransformAlloc(int n1, int n2) 224 224 { 225 225 PS_ASSERT_INT_NONNEGATIVE(n1, NULL); … … 290 290 const psPlaneDistort* transform, 291 291 const psPlane* coords, 292 float color,293 float magnitude)292 float mag, 293 float color) 294 294 { 295 295 PS_ASSERT_PTR_NON_NULL(transform, NULL); … … 305 305 coords->x, 306 306 coords->y, 307 color,308 magnitude307 mag, 308 color 309 309 ); 310 310 out->y = psDPolynomial4DEval( … … 312 312 coords->x, 313 313 coords->y, 314 color,315 magnitude314 mag, 315 color 316 316 ); 317 317 return (out); … … 481 481 482 482 psProjection* psProjectionAlloc( 483 psF64R,484 psF64D,485 psF64Xs,486 psF64Ys,483 double R, 484 double D, 485 double Xs, 486 double Ys, 487 487 psProjectionType type) 488 488 { -
trunk/psLib/src/astronomy/psCoord.h
r4321 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-2 0 22:42:29$12 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 188 188 189 189 psPlaneTransform* psPlaneTransformAlloc( 190 psS32 n1,///< The order of the x term in the transform.191 psS32 n2///< The order of the y term in the transform.190 int n1, ///< The order of the x term in the transform. 191 int n2 ///< The order of the y term in the transform. 192 192 ); 193 193 … … 223 223 const psPlaneDistort* transform, ///< the transform to apply 224 224 const psPlane* coords, ///< the coordinate to apply the transform above. 225 float term3,///< third term -- maybe magnitude226 float term4///< forth term -- maybe color225 float mag, ///< third term -- maybe magnitude 226 float color ///< forth term -- maybe color 227 227 ); 228 228 … … 283 283 */ 284 284 psProjection* psProjectionAlloc( 285 psF64R, ///< Right-ascension of projection center.286 psF64D, ///< Declination of projection center.287 psF64Xs, ///< Scale in x-dimension288 psF64Ys, ///< Scale in y-dimension285 double R, ///< Right-ascension of projection center. 286 double D, ///< Declination of projection center. 287 double Xs, ///< Scale in x-dimension 288 double Ys, ///< Scale in y-dimension 289 289 psProjectionType type 290 290 ); -
trunk/psLib/src/astronomy/psTime.c
r4209 r4330 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 10 18:09:12$12 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 731 731 } 732 732 733 psF64 psTimeToLMST(psTime *time, psF64longitude)733 double psTimeToLMST(psTime *time, double longitude) 734 734 { 735 735 psF64 jdTdtDays = 0.0; … … 804 804 } 805 805 806 psF64psTimeGetUT1Delta(const psTime *time, psTimeBulletin bulletin)806 double psTimeGetUT1Delta(const psTime *time, psTimeBulletin bulletin) 807 807 { 808 808 psU32 nTables = 2; … … 1081 1081 } 1082 1082 1083 psS64psTimeLeapSecondDelta(const psTime *time1, const psTime *time2)1083 long psTimeLeapSecondDelta(const psTime *time1, const psTime *time2) 1084 1084 { 1085 1085 psS64 diff = 0; … … 1095 1095 } 1096 1096 1097 psBool psTimeIsLeapSecond(const psTime* utc)1097 bool psTimeIsLeapSecond(const psTime* utc) 1098 1098 { 1099 1099 psTime* prevUtc = NULL; … … 1126 1126 } 1127 1127 1128 psF64psTimeToJD(const psTime *time)1128 double psTimeToJD(const psTime *time) 1129 1129 { 1130 1130 psF64 jd = NAN; … … 1146 1146 } 1147 1147 1148 psF64psTimeToMJD(const psTime *time)1148 double psTimeToMJD(const psTime *time) 1149 1149 { 1150 1150 psF64 mjd = NAN; … … 1302 1302 */ 1303 1303 1304 psTime* psTimeFromJD( psF64 time)1304 psTime* psTimeFromJD(double jd) 1305 1305 { 1306 1306 psF64 days = 0.0; … … 1312 1312 1313 1313 // Julian date conversion courtesy of Eugene Magnier 1314 days = time- 2440587.5;1314 days = jd - 2440587.5; 1315 1315 seconds = days * SEC_PER_DAY; 1316 1316 if(seconds < 0.0) { … … 1327 1327 } 1328 1328 1329 psTime* psTimeFromMJD( psF64 time)1329 psTime* psTimeFromMJD(double mjd) 1330 1330 { 1331 1331 psF64 days = 0.0; … … 1337 1337 1338 1338 // Modified Julian date conversion courtesy of Eugene Magnier 1339 days = time- 40587.0;1339 days = mjd - 40587.0; 1340 1340 seconds = days * SEC_PER_DAY; 1341 1341 … … 1406 1406 } 1407 1407 1408 psTime* psTimeFromUTC(psS64 sec, psU32 nsec, psBool leapsecond)1408 psTime* psTimeFromUTC(psS64 sec, psU32 nsec, bool leapsecond) 1409 1409 { 1410 1410 psTime* outTime = NULL; … … 1510 1510 } 1511 1511 1512 psTime* psTimeMath(const psTime *time, psF64delta)1512 psTime* psTimeMath(const psTime *time, double delta) 1513 1513 { 1514 1514 psF64 sec = 0.0; … … 1551 1551 } 1552 1552 1553 psF64psTimeDelta(const psTime *time1, const psTime *time2)1553 double psTimeDelta(const psTime *time1, const psTime *time2) 1554 1554 { 1555 1555 psF64 out = 0.0; -
trunk/psLib/src/astronomy/psTime.h
r4293 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 17 00:10:59$13 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 127 127 * in UTC format, then it is converted. 128 128 * 129 * @return psF64: LST Time.130 */ 131 psF64psTimeToLMST(132 psTime *time, ///< psTime to be converted.133 psF64longitude ///< Longitude.129 * @return double: LST Time. 130 */ 131 double psTimeToLMST( 132 psTime *time, ///< psTime to be converted. 133 double longitude ///< Longitude. 134 134 ); 135 135 … … 138 138 * This function is necessary to for various SLALIB functions. 139 139 * 140 * @return psF64: Time difference.141 */ 142 psF64psTimeGetUT1Delta(140 * @return double: Time difference. 141 */ 142 double psTimeGetUT1Delta( 143 143 const psTime *time, ///< psTime to be looked up. 144 144 psTimeBulletin bulletin ///< IERS bulletin to use … … 169 169 * Calculates the number of leapseconds between two times. 170 170 * 171 * @return psS64: leapseconds added between given times172 */ 173 psS64psTimeLeapSecondDelta(174 const psTime* time1, ///< First input time.175 const psTime* time2 ///< Second input time.171 * @return long: leapseconds added between given times 172 */ 173 long psTimeLeapSecondDelta( 174 const psTime* time1, ///< First input time. 175 const psTime* time2 ///< Second input time. 176 176 ); 177 177 … … 180 180 * Determines if the specified UTC time is a valid leapsecond. 181 181 * 182 * @return psBool: valid leap second183 */ 184 psBool psTimeIsLeapSecond(182 * @return bool: valid leap second 183 */ 184 bool psTimeIsLeapSecond( 185 185 const psTime* utc ///< UTC to verify if leap second 186 186 ); … … 191 191 * subtract leapseconds. 192 192 * 193 * @return psF64: Julian Date (JD) time.194 */ 195 psF64psTimeToJD(196 const psTime* time ///< Input time to be converted.193 * @return double: Julian Date (JD) time. 194 */ 195 double psTimeToJD( 196 const psTime* time ///< Input time to be converted. 197 197 ); 198 198 /** Convert psTime to modified Julian date time. … … 201 201 * add or subtract leapseconds. 202 202 * 203 * @return psF64: Modified Julian Days (MJD) time.204 */ 205 psF64psTimeToMJD(203 * @return double: Modified Julian Days (MJD) time. 204 */ 205 double psTimeToMJD( 206 206 const psTime* time ///< Input time to be converted. 207 207 ); … … 248 248 */ 249 249 psTime* psTimeFromJD( 250 psF64 time///< Input time to be converted.250 double jd ///< Input time to be converted. 251 251 ); 252 252 … … 258 258 */ 259 259 psTime* psTimeFromMJD( 260 psF64 time///< Input time to be converted.260 double mjd ///< Input time to be converted. 261 261 ); 262 262 … … 268 268 */ 269 269 psTime* psTimeFromISO( 270 const char* time ///< Input time to be converted.270 const char* time ///< Input time to be converted. 271 271 ); 272 272 … … 278 278 */ 279 279 psTime* psTimeFromTimeval( 280 const struct timeval *time ///< Input time to be converted.280 const struct timeval *time ///< Input time to be converted. 281 281 ); 282 282 … … 288 288 */ 289 289 psTime* psTimeFromTT( 290 psS64 sec, ///< Input terrestrial time in seconds291 psU32 nsec ///< Input terrestrial time fraction of seconds (nanoseconds)290 psS64 sec, ///< Input terrestrial time in seconds 291 psU32 nsec ///< Input terrestrial time fraction of seconds (nanoseconds) 292 292 ); 293 293 … … 299 299 */ 300 300 psTime* psTimeFromUTC( 301 psS64 sec, ///< Input time in seconds302 psU32 nsec, ///< Input time fraction of seconds (nanoseconds)303 psBool leapsecond///< Input time is a leapsecond301 psS64 sec, ///< Input time in seconds 302 psU32 nsec, ///< Input time fraction of seconds (nanoseconds) 303 bool leapsecond ///< Input time is a leapsecond 304 304 ); 305 305 … … 313 313 */ 314 314 psTime* p_psTimeFromTM( 315 const struct tm *time ///< Input time to be converted.315 const struct tm *time ///< Input time to be converted. 316 316 ); 317 317 … … 323 323 */ 324 324 psTime* psTimeMath( 325 const psTime *time, ///< Time.326 psF64 delta///< Time delta.325 const psTime *time, ///< Time. 326 double delta ///< Time delta. 327 327 ); 328 328 … … 331 331 * Determine difference between two times. Input times are converted to TAI format if necessary. 332 332 * 333 * @return psF64: Time difference.334 */ 335 psF64psTimeDelta(336 const psTime *time1, ///< First time.337 const psTime *time2 ///< Second time.333 * @return double: Time difference. 334 */ 335 double psTimeDelta( 336 const psTime *time1, ///< First time. 337 const psTime *time2 ///< Second time. 338 338 ); 339 339 -
trunk/psLib/src/collections/psList.h
r4316 r4330 7 7 * @ingroup LinkedList 8 8 * 9 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 18 03:13:02$9 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-21 03:01:37 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 107 107 * iterator position is not changed. 108 108 * 109 * @return psBool TRUE if iterator successfully set, otherwise FALSE.109 * @return bool TRUE if iterator successfully set, otherwise FALSE. 110 110 */ 111 111 bool psListIteratorSet( … … 116 116 /** Adds an element to a psList at position given. 117 117 * 118 * @return psBool TRUE if item was successfully added, otherwise FALSE.118 * @return bool TRUE if item was successfully added, otherwise FALSE. 119 119 */ 120 120 bool psListAdd( … … 126 126 /** Adds an data item to a psList at position just after the list position given 127 127 * 128 * @return psBool TRUE if item was successfully added, otherwise FALSE.128 * @return bool TRUE if item was successfully added, otherwise FALSE. 129 129 */ 130 130 bool psListAddAfter( … … 135 135 /** Adds an data item to a psList at position just before the list position given 136 136 * 137 * @return psBool TRUE if item was successfully added, otherwise FALSE.137 * @return bool TRUE if item was successfully added, otherwise FALSE. 138 138 */ 139 139 bool psListAddBefore( … … 144 144 /** Remove an item at the specified location from a list. 145 145 * 146 * @return psBool TRUE if element is successfully removed, otherwise FALSE.146 * @return bool TRUE if element is successfully removed, otherwise FALSE. 147 147 */ 148 148 bool psListRemove( … … 153 153 /** Remove an item from a list. 154 154 * 155 * @return psBool TRUE if element is successfully removed, otherwise FALSE.155 * @return bool TRUE if element is successfully removed, otherwise FALSE. 156 156 */ 157 157 bool psListRemoveData( -
trunk/psLib/src/collections/psMetadata.h
r4321 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-2 0 22:42:29$13 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 274 274 int location, ///< Index number, PS_LIST_HEAD, or PS_LIST_TAIL 275 275 const char *name, ///< Name of metadata item. 276 int format, ///< Type of metadata item (psMetadataType) and options (psMetadataFlags)276 int format, ///< Type of metadata item (psMetadataType) and options (psMetadataFlags) 277 277 const char *comment, ///< Comment for metadata item. 278 278 ... ///< Arguments for name formatting and metadata item data. … … 298 298 /** Add a psS32 value to metadata collection. 299 299 * 300 * @return psBool: True for success, False for failure.300 * @return bool: True for success, False for failure. 301 301 */ 302 302 bool psMetadataAddS32( … … 310 310 /** Add a psF32 value to metadata collection. 311 311 * 312 * @return psBool: True for success, False for failure.312 * @return bool: True for success, False for failure. 313 313 */ 314 314 bool psMetadataAddF32( … … 322 322 /** Add a psF64 value to metadata collection. 323 323 * 324 * @return psBool: True for success, False for failure.324 * @return bool: True for success, False for failure. 325 325 */ 326 326 bool psMetadataAddF64( … … 346 346 /** Add a string to metadata collection. 347 347 * 348 * @return psBool: True for success, False for failure.348 * @return bool: True for success, False for failure. 349 349 */ 350 350 bool psMetadataAddStr( … … 505 505 * returned. 506 506 * 507 * @return psBool : Value of metadata item.508 */ 509 psBool psMetadataLookupBool(507 * @return bool : Value of metadata item. 508 */ 509 bool psMetadataLookupBool( 510 510 bool *status, ///< Status of lookup. 511 511 const psMetadata *md, ///< Metadata collection to lookup metadata item. … … 558 558 * invalid the iterator position is not changed. 559 559 * 560 * @return psBool TRUE if iterator successfully set, otherwise FALSE.560 * @return bool TRUE if iterator successfully set, otherwise FALSE. 561 561 */ 562 562 bool psMetadataIteratorSet( -
trunk/psLib/src/collections/psScalar.c
r3264 r4330 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 2-17 19:26:23$10 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-21 03:01:37 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 80 80 } 81 81 82 psScalar* psScalarCopy( psScalar *scalar)82 psScalar* psScalarCopy(const psScalar *value) 83 83 { 84 84 psElemType dataType; 85 85 psScalar *newScalar = NULL; 86 86 87 if ( scalar== NULL) {87 if (value == NULL) { 88 88 psError(PS_ERR_BAD_PARAMETER_NULL, true, 89 89 PS_ERRORTEXT_psScalar_COPY_NULL); … … 91 91 } 92 92 93 dataType = scalar->type.type;93 dataType = value->type.type; 94 94 switch (dataType) { 95 95 case PS_TYPE_S8: 96 newScalar = psScalarAlloc( scalar->data.S8, dataType);96 newScalar = psScalarAlloc(value->data.S8, dataType); 97 97 break; 98 98 case PS_TYPE_U8: 99 newScalar = psScalarAlloc( scalar->data.U8, dataType);99 newScalar = psScalarAlloc(value->data.U8, dataType); 100 100 break; 101 101 case PS_TYPE_S16: 102 newScalar = psScalarAlloc( scalar->data.S16, dataType);102 newScalar = psScalarAlloc(value->data.S16, dataType); 103 103 break; 104 104 case PS_TYPE_U16: 105 newScalar = psScalarAlloc( scalar->data.U16, dataType);105 newScalar = psScalarAlloc(value->data.U16, dataType); 106 106 break; 107 107 case PS_TYPE_S32: 108 newScalar = psScalarAlloc( scalar->data.S32, dataType);108 newScalar = psScalarAlloc(value->data.S32, dataType); 109 109 break; 110 110 case PS_TYPE_U32: 111 newScalar = psScalarAlloc( scalar->data.U32, dataType);111 newScalar = psScalarAlloc(value->data.U32, dataType); 112 112 break; 113 113 case PS_TYPE_S64: 114 newScalar = psScalarAlloc( scalar->data.S64, dataType);114 newScalar = psScalarAlloc(value->data.S64, dataType); 115 115 break; 116 116 case PS_TYPE_U64: 117 newScalar = psScalarAlloc( scalar->data.U64, dataType);117 newScalar = psScalarAlloc(value->data.U64, dataType); 118 118 break; 119 119 case PS_TYPE_F32: 120 newScalar = psScalarAlloc( scalar->data.F32, dataType);120 newScalar = psScalarAlloc(value->data.F32, dataType); 121 121 break; 122 122 case PS_TYPE_F64: 123 newScalar = psScalarAlloc( scalar->data.F64, dataType);123 newScalar = psScalarAlloc(value->data.F64, dataType); 124 124 break; 125 125 case PS_TYPE_C32: 126 newScalar = psScalarAlloc( scalar->data.C32, dataType);126 newScalar = psScalarAlloc(value->data.C32, dataType); 127 127 break; 128 128 case PS_TYPE_C64: 129 newScalar = psScalarAlloc( scalar->data.C64, dataType);129 newScalar = psScalarAlloc(value->data.C64, dataType); 130 130 break; 131 131 default: -
trunk/psLib/src/collections/psScalar.h
r4162 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 08 23:40:45$13 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 77 77 */ 78 78 psScalar* psScalarCopy( 79 psScalar *scalar///< Scalar to copy.79 const psScalar *value ///< Scalar to copy. 80 80 ); 81 81 -
trunk/psLib/src/collections/psVector.c
r4212 r4330 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 10 21:46:46$11 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 129 129 } 130 130 131 psVector *psVectorExtend(psVector *vector, int delta, intnExtend)131 psVector *psVectorExtend(psVector *vector, long delta, long nExtend) 132 132 { 133 133 // can't handle a NULL vector (don't know the data type to allocate) … … 166 166 } 167 167 168 psVector* psVectorCopy(psVector* out , const psVector* in, psElemType type)169 { 170 if (in == NULL) {168 psVector* psVectorCopy(psVector* output, const psVector* input, psElemType type) 169 { 170 if (input == NULL) { 171 171 psError(PS_ERR_BAD_PARAMETER_NULL, true, 172 172 PS_ERRORTEXT_psVector_SORT_NULL); 173 psFree(out );174 return NULL; 175 } 176 177 psS32 nElements = in ->n;178 179 out = psVectorRecycle(out, nElements, type);173 psFree(output); 174 return NULL; 175 } 176 177 psS32 nElements = input->n; 178 179 output = psVectorRecycle(output, nElements, type); 180 180 181 181 #define PSVECTOR_COPY(INTYPE,OUTTYPE) { \ 182 ps##INTYPE *inVec = in ->data.INTYPE; \183 ps##OUTTYPE *outVec = out ->data.OUTTYPE; \182 ps##INTYPE *inVec = input->data.INTYPE; \ 183 ps##OUTTYPE *outVec = output->data.OUTTYPE; \ 184 184 for (psS32 col=0;col<nElements;col++) { \ 185 185 *(outVec++) = *(inVec++); \ … … 189 189 #define PSVECTOR_COPY_CASE(OUTTYPE) \ 190 190 case PS_TYPE_##OUTTYPE: { \ 191 switch (in ->type.type) { \191 switch (input->type.type) { \ 192 192 case PS_TYPE_S8: \ 193 193 PSVECTOR_COPY(S8,OUTTYPE); \ … … 232 232 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, \ 233 233 typeStr); \ 234 psFree(out ); \234 psFree(output); \ 235 235 } \ 236 236 } \ … … 257 257 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 258 258 typeStr); 259 psFree(out );259 psFree(output); 260 260 261 261 break; 262 262 } 263 263 } 264 return out ;264 return output; 265 265 266 266 -
trunk/psLib/src/collections/psVector.h
r4212 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 10 21:46:46$13 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 101 101 psVector *psVectorExtend( 102 102 psVector *vector, ///< Vector to extend 103 int delta,///< Amount to expand allocation, if necessary104 int nExtend///< Number of elements to add to vector length103 long delta, ///< Amount to expand allocation, if necessary 104 long nExtend ///< Number of elements to add to vector length 105 105 ); 106 106 … … 132 132 */ 133 133 psVector* psVectorCopy( 134 psVector* out ,///< if non-NULL, a psVector to recycle135 const psVector* in ,///< the vector to copy.134 psVector* output, ///< if non-NULL, a psVector to recycle 135 const psVector* input, ///< the vector to copy. 136 136 psElemType type ///< the data type of the resulting psVector 137 137 ); -
trunk/psLib/src/dataManip/psFunctions.c
r4315 r4330 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.1 09$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 18 02:30:49$9 * @version $Revision: 1.110 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-21 03:01:37 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1822 1822 XXX: What should be the defualty type for knots be? psF32 is assumed. 1823 1823 *****************************************************************************/ 1824 psSpline1D *psSpline1DAlloc( psS32numSplines,1825 psS32order,1826 psF32min,1827 psF32max)1824 psSpline1D *psSpline1DAlloc(int numSplines, 1825 int order, 1826 float min, 1827 float max) 1828 1828 { 1829 1829 PS_ASSERT_INT_NONNEGATIVE(numSplines, NULL); … … 1867 1867 *****************************************************************************/ 1868 1868 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, 1869 psS32order)1869 int order) 1870 1870 { 1871 1871 PS_ASSERT_VECTOR_NON_NULL(bounds, NULL); … … 2125 2125 psF64. 2126 2126 *****************************************************************************/ 2127 psF32psSpline1DEval(2127 float psSpline1DEval( 2128 2128 const psSpline1D *spline, 2129 psF32x2129 float x 2130 2130 ) 2131 2131 { -
trunk/psLib/src/dataManip/psFunctions.h
r4315 r4330 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 18 02:30:49$14 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-21 03:01:37 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 39 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 40 40 * 41 * @return psF32value on the gaussian curve given the input parameters41 * @return float value on the gaussian curve given the input parameters 42 42 */ 43 43 float psGaussian( … … 218 218 */ 219 219 psVector *psPolynomial2DEvalVector( 220 const psPolynomial2D * myPoly,///< Coefficients for the polynomial220 const psPolynomial2D *poly, ///< Coefficients for the polynomial 221 221 const psVector *x, ///< x locations at which to evaluate 222 222 const psVector *y ///< y locations at which to evaluate … … 444 444 * @return psSpline1D* new 1-D spline struct 445 445 */ 446 psSpline1D *psSpline1DAlloc( psS32 n,///< Number of spline polynomials447 psS32 order,///< Order of spline polynomials448 psF32min, ///< Lower boundary value of spline polynomials449 psF32max); ///< Upper boundary value of spline polynomials446 psSpline1D *psSpline1DAlloc(int n, ///< Number of spline polynomials 447 int order, ///< Order of spline polynomials 448 float min, ///< Lower boundary value of spline polynomials 449 float max); ///< Upper boundary value of spline polynomials 450 450 451 451 /** Allocates a psSpline1D structure … … 456 456 */ 457 457 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, ///< Bounds for spline polynomials 458 psS32 order);///< Order of spline polynomials458 int order); ///< Order of spline polynomials 459 459 460 460 /** Evaluates 1-D spline polynomials at a specific coordinate. 461 461 * 462 * @return psF32result of spline polynomials evaluated at given location463 */ 464 psF32psSpline1DEval(462 * @return float result of spline polynomials evaluated at given location 463 */ 464 float psSpline1DEval( 465 465 const psSpline1D *spline, ///< Coefficients for spline polynomials 466 psF32x ///< location at which to evaluate466 float x ///< location at which to evaluate 467 467 ); 468 468 -
trunk/psLib/src/dataManip/psMinimize.h
r4321 r4330 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06-2 0 22:42:30$10 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-21 03:01:37 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 109 109 /** Minimizes a specified function based on the Levenberg-Marquardt method. 110 110 * 111 * @return psBool: True if successful.111 * @return bool: True if successful. 112 112 */ 113 113 bool psMinimizeLMChi2( … … 165 165 /** Minimizes a specified function based on the Powell method. 166 166 * 167 * @return psBool: True if successful.167 * @return bool: True if successful. 168 168 */ 169 169 bool psMinimizePowell( … … 209 209 /** Minimizes a specified function based on the Powell chi-squared method. 210 210 * 211 * @return psBool: True is successful.211 * @return bool: True is successful. 212 212 */ 213 213 bool psMinimizeChi2Powell( -
trunk/psLib/src/dataManip/psRandom.c
r4083 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 01 23:51:25$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 57 57 58 58 psRandom *psRandomAlloc(psRandomType type, 59 psU64seed)59 unsigned long seed) 60 60 { 61 61 gsl_rng *r = NULL; … … 86 86 87 87 void psRandomReset(psRandom *rand, 88 psU64seed)88 unsigned long seed) 89 89 { 90 90 // Check null psRandom … … 103 103 } 104 104 105 psF64psRandomUniform(const psRandom *r)105 double psRandomUniform(const psRandom *r) 106 106 { 107 107 // Check null psRandom variable … … 116 116 } 117 117 118 psF64psRandomGaussian(const psRandom *r)118 double psRandomGaussian(const psRandom *r) 119 119 { 120 120 // Check null psRandom variable … … 130 130 } 131 131 132 psF64 psRandomPoisson(const psRandom *r, psF64mean)132 double psRandomPoisson(const psRandom *r, double mean) 133 133 { 134 134 // Check null psRandom variable -
trunk/psLib/src/dataManip/psRandom.h
r4293 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 17 00:11:05$12 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 54 54 psRandom *psRandomAlloc( 55 55 psRandomType type, ///< The type of RNG 56 psU64 seed///< Known value with which to seed the RNG56 unsigned long seed ///< Known value with which to seed the RNG 57 57 ); 58 58 … … 63 63 void psRandomReset( 64 64 psRandom *rand, ///< Existing psRandom struct to reset 65 psU64 seed///< Known value with which to seed the RNG65 unsigned long seed ///< Known value with which to seed the RNG 66 66 ); 67 67 … … 69 69 * Uses gsl_rng_uniform. 70 70 * 71 * @return psF64: Random number.71 * @return double: Random number. 72 72 */ 73 psF64psRandomUniform(73 double psRandomUniform( 74 74 const psRandom *r ///< psRandom struct for RNG 75 75 ); … … 78 78 * Uses gsl_ran_gaussian. 79 79 * 80 * @return psF64: Random number.80 * @return double: Random number. 81 81 */ 82 psF64psRandomGaussian(82 double psRandomGaussian( 83 83 const psRandom *r ///< psRandom struct for RNG 84 84 ); … … 87 87 * Uses gsl_ran_poisson. 88 88 * 89 * @return psF64: Random number.89 * @return double: Random number. 90 90 */ 91 psF64psRandomPoisson(91 double psRandomPoisson( 92 92 const psRandom *r, ///< psRandom struct for RNG 93 psF64mean ///< Mean value93 double mean ///< Mean value 94 94 ); 95 95 -
trunk/psLib/src/image/psImage.c
r4316 r4330 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 69$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 18 03:13:02$11 * @version $Revision: 1.70 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 106 106 } 107 107 108 psRegion psRegionFromString(c har* region)108 psRegion psRegionFromString(const char* region) 109 109 { 110 110 psS32 col0; -
trunk/psLib/src/image/psImage.h
r4316 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 18 03:13:02$13 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 127 127 */ 128 128 psRegion psRegionFromString( 129 c har* region///< image rectangular region in the form '[x0:x1,y0:y1]'129 const char* region ///< image rectangular region in the form '[x0:x1,y0:y1]' 130 130 ); 131 131 … … 163 163 /** Frees all children of a psImage. 164 164 * 165 * @return psS32Number of children freed.165 * @return int Number of children freed. 166 166 * 167 167 */ -
trunk/psLib/src/image/psImagePixelManip.h
r4315 r4330 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06- 18 02:30:49$10 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-21 03:01:37 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 30 30 * defined for psU8, psU16, psS8, psS16, psF32, psF64, psC32, and psC64. 31 31 * 32 * @return psS32The number of clipped pixels32 * @return int The number of clipped pixels 33 33 */ 34 34 int psImageClip( … … 62 62 * function is defined for psF32, psF64, psC32, and psC64. 63 63 * 64 * @return psS32The number of clipped pixels64 * @return int The number of clipped pixels 65 65 */ 66 66 int psImageClipNaN( -
trunk/psLib/src/imageops/psImagePixelManip.h
r4315 r4330 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06- 18 02:30:49$10 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-21 03:01:37 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 30 30 * defined for psU8, psU16, psS8, psS16, psF32, psF64, psC32, and psC64. 31 31 * 32 * @return psS32The number of clipped pixels32 * @return int The number of clipped pixels 33 33 */ 34 34 int psImageClip( … … 62 62 * function is defined for psF32, psF64, psC32, and psC64. 63 63 * 64 * @return psS32The number of clipped pixels64 * @return int The number of clipped pixels 65 65 */ 66 66 int psImageClipNaN( -
trunk/psLib/src/math/psMinimize.h
r4321 r4330 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06-2 0 22:42:30$10 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-21 03:01:37 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 109 109 /** Minimizes a specified function based on the Levenberg-Marquardt method. 110 110 * 111 * @return psBool: True if successful.111 * @return bool: True if successful. 112 112 */ 113 113 bool psMinimizeLMChi2( … … 165 165 /** Minimizes a specified function based on the Powell method. 166 166 * 167 * @return psBool: True if successful.167 * @return bool: True if successful. 168 168 */ 169 169 bool psMinimizePowell( … … 209 209 /** Minimizes a specified function based on the Powell chi-squared method. 210 210 * 211 * @return psBool: True is successful.211 * @return bool: True is successful. 212 212 */ 213 213 bool psMinimizeChi2Powell( -
trunk/psLib/src/math/psPolynomial.c
r4315 r4330 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.1 09$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 18 02:30:49$9 * @version $Revision: 1.110 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-21 03:01:37 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1822 1822 XXX: What should be the defualty type for knots be? psF32 is assumed. 1823 1823 *****************************************************************************/ 1824 psSpline1D *psSpline1DAlloc( psS32numSplines,1825 psS32order,1826 psF32min,1827 psF32max)1824 psSpline1D *psSpline1DAlloc(int numSplines, 1825 int order, 1826 float min, 1827 float max) 1828 1828 { 1829 1829 PS_ASSERT_INT_NONNEGATIVE(numSplines, NULL); … … 1867 1867 *****************************************************************************/ 1868 1868 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, 1869 psS32order)1869 int order) 1870 1870 { 1871 1871 PS_ASSERT_VECTOR_NON_NULL(bounds, NULL); … … 2125 2125 psF64. 2126 2126 *****************************************************************************/ 2127 psF32psSpline1DEval(2127 float psSpline1DEval( 2128 2128 const psSpline1D *spline, 2129 psF32x2129 float x 2130 2130 ) 2131 2131 { -
trunk/psLib/src/math/psPolynomial.h
r4315 r4330 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 18 02:30:49$14 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-21 03:01:37 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 39 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 40 40 * 41 * @return psF32value on the gaussian curve given the input parameters41 * @return float value on the gaussian curve given the input parameters 42 42 */ 43 43 float psGaussian( … … 218 218 */ 219 219 psVector *psPolynomial2DEvalVector( 220 const psPolynomial2D * myPoly,///< Coefficients for the polynomial220 const psPolynomial2D *poly, ///< Coefficients for the polynomial 221 221 const psVector *x, ///< x locations at which to evaluate 222 222 const psVector *y ///< y locations at which to evaluate … … 444 444 * @return psSpline1D* new 1-D spline struct 445 445 */ 446 psSpline1D *psSpline1DAlloc( psS32 n,///< Number of spline polynomials447 psS32 order,///< Order of spline polynomials448 psF32min, ///< Lower boundary value of spline polynomials449 psF32max); ///< Upper boundary value of spline polynomials446 psSpline1D *psSpline1DAlloc(int n, ///< Number of spline polynomials 447 int order, ///< Order of spline polynomials 448 float min, ///< Lower boundary value of spline polynomials 449 float max); ///< Upper boundary value of spline polynomials 450 450 451 451 /** Allocates a psSpline1D structure … … 456 456 */ 457 457 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, ///< Bounds for spline polynomials 458 psS32 order);///< Order of spline polynomials458 int order); ///< Order of spline polynomials 459 459 460 460 /** Evaluates 1-D spline polynomials at a specific coordinate. 461 461 * 462 * @return psF32result of spline polynomials evaluated at given location463 */ 464 psF32psSpline1DEval(462 * @return float result of spline polynomials evaluated at given location 463 */ 464 float psSpline1DEval( 465 465 const psSpline1D *spline, ///< Coefficients for spline polynomials 466 psF32x ///< location at which to evaluate466 float x ///< location at which to evaluate 467 467 ); 468 468 -
trunk/psLib/src/math/psRandom.c
r4083 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 01 23:51:25$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 57 57 58 58 psRandom *psRandomAlloc(psRandomType type, 59 psU64seed)59 unsigned long seed) 60 60 { 61 61 gsl_rng *r = NULL; … … 86 86 87 87 void psRandomReset(psRandom *rand, 88 psU64seed)88 unsigned long seed) 89 89 { 90 90 // Check null psRandom … … 103 103 } 104 104 105 psF64psRandomUniform(const psRandom *r)105 double psRandomUniform(const psRandom *r) 106 106 { 107 107 // Check null psRandom variable … … 116 116 } 117 117 118 psF64psRandomGaussian(const psRandom *r)118 double psRandomGaussian(const psRandom *r) 119 119 { 120 120 // Check null psRandom variable … … 130 130 } 131 131 132 psF64 psRandomPoisson(const psRandom *r, psF64mean)132 double psRandomPoisson(const psRandom *r, double mean) 133 133 { 134 134 // Check null psRandom variable -
trunk/psLib/src/math/psRandom.h
r4293 r4330 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06- 17 00:11:05$12 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-21 03:01:37 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 54 54 psRandom *psRandomAlloc( 55 55 psRandomType type, ///< The type of RNG 56 psU64 seed///< Known value with which to seed the RNG56 unsigned long seed ///< Known value with which to seed the RNG 57 57 ); 58 58 … … 63 63 void psRandomReset( 64 64 psRandom *rand, ///< Existing psRandom struct to reset 65 psU64 seed///< Known value with which to seed the RNG65 unsigned long seed ///< Known value with which to seed the RNG 66 66 ); 67 67 … … 69 69 * Uses gsl_rng_uniform. 70 70 * 71 * @return psF64: Random number.71 * @return double: Random number. 72 72 */ 73 psF64psRandomUniform(73 double psRandomUniform( 74 74 const psRandom *r ///< psRandom struct for RNG 75 75 ); … … 78 78 * Uses gsl_ran_gaussian. 79 79 * 80 * @return psF64: Random number.80 * @return double: Random number. 81 81 */ 82 psF64psRandomGaussian(82 double psRandomGaussian( 83 83 const psRandom *r ///< psRandom struct for RNG 84 84 ); … … 87 87 * Uses gsl_ran_poisson. 88 88 * 89 * @return psF64: Random number.89 * @return double: Random number. 90 90 */ 91 psF64psRandomPoisson(91 double psRandomPoisson( 92 92 const psRandom *r, ///< psRandom struct for RNG 93 psF64mean ///< Mean value93 double mean ///< Mean value 94 94 ); 95 95 -
trunk/psLib/src/math/psSpline.c
r4315 r4330 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.1 09$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 18 02:30:49$9 * @version $Revision: 1.110 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-21 03:01:37 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1822 1822 XXX: What should be the defualty type for knots be? psF32 is assumed. 1823 1823 *****************************************************************************/ 1824 psSpline1D *psSpline1DAlloc( psS32numSplines,1825 psS32order,1826 psF32min,1827 psF32max)1824 psSpline1D *psSpline1DAlloc(int numSplines, 1825 int order, 1826 float min, 1827 float max) 1828 1828 { 1829 1829 PS_ASSERT_INT_NONNEGATIVE(numSplines, NULL); … … 1867 1867 *****************************************************************************/ 1868 1868 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, 1869 psS32order)1869 int order) 1870 1870 { 1871 1871 PS_ASSERT_VECTOR_NON_NULL(bounds, NULL); … … 2125 2125 psF64. 2126 2126 *****************************************************************************/ 2127 psF32psSpline1DEval(2127 float psSpline1DEval( 2128 2128 const psSpline1D *spline, 2129 psF32x2129 float x 2130 2130 ) 2131 2131 { -
trunk/psLib/src/math/psSpline.h
r4315 r4330 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06- 18 02:30:49$14 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-21 03:01:37 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 39 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 40 40 * 41 * @return psF32value on the gaussian curve given the input parameters41 * @return float value on the gaussian curve given the input parameters 42 42 */ 43 43 float psGaussian( … … 218 218 */ 219 219 psVector *psPolynomial2DEvalVector( 220 const psPolynomial2D * myPoly,///< Coefficients for the polynomial220 const psPolynomial2D *poly, ///< Coefficients for the polynomial 221 221 const psVector *x, ///< x locations at which to evaluate 222 222 const psVector *y ///< y locations at which to evaluate … … 444 444 * @return psSpline1D* new 1-D spline struct 445 445 */ 446 psSpline1D *psSpline1DAlloc( psS32 n,///< Number of spline polynomials447 psS32 order,///< Order of spline polynomials448 psF32min, ///< Lower boundary value of spline polynomials449 psF32max); ///< Upper boundary value of spline polynomials446 psSpline1D *psSpline1DAlloc(int n, ///< Number of spline polynomials 447 int order, ///< Order of spline polynomials 448 float min, ///< Lower boundary value of spline polynomials 449 float max); ///< Upper boundary value of spline polynomials 450 450 451 451 /** Allocates a psSpline1D structure … … 456 456 */ 457 457 psSpline1D *psSpline1DAllocGeneric(const psVector *bounds, ///< Bounds for spline polynomials 458 psS32 order);///< Order of spline polynomials458 int order); ///< Order of spline polynomials 459 459 460 460 /** Evaluates 1-D spline polynomials at a specific coordinate. 461 461 * 462 * @return psF32result of spline polynomials evaluated at given location463 */ 464 psF32psSpline1DEval(462 * @return float result of spline polynomials evaluated at given location 463 */ 464 float psSpline1DEval( 465 465 const psSpline1D *spline, ///< Coefficients for spline polynomials 466 psF32x ///< location at which to evaluate466 float x ///< location at which to evaluate 467 467 ); 468 468 -
trunk/psLib/src/mathtypes/psImage.c
r4316 r4330 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 69$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 18 03:13:02$11 * @version $Revision: 1.70 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 106 106 } 107 107 108 psRegion psRegionFromString(c har* region)108 psRegion psRegionFromString(const char* region) 109 109 { 110 110 psS32 col0; -
trunk/psLib/src/mathtypes/psImage.h
r4316 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 18 03:13:02$13 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 127 127 */ 128 128 psRegion psRegionFromString( 129 c har* region///< image rectangular region in the form '[x0:x1,y0:y1]'129 const char* region ///< image rectangular region in the form '[x0:x1,y0:y1]' 130 130 ); 131 131 … … 163 163 /** Frees all children of a psImage. 164 164 * 165 * @return psS32Number of children freed.165 * @return int Number of children freed. 166 166 * 167 167 */ -
trunk/psLib/src/mathtypes/psScalar.c
r3264 r4330 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 2-17 19:26:23$10 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-21 03:01:37 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 80 80 } 81 81 82 psScalar* psScalarCopy( psScalar *scalar)82 psScalar* psScalarCopy(const psScalar *value) 83 83 { 84 84 psElemType dataType; 85 85 psScalar *newScalar = NULL; 86 86 87 if ( scalar== NULL) {87 if (value == NULL) { 88 88 psError(PS_ERR_BAD_PARAMETER_NULL, true, 89 89 PS_ERRORTEXT_psScalar_COPY_NULL); … … 91 91 } 92 92 93 dataType = scalar->type.type;93 dataType = value->type.type; 94 94 switch (dataType) { 95 95 case PS_TYPE_S8: 96 newScalar = psScalarAlloc( scalar->data.S8, dataType);96 newScalar = psScalarAlloc(value->data.S8, dataType); 97 97 break; 98 98 case PS_TYPE_U8: 99 newScalar = psScalarAlloc( scalar->data.U8, dataType);99 newScalar = psScalarAlloc(value->data.U8, dataType); 100 100 break; 101 101 case PS_TYPE_S16: 102 newScalar = psScalarAlloc( scalar->data.S16, dataType);102 newScalar = psScalarAlloc(value->data.S16, dataType); 103 103 break; 104 104 case PS_TYPE_U16: 105 newScalar = psScalarAlloc( scalar->data.U16, dataType);105 newScalar = psScalarAlloc(value->data.U16, dataType); 106 106 break; 107 107 case PS_TYPE_S32: 108 newScalar = psScalarAlloc( scalar->data.S32, dataType);108 newScalar = psScalarAlloc(value->data.S32, dataType); 109 109 break; 110 110 case PS_TYPE_U32: 111 newScalar = psScalarAlloc( scalar->data.U32, dataType);111 newScalar = psScalarAlloc(value->data.U32, dataType); 112 112 break; 113 113 case PS_TYPE_S64: 114 newScalar = psScalarAlloc( scalar->data.S64, dataType);114 newScalar = psScalarAlloc(value->data.S64, dataType); 115 115 break; 116 116 case PS_TYPE_U64: 117 newScalar = psScalarAlloc( scalar->data.U64, dataType);117 newScalar = psScalarAlloc(value->data.U64, dataType); 118 118 break; 119 119 case PS_TYPE_F32: 120 newScalar = psScalarAlloc( scalar->data.F32, dataType);120 newScalar = psScalarAlloc(value->data.F32, dataType); 121 121 break; 122 122 case PS_TYPE_F64: 123 newScalar = psScalarAlloc( scalar->data.F64, dataType);123 newScalar = psScalarAlloc(value->data.F64, dataType); 124 124 break; 125 125 case PS_TYPE_C32: 126 newScalar = psScalarAlloc( scalar->data.C32, dataType);126 newScalar = psScalarAlloc(value->data.C32, dataType); 127 127 break; 128 128 case PS_TYPE_C64: 129 newScalar = psScalarAlloc( scalar->data.C64, dataType);129 newScalar = psScalarAlloc(value->data.C64, dataType); 130 130 break; 131 131 default: -
trunk/psLib/src/mathtypes/psScalar.h
r4162 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 08 23:40:45$13 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 77 77 */ 78 78 psScalar* psScalarCopy( 79 psScalar *scalar///< Scalar to copy.79 const psScalar *value ///< Scalar to copy. 80 80 ); 81 81 -
trunk/psLib/src/mathtypes/psVector.c
r4212 r4330 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 10 21:46:46$11 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 129 129 } 130 130 131 psVector *psVectorExtend(psVector *vector, int delta, intnExtend)131 psVector *psVectorExtend(psVector *vector, long delta, long nExtend) 132 132 { 133 133 // can't handle a NULL vector (don't know the data type to allocate) … … 166 166 } 167 167 168 psVector* psVectorCopy(psVector* out , const psVector* in, psElemType type)169 { 170 if (in == NULL) {168 psVector* psVectorCopy(psVector* output, const psVector* input, psElemType type) 169 { 170 if (input == NULL) { 171 171 psError(PS_ERR_BAD_PARAMETER_NULL, true, 172 172 PS_ERRORTEXT_psVector_SORT_NULL); 173 psFree(out );174 return NULL; 175 } 176 177 psS32 nElements = in ->n;178 179 out = psVectorRecycle(out, nElements, type);173 psFree(output); 174 return NULL; 175 } 176 177 psS32 nElements = input->n; 178 179 output = psVectorRecycle(output, nElements, type); 180 180 181 181 #define PSVECTOR_COPY(INTYPE,OUTTYPE) { \ 182 ps##INTYPE *inVec = in ->data.INTYPE; \183 ps##OUTTYPE *outVec = out ->data.OUTTYPE; \182 ps##INTYPE *inVec = input->data.INTYPE; \ 183 ps##OUTTYPE *outVec = output->data.OUTTYPE; \ 184 184 for (psS32 col=0;col<nElements;col++) { \ 185 185 *(outVec++) = *(inVec++); \ … … 189 189 #define PSVECTOR_COPY_CASE(OUTTYPE) \ 190 190 case PS_TYPE_##OUTTYPE: { \ 191 switch (in ->type.type) { \191 switch (input->type.type) { \ 192 192 case PS_TYPE_S8: \ 193 193 PSVECTOR_COPY(S8,OUTTYPE); \ … … 232 232 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, \ 233 233 typeStr); \ 234 psFree(out ); \234 psFree(output); \ 235 235 } \ 236 236 } \ … … 257 257 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 258 258 typeStr); 259 psFree(out );259 psFree(output); 260 260 261 261 break; 262 262 } 263 263 } 264 return out ;264 return output; 265 265 266 266 -
trunk/psLib/src/mathtypes/psVector.h
r4212 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06- 10 21:46:46$13 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 101 101 psVector *psVectorExtend( 102 102 psVector *vector, ///< Vector to extend 103 int delta,///< Amount to expand allocation, if necessary104 int nExtend///< Number of elements to add to vector length103 long delta, ///< Amount to expand allocation, if necessary 104 long nExtend ///< Number of elements to add to vector length 105 105 ); 106 106 … … 132 132 */ 133 133 psVector* psVectorCopy( 134 psVector* out ,///< if non-NULL, a psVector to recycle135 const psVector* in ,///< the vector to copy.134 psVector* output, ///< if non-NULL, a psVector to recycle 135 const psVector* input, ///< the vector to copy. 136 136 psElemType type ///< the data type of the resulting psVector 137 137 ); -
trunk/psLib/src/sys/psLogMsg.h
r4321 r4330 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-2 0 22:42:30$13 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 42 42 * be displayed. The old log level will be returned. 43 43 * 44 * @return psS32old logging level44 * @return int old logging level 45 45 */ 46 46 int psLogSetLevel( -
trunk/psLib/src/sys/psMemory.h
r4321 r4330 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-2 0 22:42:30$14 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-21 03:01:37 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 190 190 * Memory marked as persistent is excluded from memory leak checks. 191 191 * 192 * @return psBool true if memory is marked persistent, otherwise false.192 * @return bool true if memory is marked persistent, otherwise false. 193 193 */ 194 194 bool p_psMemGetPersistent( -
trunk/psLib/src/sys/psTrace.c
r4308 r4330 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.5 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 17 23:44:21$11 * @version $Revision: 1.51 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 377 377 The level of "name" in the root component tree. 378 378 *****************************************************************************/ 379 psS32psTraceGetLevel(const char *name)379 int psTraceGetLevel(const char *name) 380 380 { 381 381 char *compName = NULL; -
trunk/psLib/src/sys/psTrace.h
r3781 r4330 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 4-28 23:46:29$11 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 83 83 84 84 /// Get the trace level 85 psS32 psTraceGetLevel(const char *facil) ///< facilty of interest 86 ; 85 int psTraceGetLevel( 86 const char *facil ///< facilty of interest 87 ); 87 88 88 89 /// Set all trace levels to zero (do not free nodes in the component tree). -
trunk/psLib/src/sysUtils/psLogMsg.h
r4321 r4330 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-2 0 22:42:30$13 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 42 42 * be displayed. The old log level will be returned. 43 43 * 44 * @return psS32old logging level44 * @return int old logging level 45 45 */ 46 46 int psLogSetLevel( -
trunk/psLib/src/sysUtils/psMemory.h
r4321 r4330 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-2 0 22:42:30$14 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-21 03:01:37 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 190 190 * Memory marked as persistent is excluded from memory leak checks. 191 191 * 192 * @return psBool true if memory is marked persistent, otherwise false.192 * @return bool true if memory is marked persistent, otherwise false. 193 193 */ 194 194 bool p_psMemGetPersistent( -
trunk/psLib/src/sysUtils/psTrace.c
r4308 r4330 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.5 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06- 17 23:44:21$11 * @version $Revision: 1.51 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 377 377 The level of "name" in the root component tree. 378 378 *****************************************************************************/ 379 psS32psTraceGetLevel(const char *name)379 int psTraceGetLevel(const char *name) 380 380 { 381 381 char *compName = NULL; -
trunk/psLib/src/sysUtils/psTrace.h
r3781 r4330 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 4-28 23:46:29$11 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-21 03:01:37 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 83 83 84 84 /// Get the trace level 85 psS32 psTraceGetLevel(const char *facil) ///< facilty of interest 86 ; 85 int psTraceGetLevel( 86 const char *facil ///< facilty of interest 87 ); 87 88 88 89 /// Set all trace levels to zero (do not free nodes in the component tree). -
trunk/psLib/src/types/psList.h
r4316 r4330 7 7 * @ingroup LinkedList 8 8 * 9 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06- 18 03:13:02$9 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-21 03:01:37 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 107 107 * iterator position is not changed. 108 108 * 109 * @return psBool TRUE if iterator successfully set, otherwise FALSE.109 * @return bool TRUE if iterator successfully set, otherwise FALSE. 110 110 */ 111 111 bool psListIteratorSet( … … 116 116 /** Adds an element to a psList at position given. 117 117 * 118 * @return psBool TRUE if item was successfully added, otherwise FALSE.118 * @return bool TRUE if item was successfully added, otherwise FALSE. 119 119 */ 120 120 bool psListAdd( … … 126 126 /** Adds an data item to a psList at position just after the list position given 127 127 * 128 * @return psBool TRUE if item was successfully added, otherwise FALSE.128 * @return bool TRUE if item was successfully added, otherwise FALSE. 129 129 */ 130 130 bool psListAddAfter( … … 135 135 /** Adds an data item to a psList at position just before the list position given 136 136 * 137 * @return psBool TRUE if item was successfully added, otherwise FALSE.137 * @return bool TRUE if item was successfully added, otherwise FALSE. 138 138 */ 139 139 bool psListAddBefore( … … 144 144 /** Remove an item at the specified location from a list. 145 145 * 146 * @return psBool TRUE if element is successfully removed, otherwise FALSE.146 * @return bool TRUE if element is successfully removed, otherwise FALSE. 147 147 */ 148 148 bool psListRemove( … … 153 153 /** Remove an item from a list. 154 154 * 155 * @return psBool TRUE if element is successfully removed, otherwise FALSE.155 * @return bool TRUE if element is successfully removed, otherwise FALSE. 156 156 */ 157 157 bool psListRemoveData( -
trunk/psLib/src/types/psMetadata.h
r4321 r4330 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 49$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-2 0 22:42:29$13 * @version $Revision: 1.50 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-21 03:01:37 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 274 274 int location, ///< Index number, PS_LIST_HEAD, or PS_LIST_TAIL 275 275 const char *name, ///< Name of metadata item. 276 int format, ///< Type of metadata item (psMetadataType) and options (psMetadataFlags)276 int format, ///< Type of metadata item (psMetadataType) and options (psMetadataFlags) 277 277 const char *comment, ///< Comment for metadata item. 278 278 ... ///< Arguments for name formatting and metadata item data. … … 298 298 /** Add a psS32 value to metadata collection. 299 299 * 300 * @return psBool: True for success, False for failure.300 * @return bool: True for success, False for failure. 301 301 */ 302 302 bool psMetadataAddS32( … … 310 310 /** Add a psF32 value to metadata collection. 311 311 * 312 * @return psBool: True for success, False for failure.312 * @return bool: True for success, False for failure. 313 313 */ 314 314 bool psMetadataAddF32( … … 322 322 /** Add a psF64 value to metadata collection. 323 323 * 324 * @return psBool: True for success, False for failure.324 * @return bool: True for success, False for failure. 325 325 */ 326 326 bool psMetadataAddF64( … … 346 346 /** Add a string to metadata collection. 347 347 * 348 * @return psBool: True for success, False for failure.348 * @return bool: True for success, False for failure. 349 349 */ 350 350 bool psMetadataAddStr( … … 505 505 * returned. 506 506 * 507 * @return psBool : Value of metadata item.508 */ 509 psBool psMetadataLookupBool(507 * @return bool : Value of metadata item. 508 */ 509 bool psMetadataLookupBool( 510 510 bool *status, ///< Status of lookup. 511 511 const psMetadata *md, ///< Metadata collection to lookup metadata item. … … 558 558 * invalid the iterator position is not changed. 559 559 * 560 * @return psBool TRUE if iterator successfully set, otherwise FALSE.560 * @return bool TRUE if iterator successfully set, otherwise FALSE. 561 561 */ 562 562 bool psMetadataIteratorSet(
Note:
See TracChangeset
for help on using the changeset viewer.
