Changeset 4162
- Timestamp:
- Jun 8, 2005, 1:40:46 PM (21 years ago)
- Location:
- trunk/psLib
- Files:
-
- 103 edited
-
src/astro/psCoord.h (modified) (4 diffs)
-
src/astro/psTime.h (modified) (10 diffs)
-
src/astronomy/psAstrometry.h (modified) (2 diffs)
-
src/astronomy/psAstronomyErrors.h (modified) (2 diffs)
-
src/astronomy/psCoord.h (modified) (4 diffs)
-
src/astronomy/psPhotometry.h (modified) (3 diffs)
-
src/astronomy/psTime.h (modified) (10 diffs)
-
src/collections/psArray.h (modified) (7 diffs)
-
src/collections/psBitSet.h (modified) (3 diffs)
-
src/collections/psCollectionsErrors.h (modified) (3 diffs)
-
src/collections/psCompare.h (modified) (44 diffs)
-
src/collections/psHash.h (modified) (2 diffs)
-
src/collections/psList.h (modified) (4 diffs)
-
src/collections/psMetadata.h (modified) (5 diffs)
-
src/collections/psMetadataIO.h (modified) (2 diffs)
-
src/collections/psPixels.h (modified) (2 diffs)
-
src/collections/psScalar.h (modified) (2 diffs)
-
src/collections/psVector.h (modified) (2 diffs)
-
src/dataIO/psFileUtilsErrors.h (modified) (3 diffs)
-
src/dataIO/psFits.h (modified) (2 diffs)
-
src/dataIO/psLookupTable.c (modified) (2 diffs)
-
src/dataIO/psLookupTable.h (modified) (2 diffs)
-
src/dataManip/psBinaryOp.h (modified) (3 diffs)
-
src/dataManip/psConstants.h (modified) (3 diffs)
-
src/dataManip/psDataManipErrors.h (modified) (2 diffs)
-
src/dataManip/psFunctions.c (modified) (2 diffs)
-
src/dataManip/psFunctions.h (modified) (4 diffs)
-
src/dataManip/psMatrix.h (modified) (3 diffs)
-
src/dataManip/psMinimize.h (modified) (4 diffs)
-
src/dataManip/psRandom.h (modified) (2 diffs)
-
src/dataManip/psStats.c (modified) (5 diffs)
-
src/dataManip/psStats.h (modified) (7 diffs)
-
src/dataManip/psUnaryOp.h (modified) (2 diffs)
-
src/dataManip/psVectorFFT.h (modified) (8 diffs)
-
src/fft/psImageFFT.h (modified) (8 diffs)
-
src/fft/psVectorFFT.h (modified) (8 diffs)
-
src/fits/psFits.h (modified) (2 diffs)
-
src/image/psImageConvolve.h (modified) (5 diffs)
-
src/image/psImageErrors.h (modified) (3 diffs)
-
src/image/psImageFFT.h (modified) (8 diffs)
-
src/image/psImageGeomManip.h (modified) (2 diffs)
-
src/image/psImagePixelExtract.h (modified) (2 diffs)
-
src/image/psImagePixelManip.h (modified) (2 diffs)
-
src/image/psImageStats.h (modified) (6 diffs)
-
src/image/psImageStructManip.h (modified) (2 diffs)
-
src/imageops/psImageConvolve.h (modified) (5 diffs)
-
src/imageops/psImageGeomManip.h (modified) (2 diffs)
-
src/imageops/psImagePixelExtract.h (modified) (2 diffs)
-
src/imageops/psImagePixelManip.h (modified) (2 diffs)
-
src/imageops/psImageStats.h (modified) (6 diffs)
-
src/imageops/psImageStructManip.h (modified) (2 diffs)
-
src/math/psBinaryOp.h (modified) (3 diffs)
-
src/math/psCompare.h (modified) (44 diffs)
-
src/math/psConstants.h (modified) (3 diffs)
-
src/math/psMatrix.h (modified) (3 diffs)
-
src/math/psMinimize.h (modified) (4 diffs)
-
src/math/psPolynomial.c (modified) (2 diffs)
-
src/math/psPolynomial.h (modified) (4 diffs)
-
src/math/psRandom.h (modified) (2 diffs)
-
src/math/psSpline.c (modified) (2 diffs)
-
src/math/psSpline.h (modified) (4 diffs)
-
src/math/psStats.c (modified) (5 diffs)
-
src/math/psStats.h (modified) (7 diffs)
-
src/math/psUnaryOp.h (modified) (2 diffs)
-
src/mathtypes/psScalar.h (modified) (2 diffs)
-
src/mathtypes/psVector.h (modified) (2 diffs)
-
src/psTest.h (modified) (2 diffs)
-
src/pslib.h (modified) (2 diffs)
-
src/pslib_strict.h (modified) (3 diffs)
-
src/sys/psAbort.h (modified) (3 diffs)
-
src/sys/psConfigure.h (modified) (3 diffs)
-
src/sys/psError.h (modified) (4 diffs)
-
src/sys/psErrorCodes.h (modified) (5 diffs)
-
src/sys/psLogMsg.c (modified) (2 diffs)
-
src/sys/psLogMsg.h (modified) (3 diffs)
-
src/sys/psMemory.c (modified) (3 diffs)
-
src/sys/psMemory.h (modified) (20 diffs)
-
src/sys/psString.h (modified) (2 diffs)
-
src/sys/psTrace.c (modified) (2 diffs)
-
src/sys/psType.h (modified) (3 diffs)
-
src/sysUtils/psAbort.h (modified) (3 diffs)
-
src/sysUtils/psConfigure.h (modified) (3 diffs)
-
src/sysUtils/psError.h (modified) (4 diffs)
-
src/sysUtils/psErrorCodes.h (modified) (5 diffs)
-
src/sysUtils/psLogMsg.c (modified) (2 diffs)
-
src/sysUtils/psLogMsg.h (modified) (3 diffs)
-
src/sysUtils/psMemory.c (modified) (3 diffs)
-
src/sysUtils/psMemory.h (modified) (20 diffs)
-
src/sysUtils/psString.h (modified) (2 diffs)
-
src/sysUtils/psSysUtilsErrors.h (modified) (3 diffs)
-
src/sysUtils/psTrace.c (modified) (2 diffs)
-
src/sysUtils/psType.h (modified) (3 diffs)
-
src/types/psArray.h (modified) (7 diffs)
-
src/types/psBitSet.h (modified) (3 diffs)
-
src/types/psHash.h (modified) (2 diffs)
-
src/types/psList.h (modified) (4 diffs)
-
src/types/psLookupTable.c (modified) (2 diffs)
-
src/types/psLookupTable.h (modified) (2 diffs)
-
src/types/psMetadata.h (modified) (5 diffs)
-
src/types/psMetadataConfig.h (modified) (2 diffs)
-
src/types/psPixels.h (modified) (2 diffs)
-
src/xml/psXML.h (modified) (2 diffs)
-
test/psTest.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.h
r4127 r4162 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-0 7 02:08:26$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 357 357 /** Takes a given transform and inverts it linearly if possible. 358 358 * 359 * @return psPlaneTransform 359 * @return psPlaneTransform 360 360 * the linearly inverted transform 361 361 */ … … 367 367 /** Takes a transform and tests whether or not it is a linear projection. 368 368 * 369 * @return psS32 369 * @return psS32 370 370 * the order of the projection 371 371 */ … … 446 446 /// @} 447 447 448 #endif 448 #endif // #ifndef PS_COORD_H -
trunk/psLib/src/astro/psTime.h
r4051 r4162 1 1 /** @file psTime.h 2 2 * 3 * @brief Definitions for time, time utilities, and conversion functions for use 3 * @brief Definitions for time, time utilities, and conversion functions for use 4 4 * with psLib astronomy functions. 5 5 * 6 * A collection of functions are required by psLib to manipulate time data. These 7 * functions primarily consist of conversions between specific time formats. They 8 * use the UNIX timeval time system as the base upon which International Atomic 6 * A collection of functions are required by psLib to manipulate time data. These 7 * functions primarily consist of conversions between specific time formats. They 8 * use the UNIX timeval time system as the base upon which International Atomic 9 9 * Time (TAI) and Universal Time Coordinated (UTC) are calculated. 10 10 * 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 5-31 21:47:46$13 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 88 88 /** Allocate time struct. 89 89 * 90 * Allocates an empty time struct. User must specify the psTimeType 91 * (PS_TIME_TAI or PS_TIME_UTC) in the argument. The seconds and microseconds members 90 * Allocates an empty time struct. User must specify the psTimeType 91 * (PS_TIME_TAI or PS_TIME_UTC) in the argument. The seconds and microseconds members 92 92 * of the struct are set to zero. 93 93 * … … 100 100 /** Get current time. 101 101 * 102 * Gets current time from the system clock. User must specify the psTimeType 102 * Gets current time from the system clock. User must specify the psTimeType 103 103 * (PS_TIME_TAI or PS_TIME_UTC) in the argument. 104 104 * … … 122 122 /** Convert psTime to Local Mean Sidereal Time (LMST). 123 123 * 124 * Converts psTime at the given longitude to LMST time. If the input time is not 124 * Converts psTime at the given longitude to LMST time. If the input time is not 125 125 * in UTC format, then it is converted. 126 126 * … … 186 186 /** Convert psTime to Julian date time. 187 187 * 188 * Converts psTime to Julian date (JD) time. This function does not add or 188 * Converts psTime to Julian date (JD) time. This function does not add or 189 189 * subtract leapseconds. 190 190 * … … 196 196 /** Convert psTime to modified Julian date time. 197 197 * 198 * Converts psTime to modified Julian date (MJD) time. This function does not 198 * Converts psTime to modified Julian date (MJD) time. This function does not 199 199 * add or subtract leapseconds. 200 200 * … … 207 207 /** Convert psTime to ISO8601 formatted string. 208 208 * 209 * Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sss. 209 * Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sss. 210 210 * This function does not add or subtract leapseconds. 211 211 * … … 229 229 * Convert psTime to tm time. 230 230 * 231 * Converts psTime to tm time. This function is based on a Perl algorithm availble 232 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 231 * Converts psTime to tm time. This function is based on a Perl algorithm availble 232 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 233 233 * does not add or subtract leapseconds. 234 234 * … … 304 304 /** Convert tm time to psTime. 305 305 * 306 * Converts tm time to psTime. This function is based on a Perl algorithm availble 307 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 306 * Converts tm time to psTime. This function is based on a Perl algorithm availble 307 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 308 308 * does not add or subtract leapseconds. 309 309 * … … 346 346 /// @} 347 347 348 #endif 348 #endif // #ifndef PSTIME_H -
trunk/psLib/src/astronomy/psAstrometry.h
r4143 r4162 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-06-08 00:26:01$10 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 532 532 533 533 534 #endif 534 #endif // #ifndef PS_ASTROMETRY_H -
trunk/psLib/src/astronomy/psAstronomyErrors.h
r3955 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-17 21:12:42$9 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 87 87 //~End 88 88 89 #endif 89 #endif // #ifndef PS_ASTRONOMY_ERRORS_H -
trunk/psLib/src/astronomy/psCoord.h
r4127 r4162 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-06-0 7 02:08:26$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 357 357 /** Takes a given transform and inverts it linearly if possible. 358 358 * 359 * @return psPlaneTransform 359 * @return psPlaneTransform 360 360 * the linearly inverted transform 361 361 */ … … 367 367 /** Takes a transform and tests whether or not it is a linear projection. 368 368 * 369 * @return psS32 369 * @return psS32 370 370 * the order of the projection 371 371 */ … … 446 446 /// @} 447 447 448 #endif 448 #endif // #ifndef PS_COORD_H -
trunk/psLib/src/astronomy/psPhotometry.h
r4134 r4162 12 12 * incorporate it into psAstrometry.h 13 13 * 14 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-06-0 7 22:27:28$14 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 /** The photometric system description 30 30 * 31 * The photometric system is defined by the psPhotSystem structure. A 32 * photometric system is identified by a human-readable name (ie, SDSS.g, 33 * Landolt92.B, GPC1.OTA32.r). Each photometric system is given a unique 34 * identifier ID. Observations taken with a specific camera, detector, and 35 * filter represent their own photometric system, and it may be necessary to 36 * perform transformations between these systems. Photometric systems 37 * associated with observations from a specific camera/ detector/filter 31 * The photometric system is defined by the psPhotSystem structure. A 32 * photometric system is identified by a human-readable name (ie, SDSS.g, 33 * Landolt92.B, GPC1.OTA32.r). Each photometric system is given a unique 34 * identifier ID. Observations taken with a specific camera, detector, and 35 * filter represent their own photometric system, and it may be necessary to 36 * perform transformations between these systems. Photometric systems 37 * associated with observations from a specific camera/ detector/filter 38 38 * combination can be associated with those components. 39 39 * … … 72 72 /// @} 73 73 74 #endif 74 #endif // #ifndef PS_PHOTOMETRIC_H -
trunk/psLib/src/astronomy/psTime.h
r4051 r4162 1 1 /** @file psTime.h 2 2 * 3 * @brief Definitions for time, time utilities, and conversion functions for use 3 * @brief Definitions for time, time utilities, and conversion functions for use 4 4 * with psLib astronomy functions. 5 5 * 6 * A collection of functions are required by psLib to manipulate time data. These 7 * functions primarily consist of conversions between specific time formats. They 8 * use the UNIX timeval time system as the base upon which International Atomic 6 * A collection of functions are required by psLib to manipulate time data. These 7 * functions primarily consist of conversions between specific time formats. They 8 * use the UNIX timeval time system as the base upon which International Atomic 9 9 * Time (TAI) and Universal Time Coordinated (UTC) are calculated. 10 10 * 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 5-31 21:47:46$13 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 88 88 /** Allocate time struct. 89 89 * 90 * Allocates an empty time struct. User must specify the psTimeType 91 * (PS_TIME_TAI or PS_TIME_UTC) in the argument. The seconds and microseconds members 90 * Allocates an empty time struct. User must specify the psTimeType 91 * (PS_TIME_TAI or PS_TIME_UTC) in the argument. The seconds and microseconds members 92 92 * of the struct are set to zero. 93 93 * … … 100 100 /** Get current time. 101 101 * 102 * Gets current time from the system clock. User must specify the psTimeType 102 * Gets current time from the system clock. User must specify the psTimeType 103 103 * (PS_TIME_TAI or PS_TIME_UTC) in the argument. 104 104 * … … 122 122 /** Convert psTime to Local Mean Sidereal Time (LMST). 123 123 * 124 * Converts psTime at the given longitude to LMST time. If the input time is not 124 * Converts psTime at the given longitude to LMST time. If the input time is not 125 125 * in UTC format, then it is converted. 126 126 * … … 186 186 /** Convert psTime to Julian date time. 187 187 * 188 * Converts psTime to Julian date (JD) time. This function does not add or 188 * Converts psTime to Julian date (JD) time. This function does not add or 189 189 * subtract leapseconds. 190 190 * … … 196 196 /** Convert psTime to modified Julian date time. 197 197 * 198 * Converts psTime to modified Julian date (MJD) time. This function does not 198 * Converts psTime to modified Julian date (MJD) time. This function does not 199 199 * add or subtract leapseconds. 200 200 * … … 207 207 /** Convert psTime to ISO8601 formatted string. 208 208 * 209 * Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sss. 209 * Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sss. 210 210 * This function does not add or subtract leapseconds. 211 211 * … … 229 229 * Convert psTime to tm time. 230 230 * 231 * Converts psTime to tm time. This function is based on a Perl algorithm availble 232 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 231 * Converts psTime to tm time. This function is based on a Perl algorithm availble 232 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 233 233 * does not add or subtract leapseconds. 234 234 * … … 304 304 /** Convert tm time to psTime. 305 305 * 306 * Converts tm time to psTime. This function is based on a Perl algorithm availble 307 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 306 * Converts tm time to psTime. This function is based on a Perl algorithm availble 307 * in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function 308 308 * does not add or subtract leapseconds. 309 309 * … … 346 346 /// @} 347 347 348 #endif 348 #endif // #ifndef PSTIME_H -
trunk/psLib/src/collections/psArray.h
r3264 r4162 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:23$14 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 48 48 /** Allocate an array. 49 49 * 50 * Uses psLib memory allocation functions to create an array collection of 50 * Uses psLib memory allocation functions to create an array collection of 51 51 * data 52 52 * … … 60 60 /** Reallocate an array. 61 61 * 62 * Uses psLib memory allocation functions to reallocate an array collection 63 * of data. 62 * Uses psLib memory allocation functions to reallocate an array collection 63 * of data. 64 64 * 65 65 * @return psArray* : Pointer to psArray. … … 85 85 /** Remove an element from the array 86 86 * 87 * Finds and removes the specified data pointer from the list. 87 * Finds and removes the specified data pointer from the list. 88 88 * 89 * @return bool: TRUE if the specified data pointer was found and removed, 89 * @return bool: TRUE if the specified data pointer was found and removed, 90 90 * otherwise FALSE. 91 91 * … … 98 98 /** Deallocate/Dereference elements of an array. 99 99 * 100 * Uses psLib memory allocation functions to deallocate/dereference elements 100 * Uses psLib memory allocation functions to deallocate/dereference elements 101 101 * of a array of void pointers. The array psArr is not freed, and its elements 102 102 * will all be set to NULL. … … 112 112 * to specify how the objects on the array should be sorted. 113 113 * 114 * The comparison function must return an integer less than, equal to, or 115 * greater than zero if the first argument is considered to be respectively 116 * less than, equal to, or greater than the second. 114 * The comparison function must return an integer less than, equal to, or 115 * greater than zero if the first argument is considered to be respectively 116 * less than, equal to, or greater than the second. 117 117 * 118 * If two members compare as equal, their order in the sorted array is 118 * If two members compare as equal, their order in the sorted array is 119 119 * undefined. 120 120 * … … 148 148 /// @} 149 149 150 #endif 150 #endif // #ifndef PS_ARRAY_H -
trunk/psLib/src/collections/psBitSet.h
r3264 r4162 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:23$14 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 75 75 /** Clear a bit. 76 76 * 77 * Clear a bit at a given bit location. The bit is cleared based on a zero 78 * index with the first bit set in the zero bit slot of the zero element of 79 * the byte array. 77 * Clear a bit at a given bit location. The bit is cleared based on a zero 78 * index with the first bit set in the zero bit slot of the zero element of 79 * the byte array. 80 80 * 81 81 * @return psBitSet* : Pointer to struct containing psBitSet. … … 143 143 /// @} 144 144 145 #endif 145 #endif // #ifndef PSBITSET_H -
trunk/psLib/src/collections/psCollectionsErrors.h
r3959 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-18 21:38:19$9 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 23 * $2 The error text (rest of the line in psCollectionsErrors.dat) 24 24 * $n The order of the source line in psCollecitonsErrors.dat (comments excluded) 25 * 25 * 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ … … 67 67 //~End 68 68 69 #endif 69 #endif // #ifndef PS_COLLECTIONS_ERRORS_H -
trunk/psLib/src/collections/psCompare.h
r3264 r4162 6 6 * @ingroup Compare 7 7 * 8 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 2-17 19:26:23$8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-08 23:40:45 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 12 12 */ 13 13 14 #if !defined(PS_COMPARE_H)14 #ifndef PS_COMPARE_H 15 15 #define PS_COMPARE_H 16 16 … … 24 24 * e.g., for psList of pointers to numeric values. 25 25 * 26 * @return int an integer less than, equal to, or greater than zero if 27 * the first argument is considered to be respectively less 28 * than, equal to, or greater than the second. 26 * @return int an integer less than, equal to, or greater than zero if 27 * the first argument is considered to be respectively less 28 * than, equal to, or greater than the second. 29 29 */ 30 30 typedef int (*psComparePtrFcn) ( … … 35 35 /** A comparison function for sorting. 36 36 * 37 * @return int an integer less than, equal to, or greater than zero if 38 * the first argument is considered to be respectively less 39 * than, equal to, or greater than the second. 37 * @return int an integer less than, equal to, or greater than zero if 38 * the first argument is considered to be respectively less 39 * than, equal to, or greater than the second. 40 40 */ 41 41 typedef int (*psCompareFcn) ( … … 46 46 /** Compare function of psS8 data. For use with psListSort. 47 47 * 48 * @return int an integer less than, equal to, or greater than zero if 49 * the first argument is considered to be respectively less 50 * than, equal to, or greater than the second. 48 * @return int an integer less than, equal to, or greater than zero if 49 * the first argument is considered to be respectively less 50 * than, equal to, or greater than the second. 51 51 */ 52 52 int psCompareS8Ptr( … … 57 57 /** Compare function of psS16 data. For use with psListSort. 58 58 * 59 * @return int an integer less than, equal to, or greater than zero if 60 * the first argument is considered to be respectively less 61 * than, equal to, or greater than the second. 59 * @return int an integer less than, equal to, or greater than zero if 60 * the first argument is considered to be respectively less 61 * than, equal to, or greater than the second. 62 62 */ 63 63 int psCompareS16Ptr( … … 68 68 /** Compare function of psS32 data. For use with psListSort. 69 69 * 70 * @return int an integer less than, equal to, or greater than zero if 71 * the first argument is considered to be respectively less 72 * than, equal to, or greater than the second. 70 * @return int an integer less than, equal to, or greater than zero if 71 * the first argument is considered to be respectively less 72 * than, equal to, or greater than the second. 73 73 */ 74 74 int psCompareS32Ptr( … … 79 79 /** Compare function of psS64 data. For use with psListSort. 80 80 * 81 * @return int an integer less than, equal to, or greater than zero if 82 * the first argument is considered to be respectively less 83 * than, equal to, or greater than the second. 81 * @return int an integer less than, equal to, or greater than zero if 82 * the first argument is considered to be respectively less 83 * than, equal to, or greater than the second. 84 84 */ 85 85 int psCompareS64Ptr( … … 90 90 /** Compare function of psU8 data. For use with psListSort. 91 91 * 92 * @return int an integer less than, equal to, or greater than zero if 93 * the first argument is considered to be respectively less 94 * than, equal to, or greater than the second. 92 * @return int an integer less than, equal to, or greater than zero if 93 * the first argument is considered to be respectively less 94 * than, equal to, or greater than the second. 95 95 */ 96 96 int psCompareU8Ptr( … … 101 101 /** Compare function of psU16 data. For use with psListSort. 102 102 * 103 * @return int an integer less than, equal to, or greater than zero if 104 * the first argument is considered to be respectively less 105 * than, equal to, or greater than the second. 103 * @return int an integer less than, equal to, or greater than zero if 104 * the first argument is considered to be respectively less 105 * than, equal to, or greater than the second. 106 106 */ 107 107 int psCompareU16Ptr( … … 112 112 /** Compare function of psU32 data. For use with psListSort. 113 113 * 114 * @return int an integer less than, equal to, or greater than zero if 115 * the first argument is considered to be respectively less 116 * than, equal to, or greater than the second. 114 * @return int an integer less than, equal to, or greater than zero if 115 * the first argument is considered to be respectively less 116 * than, equal to, or greater than the second. 117 117 */ 118 118 int psCompareU32Ptr( … … 123 123 /** Compare function of psU64 data. For use with psListSort. 124 124 * 125 * @return int an integer less than, equal to, or greater than zero if 126 * the first argument is considered to be respectively less 127 * than, equal to, or greater than the second. 125 * @return int an integer less than, equal to, or greater than zero if 126 * the first argument is considered to be respectively less 127 * than, equal to, or greater than the second. 128 128 */ 129 129 int psCompareU64Ptr( … … 134 134 /** Compare function of psF32 data. For use with psListSort. 135 135 * 136 * @return int an integer less than, equal to, or greater than zero if 137 * the first argument is considered to be respectively less 138 * than, equal to, or greater than the second. 136 * @return int an integer less than, equal to, or greater than zero if 137 * the first argument is considered to be respectively less 138 * than, equal to, or greater than the second. 139 139 */ 140 140 int psCompareF32Ptr( … … 145 145 /** Compare function of psF64 data. For use with psListSort. 146 146 * 147 * @return int an integer less than, equal to, or greater than zero if 148 * the first argument is considered to be respectively less 149 * than, equal to, or greater than the second. 147 * @return int an integer less than, equal to, or greater than zero if 148 * the first argument is considered to be respectively less 149 * than, equal to, or greater than the second. 150 150 */ 151 151 int psCompareF64Ptr( … … 156 156 /** Compare function of psS8 data. For use with psListSort for descending ordering. 157 157 * 158 * @return int an integer less than, equal to, or greater than zero if 159 * the first argument is considered to be respectively greater 160 * than, equal to, or less than the second. 158 * @return int an integer less than, equal to, or greater than zero if 159 * the first argument is considered to be respectively greater 160 * than, equal to, or less than the second. 161 161 */ 162 162 int psCompareDescendingS8Ptr( … … 167 167 /** Compare function of psS16 data. For use with psListSort for descending ordering. 168 168 * 169 * @return int an integer less than, equal to, or greater than zero if 170 * the first argument is considered to be respectively greater 171 * than, equal to, or less than the second. 169 * @return int an integer less than, equal to, or greater than zero if 170 * the first argument is considered to be respectively greater 171 * than, equal to, or less than the second. 172 172 */ 173 173 int psCompareDescendingS16Ptr( … … 178 178 /** Compare function of psS32 data. For use with psListSort for descending ordering. 179 179 * 180 * @return int an integer less than, equal to, or greater than zero if 181 * the first argument is considered to be respectively greater 182 * than, equal to, or less than the second. 180 * @return int an integer less than, equal to, or greater than zero if 181 * the first argument is considered to be respectively greater 182 * than, equal to, or less than the second. 183 183 */ 184 184 int psCompareDescendingS32Ptr( … … 189 189 /** Compare function of psS64 data. For use with psListSort for descending ordering. 190 190 * 191 * @return int an integer less than, equal to, or greater than zero if 192 * the first argument is considered to be respectively greater 193 * than, equal to, or less than the second. 191 * @return int an integer less than, equal to, or greater than zero if 192 * the first argument is considered to be respectively greater 193 * than, equal to, or less than the second. 194 194 */ 195 195 int psCompareDescendingS64Ptr( … … 200 200 /** Compare function of psU8 data. For use with psListSort for descending ordering. 201 201 * 202 * @return int an integer less than, equal to, or greater than zero if 203 * the first argument is considered to be respectively greater 204 * than, equal to, or less than the second. 202 * @return int an integer less than, equal to, or greater than zero if 203 * the first argument is considered to be respectively greater 204 * than, equal to, or less than the second. 205 205 */ 206 206 int psCompareDescendingU8Ptr( … … 211 211 /** Compare function of psU16 data. For use with psListSort for descending ordering. 212 212 * 213 * @return int an integer less than, equal to, or greater than zero if 214 * the first argument is considered to be respectively greater 215 * than, equal to, or less than the second. 213 * @return int an integer less than, equal to, or greater than zero if 214 * the first argument is considered to be respectively greater 215 * than, equal to, or less than the second. 216 216 */ 217 217 int psCompareDescendingU16Ptr( … … 222 222 /** Compare function of psU32 data. For use with psListSort for descending ordering. 223 223 * 224 * @return int an integer less than, equal to, or greater than zero if 225 * the first argument is considered to be respectively greater 226 * than, equal to, or lessg than the second. 224 * @return int an integer less than, equal to, or greater than zero if 225 * the first argument is considered to be respectively greater 226 * than, equal to, or lessg than the second. 227 227 */ 228 228 int psCompareDescendingU32Ptr( … … 233 233 /** Compare function of psU64 data. For use with psListSort for descending ordering. 234 234 * 235 * @return int an integer less than, equal to, or greater than zero if 236 * the first argument is considered to be respectively greater 237 * than, equal to, or lessg than the second. 235 * @return int an integer less than, equal to, or greater than zero if 236 * the first argument is considered to be respectively greater 237 * than, equal to, or lessg than the second. 238 238 */ 239 239 int psCompareDescendingU64Ptr( … … 244 244 /** Compare function of psF32 data. For use with psListSort for descending ordering. 245 245 * 246 * @return int an integer less than, equal to, or greater than zero if 247 * the first argument is considered to be respectively greater 248 * than, equal to, or lessg than the second. 246 * @return int an integer less than, equal to, or greater than zero if 247 * the first argument is considered to be respectively greater 248 * than, equal to, or lessg than the second. 249 249 */ 250 250 int psCompareDescendingF32Ptr( … … 255 255 /** Compare function of psF64 data. For use with psListSort for descending ordering. 256 256 * 257 * @return int an integer less than, equal to, or greater than zero if 258 * the first argument is considered to be respectively greater 259 * than, equal to, or lessg than the second. 257 * @return int an integer less than, equal to, or greater than zero if 258 * the first argument is considered to be respectively greater 259 * than, equal to, or lessg than the second. 260 260 */ 261 261 int psCompareDescendingF64Ptr( … … 266 266 /** Compare function of psS8 data. 267 267 * 268 * @return int an integer less than, equal to, or greater than zero if 269 * the first argument is considered to be respectively less 270 * than, equal to, or greater than the second. 268 * @return int an integer less than, equal to, or greater than zero if 269 * the first argument is considered to be respectively less 270 * than, equal to, or greater than the second. 271 271 */ 272 272 int psCompareS8( … … 278 278 /** Compare function of psS16 data. 279 279 * 280 * @return int an integer less than, equal to, or greater than zero if 281 * the first argument is considered to be respectively less 282 * than, equal to, or greater than the second. 280 * @return int an integer less than, equal to, or greater than zero if 281 * the first argument is considered to be respectively less 282 * than, equal to, or greater than the second. 283 283 */ 284 284 int psCompareS16( … … 290 290 /** Compare function of psS32 data. 291 291 * 292 * @return int an integer less than, equal to, or greater than zero if 293 * the first argument is considered to be respectively less 294 * than, equal to, or greater than the second. 292 * @return int an integer less than, equal to, or greater than zero if 293 * the first argument is considered to be respectively less 294 * than, equal to, or greater than the second. 295 295 */ 296 296 int psCompareS32( … … 302 302 /** Compare function of psS64 data. 303 303 * 304 * @return int an integer less than, equal to, or greater than zero if 305 * the first argument is considered to be respectively less 306 * than, equal to, or greater than the second. 304 * @return int an integer less than, equal to, or greater than zero if 305 * the first argument is considered to be respectively less 306 * than, equal to, or greater than the second. 307 307 */ 308 308 int psCompareS64( … … 314 314 /** Compare function of psU8 data. 315 315 * 316 * @return int an integer less than, equal to, or greater than zero if 317 * the first argument is considered to be respectively less 318 * than, equal to, or greater than the second. 316 * @return int an integer less than, equal to, or greater than zero if 317 * the first argument is considered to be respectively less 318 * than, equal to, or greater than the second. 319 319 */ 320 320 int psCompareU8( … … 326 326 /** Compare function of psU16 data. 327 327 * 328 * @return int an integer less than, equal to, or greater than zero if 329 * the first argument is considered to be respectively less 330 * than, equal to, or greater than the second. 328 * @return int an integer less than, equal to, or greater than zero if 329 * the first argument is considered to be respectively less 330 * than, equal to, or greater than the second. 331 331 */ 332 332 int psCompareU16( … … 338 338 /** Compare function of psU32 data. 339 339 * 340 * @return int an integer less than, equal to, or greater than zero if 341 * the first argument is considered to be respectively less 342 * than, equal to, or greater than the second. 340 * @return int an integer less than, equal to, or greater than zero if 341 * the first argument is considered to be respectively less 342 * than, equal to, or greater than the second. 343 343 */ 344 344 int psCompareU32( … … 350 350 /** Compare function of psU64 data. 351 351 * 352 * @return int an integer less than, equal to, or greater than zero if 353 * the first argument is considered to be respectively less 354 * than, equal to, or greater than the second. 352 * @return int an integer less than, equal to, or greater than zero if 353 * the first argument is considered to be respectively less 354 * than, equal to, or greater than the second. 355 355 */ 356 356 int psCompareU64( … … 362 362 /** Compare function of psF32 data. 363 363 * 364 * @return int an integer less than, equal to, or greater than zero if 365 * the first argument is considered to be respectively less 366 * than, equal to, or greater than the second. 364 * @return int an integer less than, equal to, or greater than zero if 365 * the first argument is considered to be respectively less 366 * than, equal to, or greater than the second. 367 367 */ 368 368 int psCompareF32( … … 374 374 /** Compare function of psF64 data. 375 375 * 376 * @return int an integer less than, equal to, or greater than zero if 377 * the first argument is considered to be respectively less 378 * than, equal to, or greater than the second. 376 * @return int an integer less than, equal to, or greater than zero if 377 * the first argument is considered to be respectively less 378 * than, equal to, or greater than the second. 379 379 */ 380 380 int psCompareF64( … … 386 386 /** Compare function of psS8 data. 387 387 * 388 * @return int an integer less than, equal to, or greater than zero if 389 * the first argument is considered to be respectively greater 390 * than, equal to, or less than the second. 388 * @return int an integer less than, equal to, or greater than zero if 389 * the first argument is considered to be respectively greater 390 * than, equal to, or less than the second. 391 391 */ 392 392 int psCompareDescendingS8( … … 398 398 /** Compare function of psS16 data. 399 399 * 400 * @return int an integer less than, equal to, or greater than zero if 401 * the first argument is considered to be respectively greater 402 * than, equal to, or less than the second. 400 * @return int an integer less than, equal to, or greater than zero if 401 * the first argument is considered to be respectively greater 402 * than, equal to, or less than the second. 403 403 */ 404 404 int psCompareDescendingS16( … … 410 410 /** Compare function of psS32 data. 411 411 * 412 * @return int an integer less than, equal to, or greater than zero if 413 * the first argument is considered to be respectively greater 414 * than, equal to, or less than the second. 412 * @return int an integer less than, equal to, or greater than zero if 413 * the first argument is considered to be respectively greater 414 * than, equal to, or less than the second. 415 415 */ 416 416 int psCompareDescendingS32( … … 422 422 /** Compare function of psS64 data. 423 423 * 424 * @return int an integer less than, equal to, or greater than zero if 425 * the first argument is considered to be respectively greater 426 * than, equal to, or less than the second. 424 * @return int an integer less than, equal to, or greater than zero if 425 * the first argument is considered to be respectively greater 426 * than, equal to, or less than the second. 427 427 */ 428 428 int psCompareDescendingS64( … … 434 434 /** Compare function of psU8 data. 435 435 * 436 * @return int an integer less than, equal to, or greater than zero if 437 * the first argument is considered to be respectively greater 438 * than, equal to, or less than the second. 436 * @return int an integer less than, equal to, or greater than zero if 437 * the first argument is considered to be respectively greater 438 * than, equal to, or less than the second. 439 439 */ 440 440 int psCompareDescendingU8( … … 446 446 /** Compare function of psU16 data. 447 447 * 448 * @return int an integer less than, equal to, or greater than zero if 449 * the first argument is considered to be respectively greater 450 * than, equal to, or less than the second. 448 * @return int an integer less than, equal to, or greater than zero if 449 * the first argument is considered to be respectively greater 450 * than, equal to, or less than the second. 451 451 */ 452 452 int psCompareDescendingU16( … … 458 458 /** Compare function of psU32 data. 459 459 * 460 * @return int an integer less than, equal to, or greater than zero if 461 * the first argument is considered to be respectively greater 462 * than, equal to, or less than the second. 460 * @return int an integer less than, equal to, or greater than zero if 461 * the first argument is considered to be respectively greater 462 * than, equal to, or less than the second. 463 463 */ 464 464 int psCompareDescendingU32( … … 470 470 /** Compare function of psU64 data. 471 471 * 472 * @return int an integer less than, equal to, or greater than zero if 473 * the first argument is considered to be respectively greater 474 * than, equal to, or less than the second. 472 * @return int an integer less than, equal to, or greater than zero if 473 * the first argument is considered to be respectively greater 474 * than, equal to, or less than the second. 475 475 */ 476 476 int psCompareDescendingU64( … … 482 482 /** Compare function of psF32 data. 483 483 * 484 * @return int an integer less than, equal to, or greater than zero if 485 * the first argument is considered to be respectively greater 486 * than, equal to, or less than the second. 484 * @return int an integer less than, equal to, or greater than zero if 485 * the first argument is considered to be respectively greater 486 * than, equal to, or less than the second. 487 487 */ 488 488 int psCompareDescendingF32( … … 494 494 /** Compare function of psF64 data. 495 495 * 496 * @return int an integer less than, equal to, or greater than zero if 497 * the first argument is considered to be respectively greater 498 * than, equal to, or less than the second. 496 * @return int an integer less than, equal to, or greater than zero if 497 * the first argument is considered to be respectively greater 498 * than, equal to, or less than the second. 499 499 */ 500 500 int psCompareDescendingF64( … … 506 506 /// @} 507 507 508 #endif 508 #endif // #ifndef PS_COMPARE_H -
trunk/psLib/src/collections/psHash.h
r4135 r4162 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-0 7 22:36:48$13 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 17 17 */ 18 #if !defined(PS_HASH_H) 18 19 #ifndef PS_HASH_H 19 20 #define PS_HASH_H 20 21 … … 83 84 /* \} */// End of DataGroup Functions 84 85 85 #endif 86 #endif // #ifndef PS_HASH_H -
trunk/psLib/src/collections/psList.h
r3409 r4162 1 #if !defined(PS_LIST_H)2 #define PS_LIST_H3 4 1 /** @file psList.h 5 2 * @brief Support for doubly linked lists … … 10 7 * @ingroup LinkedList 11 8 * 12 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 3-11 23:17:46$9 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 14 11 * 15 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 16 13 */ 14 15 #ifndef PS_LIST_H 16 #define PS_LIST_H 17 17 18 18 #include <pthread.h> // we need a mutex to make this stuff thread safe. … … 210 210 /** Sort a list via a comparison function. 211 211 * 212 * The comparison function must return an integer less than, equal to, or 213 * greater than zero if the first argument is considered to be respectively 214 * less than, equal to, or greater than the second. 215 * 216 * If two members compare as equal, their order in the sorted array is 212 * The comparison function must return an integer less than, equal to, or 213 * greater than zero if the first argument is considered to be respectively 214 * less than, equal to, or greater than the second. 215 * 216 * If two members compare as equal, their order in the sorted array is 217 217 * undefined. 218 218 * … … 226 226 /// @} End of DataGroup Functions 227 227 228 #endif 228 #endif // #ifndef PS_LIST_H 229 -
trunk/psLib/src/collections/psMetadata.h
r4130 r4162 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-0 7 19:59:39$13 * @version $Revision: 1.47 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 70 70 * 71 71 * Enumeration for the modification of the behaviour in psMetadataAddItem. 72 * 72 * 73 73 * @see psMetadataAddItem 74 74 */ … … 239 239 va_list list ///< Arguments for name formatting and metadata item data. 240 240 ); 241 #endif 241 #endif // #ifndef SWIG 242 242 243 243 /** Create a metadata collection. … … 294 294 va_list list ///< Arguments for name formatting and metadata item data. 295 295 ); 296 #endif 296 #endif // #ifndef SWIG 297 297 298 298 psBool psMetadataAddS32(psMetadata* md, psS32 location, const char* name, … … 479 479 /// @} 480 480 481 #endif 481 #endif // #ifndef PS_METADATA_H -
trunk/psLib/src/collections/psMetadataIO.h
r3945 r4162 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 5-16 19:43:53$12 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 94 94 /// @} 95 95 96 #endif 96 #endif // #ifndef PS_METADATAIO_H -
trunk/psLib/src/collections/psPixels.h
r3990 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-19 23:57:36$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 132 132 ); 133 133 134 #endif 134 #endif // #ifndef PS_PIXELS_H -
trunk/psLib/src/collections/psScalar.h
r3264 r4162 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 2-17 19:26:23$13 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 82 82 /// @} 83 83 84 #endif 84 #endif // #ifndef PS_SCALAR_H -
trunk/psLib/src/collections/psVector.h
r3786 r4162 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 4-29 02:25:09$13 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 176 176 /// @} 177 177 178 #endif 178 #endif // #ifndef PS_VECTOR_H -
trunk/psLib/src/dataIO/psFileUtilsErrors.h
r3684 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 4-08 17:58:57$9 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 23 * $2 The error text (rest of the line in psAstronomyErrors.dat) 24 24 * $n The order of the source line in psAstronomyErrors.dat (comments excluded) 25 * 25 * 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ … … 78 78 //~End 79 79 80 #endif 80 #endif // #ifndef PS_FILEUTIL_ERRORS_H -
trunk/psLib/src/dataIO/psFits.h
r4158 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-08 2 1:07:59$9 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 265 265 /// @} 266 266 267 #endif 267 #endif // #ifndef PS_FITS_H -
trunk/psLib/src/dataIO/psLookupTable.c
r4050 r4162 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-31 21:46:56$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 15 15 #include <string.h> 16 16 #include <ctype.h> 17 //#ifdef DARWIN18 #undef __STRICT_ANSI__19 //#endif20 17 #include <stdlib.h> 21 //#ifdef DARWIN22 #define __STRICT_ANSI__23 //#endif24 18 #include <math.h> 25 #include <stdlib.h>26 19 27 20 #include "psMemory.h" -
trunk/psLib/src/dataIO/psLookupTable.h
r4050 r4162 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-31 21:46:56$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 131 131 ); 132 132 133 #endif 133 #endif // #ifndef PS_LOOKUPTABLE_H -
trunk/psLib/src/dataManip/psBinaryOp.h
r3182 r4162 1 2 1 /** @file psBinaryOp.h 3 2 * … … 31 30 * @author Robert DeSonia, MHPCC 32 31 * 33 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $34 * @date $Date: 2005-0 2-10 02:36:41$32 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2005-06-08 23:40:45 $ 35 34 * 36 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 65 64 /// @} 66 65 67 #endif 66 #endif // #ifndef PSBINARY_OP_H -
trunk/psLib/src/dataManip/psConstants.h
r4108 r4162 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.7 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-06-0 4 00:49:48$8 * @version $Revision: 1.73 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-08 23:40:45 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 45 45 #define M_1_PI 0.3183098861837906715377675267450287 /* 1/pi */ 46 46 #define M_2_PI 0.6366197723675813430755350534900574 /* 2/pi */ 47 #endif 48 #define PS_PI 3.1415926535897932384626433832795029 /* pi */ 47 #endif // #ifndef M_PI 49 48 50 49 #define DEG_TO_RAD(DEGREES) ((DEGREES) * M_PI / 180.0) … … 699 698 *****************************************************************************/ 700 699 #define PS_MAX(A, B) \ 701 (((A) > (B)) ? (A) : (B)) \700 (((A) > (B)) ? (A) : (B)) 702 701 703 702 #define PS_MIN(A, B) \ 704 (((A) < (B)) ? (A) : (B)) \703 (((A) < (B)) ? (A) : (B)) 705 704 706 705 #define PS_SQR(A) \ 707 ((A) * (A)) \ 708 709 #ifdef DARWIN 710 #define PS_SQRT_F32(A) ((float) sqrt(A)) 711 #else 712 #define PS_SQRT_F32(A) (sqrtf(A)) 713 #endif 706 ((A) * (A)) -
trunk/psLib/src/dataManip/psDataManipErrors.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:23$9 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 69 69 //~End 70 70 71 #endif 71 #endif // #ifndef PS_DATAMANIP_ERRORS_H -
trunk/psLib/src/dataManip/psFunctions.c
r4029 r4162 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.10 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-25 20:26:55 $9 * @version $Revision: 1.105 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1024 1024 1025 1025 if (normal == true) { 1026 tmp = 1.0 / PS_SQRT_F32(2.0 * M_PI * (sigma * sigma));1026 tmp = 1.0 / sqrtf(2.0 * M_PI * (sigma * sigma)); 1027 1027 } 1028 1028 -
trunk/psLib/src/dataManip/psFunctions.h
r3598 r4162 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 3-31 23:01:46$14 * @version $Revision: 1.45 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 18 18 */ 19 19 20 #if !defined(PS_FUNCTIONS_H)20 #ifndef PS_FUNCTIONS_H 21 21 #define PS_FUNCTIONS_H 22 22 … … 34 34 35 35 /** Evaluate a non-normalized Gaussian with the given mean and sigma at the 36 * given coordianate. 37 * 38 * Note that this is not a Gaussian deviate. The evaluated Gaussian is: 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 36 * given coordianate. 37 * 38 * Note that this is not a Gaussian deviate. The evaluated Gaussian is: 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 40 40 * 41 41 * @return psF32 value on the gaussian curve given the input parameters … … 49 49 50 50 /** Produce a vector of random numbers from a Gaussian distribution with 51 * the specified mean and sigma 52 * 51 * the specified mean and sigma 52 * 53 53 * @return psVector* vector of random numbers 54 * 54 * 55 55 */ 56 56 psVector* p_psGaussianDev( … … 433 433 const psVector* y, 434 434 psF32 X); 435 #endif 436 437 /* \} */// End of MathGroup Functions438 439 #endif 440 435 #endif // #if 0 436 437 /** \} */ // End of MathGroup Functions 438 439 #endif // #ifndef PS_FUNCTIONS_H 440 -
trunk/psLib/src/dataManip/psMatrix.h
r3264 r4162 1 2 1 /** @file psMatrix.h 3 2 * … … 22 21 * @author Ross Harman, MHPCC 23 22 * 24 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $25 * @date $Date: 2005-0 2-17 19:26:23$23 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 24 * @date $Date: 2005-06-08 23:40:45 $ 26 25 * 27 26 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 164 163 /// @} 165 164 166 #endif 165 #endif // #ifndef PSMATRIX_H -
trunk/psLib/src/dataManip/psMinimize.h
r3855 r4162 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-05 22:23:29$10 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 15 15 */ 16 16 17 #if !defined(PS_MINIMIZE_H)17 #ifndef PS_MINIMIZE_H 18 18 #define PS_MINIMIZE_H 19 19 … … 53 53 /** Derive a polynomial fit. 54 54 * 55 * psVectorFitPolynomial1d returns the polynomial that best fits the 56 * observations. The input parameters are a polynomial that specifies the 57 * fit order, myPoly, which will be altered and returned with the best-fit 58 * coefficients; and the observations, x, y and yErr. The independent 59 * variable list, x may be NULL, in which case the vector index is used. 60 * The dependent variable error, yErr may be null, in which case the solution 61 * is determined in the assumption that all data errors are equal. This 55 * psVectorFitPolynomial1d returns the polynomial that best fits the 56 * observations. The input parameters are a polynomial that specifies the 57 * fit order, myPoly, which will be altered and returned with the best-fit 58 * coefficients; and the observations, x, y and yErr. The independent 59 * variable list, x may be NULL, in which case the vector index is used. 60 * The dependent variable error, yErr may be null, in which case the solution 61 * is determined in the assumption that all data errors are equal. This 62 62 * function must be valid only for types psF32, psF64. 63 63 * … … 142 142 /* \} */// End of MathGroup Functions 143 143 144 #endif 144 #endif // #ifndef PS_MINIMIZE_H 145 145 -
trunk/psLib/src/dataManip/psRandom.h
r3264 r4162 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 2-17 19:26:23$12 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 16 16 */ 17 17 18 #if !defined(PS_RANDOM_H)18 #ifndef PS_RANDOM_H 19 19 #define PS_RANDOM_H 20 20 … … 56 56 /* \} */// End of MathGroup Functions 57 57 58 #endif 59 58 #endif // #ifndef PS_RANDOM_H -
trunk/psLib/src/dataManip/psStats.c
r4138 r4162 14 14 * stats->binsize 15 15 * 16 * @version $Revision: 1.13 1$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-06-0 7 23:11:54$16 * @version $Revision: 1.132 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-08 23:40:45 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 878 878 } else { 879 879 countFloat = (psF32)countInt; 880 stats->sampleStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));880 stats->sampleStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1)); 881 881 } 882 882 } … … 992 992 // data ranges are used correctly. 993 993 if (errors != NULL) { 994 stats->sampleStdev = (1.0 / PS_SQRT_F32(errorDivisor));994 stats->sampleStdev = (1.0 / sqrtf(errorDivisor)); 995 995 } else { 996 996 countFloat = (psF32)countInt; 997 stats->sampleStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));997 stats->sampleStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1)); 998 998 999 999 } … … 1627 1627 } 1628 1628 } 1629 myStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));1629 myStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1)); 1630 1630 1631 1631 p_psNormalizeVectorRangeF32(robustHistogramVector, 0.0, 1.0); … … 1657 1657 "WARNING: failed fit a 1D polynomial.\n"); 1658 1658 } 1659 psF32 polyFitSigma = PS_SQRT_F32(-0.5 / tmpPoly->coeff[2]);1659 psF32 polyFitSigma = sqrtf(-0.5 / tmpPoly->coeff[2]); 1660 1660 psF32 polyFitMean = tmpPoly->coeff[1] * PS_SQR(polyFitSigma); 1661 1661 // psF32 polyFitNorm = exp(tmpPoly->coedd[0] + PS_SQR(polyFitMean) / (2.0 * PS_SQR(polyFitSigma))); -
trunk/psLib/src/dataManip/psStats.h
r4138 r4162 14 14 * @author GLG, MHPCC 15 15 * 16 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-06-0 7 23:11:54$16 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-08 23:40:45 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 20 20 */ 21 #if !defined(PS_STATS_H)21 #ifndef PS_STATS_H 22 22 #define PS_STATS_H 23 23 … … 112 112 /** The basic histogram structure which contains bounds and bins. 113 113 * 114 * In this structure, the vector bounds specifies the boundaries of the 115 * histogram bins, and must of type psF32, while nums specifies the number 116 * of entries in the bin, and must of type psU32. The value of bounds.n must 117 * therefore be 1 greater than than nums.n. The two values minNum and maxNum 118 * are the number of data values which fell below the lower limit bound or 114 * In this structure, the vector bounds specifies the boundaries of the 115 * histogram bins, and must of type psF32, while nums specifies the number 116 * of entries in the bin, and must of type psU32. The value of bounds.n must 117 * therefore be 1 greater than than nums.n. The two values minNum and maxNum 118 * are the number of data values which fell below the lower limit bound or 119 119 * above the upper limit bound, respectively. 120 120 */ … … 130 130 131 131 /** Allocator for psHistogram where the bounds of the bins are implicitly 132 * specified through simply specifying an upper and lower limit along with 133 * the size of the bins. 132 * specified through simply specifying an upper and lower limit along with 133 * the size of the bins. 134 134 * 135 135 * @return psHistogram* Newly allocated psHistogram … … 142 142 143 143 /** Allocator for psHistogram where the bounds of the bins are explicitly 144 * specified. 144 * specified. 145 145 * 146 146 * @return psHistogram* Newly allocated psHistogram … … 152 152 /** Calculate a histogram 153 153 * 154 * The following function populates the histogram bins from the specified 154 * The following function populates the histogram bins from the specified 155 155 * vector (in). It alters and returns the histogram out structure. The input 156 156 * vector may be of types psU8, psU16, psF32, psF64. … … 169 169 * 170 170 * @return psBool If more than one statistic result is set in stats->options, 171 * false is returned and the value parameter is not set, 171 * false is returned and the value parameter is not set, 172 172 * otherwise true is returned. 173 173 */ … … 193 193 /// @} 194 194 195 #endif 195 #endif // #ifndef PS_STATS_H -
trunk/psLib/src/dataManip/psUnaryOp.h
r3182 r4162 30 30 * @author Robert DeSonia, MHPCC 31 31 * 32 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $33 * @date $Date: 2005-0 2-10 02:36:41$32 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2005-06-08 23:40:45 $ 34 34 * 35 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 67 67 /// @} 68 68 69 #endif 69 #endif // #ifndef PSUNARY_OP_H -
trunk/psLib/src/dataManip/psVectorFFT.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:23$9 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 36 36 /** Forward and reverse FFT calculations. 37 37 * 38 * This takes as input the vector of interest (in) and the direction 38 * This takes as input the vector of interest (in) and the direction 39 39 * (direction), which is specified by an enumerated type psFftDirection. 40 * The input vector may be of type psF32 or psC32, the result is always 41 * psC32. If the input vector is psF32, the direction must be forward. 42 * 40 * The input vector may be of type psF32 or psC32, the result is always 41 * psC32. If the input vector is psF32, the direction must be forward. 42 * 43 43 * @return psVector* the FFT transformation result 44 44 */ … … 50 50 51 51 /** extract the real portion of a complex vector 52 * 52 * 53 53 * @return psVector* real portion of the input vector. 54 54 */ … … 59 59 60 60 /** extract the imaginary portion of a complex vector 61 * 61 * 62 62 * @return psVector* imaginary portion of the input vector. 63 63 */ … … 68 68 69 69 /** creates a complex vector from separate real and imaginary vectors 70 * 70 * 71 71 * @return psVector* resulting complex vector 72 72 */ … … 78 78 79 79 /** computes the complex conjugate of a vector 80 * 80 * 81 81 * @return psVector* the complex conjugate of the 'in' vector 82 82 */ … … 87 87 88 88 /** computes the power spectrum of a vector 89 * 89 * 90 90 * @return psVector* the power spectrum of the 'in' vector 91 91 */ … … 97 97 /// @} 98 98 99 #endif 99 #endif // #ifndef PS_VECTOR_FFT_H -
trunk/psLib/src/fft/psImageFFT.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:24$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 24 24 /** Forward and reverse FFT calculations. 25 25 * 26 * This takes as input the image of interest (in) and the direction 26 * This takes as input the image of interest (in) and the direction 27 27 * (direction), which is specified by an enumerated type psFftDirection. 28 * The input image may be of type psF32 or psC32, the result is always 29 * psC32. If the input vector is psF32, the direction must be forward. 30 * 28 * The input image may be of type psF32 or psC32, the result is always 29 * psC32. If the input vector is psF32, the direction must be forward. 30 * 31 31 * @return psImage* the FFT transformation result 32 32 */ … … 38 38 39 39 /** extract the real portion of a complex image 40 * 40 * 41 41 * @return psImage* real portion of the input image. 42 42 */ … … 47 47 48 48 /** extract the imaginary portion of a complex image 49 * 49 * 50 50 * @return psImage* imaginary portion of the input image. 51 51 */ … … 56 56 57 57 /** creates a complex image from separate real and imaginary plane images 58 * 58 * 59 59 * @return psImage* resulting complex image 60 60 */ … … 66 66 67 67 /** computes the complex conjugate of an image 68 * 68 * 69 69 * @return psImage* the complex conjugate of the 'in' image 70 70 */ … … 75 75 76 76 /** computes the power spectrum of an image 77 * 77 * 78 78 * @return psImage* the power spectrum of the 'in' image 79 79 */ … … 85 85 /// @} 86 86 87 #endif 87 #endif // #ifndef PS_IMAGE_FFT_H -
trunk/psLib/src/fft/psVectorFFT.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:23$9 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 36 36 /** Forward and reverse FFT calculations. 37 37 * 38 * This takes as input the vector of interest (in) and the direction 38 * This takes as input the vector of interest (in) and the direction 39 39 * (direction), which is specified by an enumerated type psFftDirection. 40 * The input vector may be of type psF32 or psC32, the result is always 41 * psC32. If the input vector is psF32, the direction must be forward. 42 * 40 * The input vector may be of type psF32 or psC32, the result is always 41 * psC32. If the input vector is psF32, the direction must be forward. 42 * 43 43 * @return psVector* the FFT transformation result 44 44 */ … … 50 50 51 51 /** extract the real portion of a complex vector 52 * 52 * 53 53 * @return psVector* real portion of the input vector. 54 54 */ … … 59 59 60 60 /** extract the imaginary portion of a complex vector 61 * 61 * 62 62 * @return psVector* imaginary portion of the input vector. 63 63 */ … … 68 68 69 69 /** creates a complex vector from separate real and imaginary vectors 70 * 70 * 71 71 * @return psVector* resulting complex vector 72 72 */ … … 78 78 79 79 /** computes the complex conjugate of a vector 80 * 80 * 81 81 * @return psVector* the complex conjugate of the 'in' vector 82 82 */ … … 87 87 88 88 /** computes the power spectrum of a vector 89 * 89 * 90 90 * @return psVector* the power spectrum of the 'in' vector 91 91 */ … … 97 97 /// @} 98 98 99 #endif 99 #endif // #ifndef PS_VECTOR_FFT_H -
trunk/psLib/src/fits/psFits.h
r4158 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-08 2 1:07:59$9 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 265 265 /// @} 266 266 267 #endif 267 #endif // #ifndef PS_FITS_H -
trunk/psLib/src/image/psImageConvolve.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:24$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 41 41 /** Allocates a convolution kernel of the given range 42 42 * 43 * In order to perform a convolution, we need to define the convolution 44 * kernel. We need a more general object than a psImage so that we can 45 * incorporate the offset from the (0, 0) pixel to the (0, 0) value of the 46 * kernel. It might be convenient to allow both positive and negative 47 * indices to convey the positive and negative shifts. One might consider 48 * setting the x0 and y0 members of a psImage to the appropriate offsets, 49 * but this is not the purpose of these members, and doing so may affect the 43 * In order to perform a convolution, we need to define the convolution 44 * kernel. We need a more general object than a psImage so that we can 45 * incorporate the offset from the (0, 0) pixel to the (0, 0) value of the 46 * kernel. It might be convenient to allow both positive and negative 47 * indices to convey the positive and negative shifts. One might consider 48 * setting the x0 and y0 members of a psImage to the appropriate offsets, 49 * but this is not the purpose of these members, and doing so may affect the 50 50 * behavior of other psImage operations. 51 51 * 52 * This construction allows the kernel member to use negative indices, while 52 * This construction allows the kernel member to use negative indices, while 53 53 * preserving the location of psMemBlocks relative to allocated memory. 54 54 * 55 * The maximum extent of the kernel shifts shall be defined by the xMin, 56 * xMax, yMin and yMax members. Note that xMin and yMin, under normal 57 * circumstances, should be negative numbers. That is, 58 * myKernel->kernel[-3][-2] may be defined if yMin and xMin are equal to or 55 * The maximum extent of the kernel shifts shall be defined by the xMin, 56 * xMax, yMin and yMax members. Note that xMin and yMin, under normal 57 * circumstances, should be negative numbers. That is, 58 * myKernel->kernel[-3][-2] may be defined if yMin and xMin are equal to or 59 59 * more negative than -3 and -2, respectively. 60 60 * 61 * In the event that one of the minimum values is greater than the 62 * corresponding maximum value, the function shall generate a warning, and 61 * In the event that one of the minimum values is greater than the 62 * corresponding maximum value, the function shall generate a warning, and 63 63 * the offending values shall be exchanged. 64 64 * … … 74 74 /** Generates a kernel given a list of shift values 75 75 * 76 * Given a list of values (e.g., shifts made in the course of OT guiding), 77 * psKernelGenerate shall return the appropriate kernel. The vectors xShifts 78 * and yShifts, which are a list of shifts relative to some starting point, 79 * will be supplied by the user. The elements of the vectors should be of an 80 * integer type; otherwise the values shall be truncated to integers. The 81 * output kernel shall be normalized such that the sum over the kernel is 82 * unity. 76 * Given a list of values (e.g., shifts made in the course of OT guiding), 77 * psKernelGenerate shall return the appropriate kernel. The vectors xShifts 78 * and yShifts, which are a list of shifts relative to some starting point, 79 * will be supplied by the user. The elements of the vectors should be of an 80 * integer type; otherwise the values shall be truncated to integers. The 81 * output kernel shall be normalized such that the sum over the kernel is 82 * unity. 83 83 * 84 * If the vectors are not of the same number of elements, then the function 85 * shall generate a warning shall be generated, following which, the longer 84 * If the vectors are not of the same number of elements, then the function 85 * shall generate a warning shall be generated, following which, the longer 86 86 * vector trimmed to the length of the shorter, and the function shall continue. 87 87 * … … 97 97 /** convolve an image with a kernel 98 98 * 99 * Given an input image and the convolution kernel, psImageConvolve shall 100 * convolve the input image, in, with the kernel, kernel and return the 99 * Given an input image and the convolution kernel, psImageConvolve shall 100 * convolve the input image, in, with the kernel, kernel and return the 101 101 * convolved image, out. 102 * 103 * Two methods shall be available for the convolution: if direct is true, 104 * then the convolution shall be performed in real space (appropriate for 105 * small kernels); otherwise, the convolution shall be performed using Fast 106 * Fourier Transforms (FFTs; appropriate for larger kernels). The latter 107 * option involves padding the input image, copying the kernel into an image 108 * of the same size as the padded input image, performing an FFT on each, 109 * multiplying the FFTs, and performing an inverse FFT before trimming the 102 * 103 * Two methods shall be available for the convolution: if direct is true, 104 * then the convolution shall be performed in real space (appropriate for 105 * small kernels); otherwise, the convolution shall be performed using Fast 106 * Fourier Transforms (FFTs; appropriate for larger kernels). The latter 107 * option involves padding the input image, copying the kernel into an image 108 * of the same size as the padded input image, performing an FFT on each, 109 * multiplying the FFTs, and performing an inverse FFT before trimming the 110 110 * image back to the original size. 111 111 * 112 * @return psImage* resulting image 112 * @return psImage* resulting image 113 113 */ 114 114 psImage* psImageConvolve( … … 119 119 ); 120 120 121 #endif 121 #endif // #ifndef PS_IMAGE_CONVOLVE_H -
trunk/psLib/src/image/psImageErrors.h
r3476 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 3-22 21:52:49$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 23 * $2 The error text (rest of the line in psImageErrors.dat) 24 24 * $n The order of the source line in psImageErrors.dat (comments excluded) 25 * 25 * 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ … … 99 99 //~End 100 100 101 #endif 101 #endif // #ifndef PS_IMAGE_ERRORS_H -
trunk/psLib/src/image/psImageFFT.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:24$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 24 24 /** Forward and reverse FFT calculations. 25 25 * 26 * This takes as input the image of interest (in) and the direction 26 * This takes as input the image of interest (in) and the direction 27 27 * (direction), which is specified by an enumerated type psFftDirection. 28 * The input image may be of type psF32 or psC32, the result is always 29 * psC32. If the input vector is psF32, the direction must be forward. 30 * 28 * The input image may be of type psF32 or psC32, the result is always 29 * psC32. If the input vector is psF32, the direction must be forward. 30 * 31 31 * @return psImage* the FFT transformation result 32 32 */ … … 38 38 39 39 /** extract the real portion of a complex image 40 * 40 * 41 41 * @return psImage* real portion of the input image. 42 42 */ … … 47 47 48 48 /** extract the imaginary portion of a complex image 49 * 49 * 50 50 * @return psImage* imaginary portion of the input image. 51 51 */ … … 56 56 57 57 /** creates a complex image from separate real and imaginary plane images 58 * 58 * 59 59 * @return psImage* resulting complex image 60 60 */ … … 66 66 67 67 /** computes the complex conjugate of an image 68 * 68 * 69 69 * @return psImage* the complex conjugate of the 'in' image 70 70 */ … … 75 75 76 76 /** computes the power spectrum of an image 77 * 77 * 78 78 * @return psImage* the power spectrum of the 'in' image 79 79 */ … … 85 85 /// @} 86 86 87 #endif 87 #endif // #ifndef PS_IMAGE_FFT_H -
trunk/psLib/src/image/psImageGeomManip.h
r3968 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 02:08:21$10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 155 155 ); 156 156 157 #endif 157 #endif // #ifndef PS_IMAGE_GEOM_MANIP_H -
trunk/psLib/src/image/psImagePixelExtract.h
r3968 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 02:08:21$10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 130 130 /// @} 131 131 132 #endif 132 #endif // #ifndef PSIMAGE_PIXEL_EXTRACT_H -
trunk/psLib/src/image/psImagePixelManip.h
r3968 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 02:08:21$10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 88 88 ); 89 89 90 #endif 90 #endif // #ifndef PS_IMAGE_PIXEL_MANIP_H -
trunk/psLib/src/image/psImageStats.h
r3493 r4162 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 3-24 19:39:53$11 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-08 23:40:45 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 15 15 */ 16 #if !defined(PS_IMAGE_STATS_H)16 #ifndef PS_IMAGE_STATS_H 17 17 #define PS_IMAGE_STATS_H 18 18 … … 28 28 /** This routine must determine the various statistics for the image. 29 29 * 30 * Determine statistics for image (or subimage). The statistics to be 31 * determined are specified by stats. The mask allows pixels to be excluded 32 * if their corresponding mask pixel value matches the value of maskVal. 33 * This function must be defined for the following types: psS8, psU16, psF32, 30 * Determine statistics for image (or subimage). The statistics to be 31 * determined are specified by stats. The mask allows pixels to be excluded 32 * if their corresponding mask pixel value matches the value of maskVal. 33 * This function must be defined for the following types: psS8, psU16, psF32, 34 34 * psF64. 35 35 * … … 45 45 /** Construct a histogram from an image (or subimage). 46 46 * 47 * The histogram to generate is specified by psHistogram hist (see section 48 * 4.3.2 in SDRS). This function must be defined for the following types: 47 * The histogram to generate is specified by psHistogram hist (see section 48 * 4.3.2 in SDRS). This function must be defined for the following types: 49 49 * psS8, psU16, psF32, psF64. 50 50 * … … 60 60 /** Fit a 2-D polynomial surface to an image. 61 61 * 62 * The input structure coeffs contains the desired order and terms of 63 * interest. This function must be defined for the following types: psS8, 62 * The input structure coeffs contains the desired order and terms of 63 * interest. This function must be defined for the following types: psS8, 64 64 * psU16, psF32, psF64. 65 65 * … … 74 74 /** Evaluate a 2-D polynomial surface for the image pixels. 75 75 * 76 * Given the input polynomial coefficients, set the image pixel values on the 77 * basis of the polynomial function. This function must be defined for the 76 * Given the input polynomial coefficients, set the image pixel values on the 77 * basis of the polynomial function. This function must be defined for the 78 78 * following types: psS8, psU16, psF32, psF64. 79 79 * … … 87 87 /// @} 88 88 89 #endif 89 #endif // #ifndef PS_IMAGE_STATS_H -
trunk/psLib/src/image/psImageStructManip.h
r3977 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 05:18:20$10 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 82 82 /// @} 83 83 84 #endif 84 #endif // #ifndef PSIMAGE_STRUCT_MANIP_H -
trunk/psLib/src/imageops/psImageConvolve.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:24$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 41 41 /** Allocates a convolution kernel of the given range 42 42 * 43 * In order to perform a convolution, we need to define the convolution 44 * kernel. We need a more general object than a psImage so that we can 45 * incorporate the offset from the (0, 0) pixel to the (0, 0) value of the 46 * kernel. It might be convenient to allow both positive and negative 47 * indices to convey the positive and negative shifts. One might consider 48 * setting the x0 and y0 members of a psImage to the appropriate offsets, 49 * but this is not the purpose of these members, and doing so may affect the 43 * In order to perform a convolution, we need to define the convolution 44 * kernel. We need a more general object than a psImage so that we can 45 * incorporate the offset from the (0, 0) pixel to the (0, 0) value of the 46 * kernel. It might be convenient to allow both positive and negative 47 * indices to convey the positive and negative shifts. One might consider 48 * setting the x0 and y0 members of a psImage to the appropriate offsets, 49 * but this is not the purpose of these members, and doing so may affect the 50 50 * behavior of other psImage operations. 51 51 * 52 * This construction allows the kernel member to use negative indices, while 52 * This construction allows the kernel member to use negative indices, while 53 53 * preserving the location of psMemBlocks relative to allocated memory. 54 54 * 55 * The maximum extent of the kernel shifts shall be defined by the xMin, 56 * xMax, yMin and yMax members. Note that xMin and yMin, under normal 57 * circumstances, should be negative numbers. That is, 58 * myKernel->kernel[-3][-2] may be defined if yMin and xMin are equal to or 55 * The maximum extent of the kernel shifts shall be defined by the xMin, 56 * xMax, yMin and yMax members. Note that xMin and yMin, under normal 57 * circumstances, should be negative numbers. That is, 58 * myKernel->kernel[-3][-2] may be defined if yMin and xMin are equal to or 59 59 * more negative than -3 and -2, respectively. 60 60 * 61 * In the event that one of the minimum values is greater than the 62 * corresponding maximum value, the function shall generate a warning, and 61 * In the event that one of the minimum values is greater than the 62 * corresponding maximum value, the function shall generate a warning, and 63 63 * the offending values shall be exchanged. 64 64 * … … 74 74 /** Generates a kernel given a list of shift values 75 75 * 76 * Given a list of values (e.g., shifts made in the course of OT guiding), 77 * psKernelGenerate shall return the appropriate kernel. The vectors xShifts 78 * and yShifts, which are a list of shifts relative to some starting point, 79 * will be supplied by the user. The elements of the vectors should be of an 80 * integer type; otherwise the values shall be truncated to integers. The 81 * output kernel shall be normalized such that the sum over the kernel is 82 * unity. 76 * Given a list of values (e.g., shifts made in the course of OT guiding), 77 * psKernelGenerate shall return the appropriate kernel. The vectors xShifts 78 * and yShifts, which are a list of shifts relative to some starting point, 79 * will be supplied by the user. The elements of the vectors should be of an 80 * integer type; otherwise the values shall be truncated to integers. The 81 * output kernel shall be normalized such that the sum over the kernel is 82 * unity. 83 83 * 84 * If the vectors are not of the same number of elements, then the function 85 * shall generate a warning shall be generated, following which, the longer 84 * If the vectors are not of the same number of elements, then the function 85 * shall generate a warning shall be generated, following which, the longer 86 86 * vector trimmed to the length of the shorter, and the function shall continue. 87 87 * … … 97 97 /** convolve an image with a kernel 98 98 * 99 * Given an input image and the convolution kernel, psImageConvolve shall 100 * convolve the input image, in, with the kernel, kernel and return the 99 * Given an input image and the convolution kernel, psImageConvolve shall 100 * convolve the input image, in, with the kernel, kernel and return the 101 101 * convolved image, out. 102 * 103 * Two methods shall be available for the convolution: if direct is true, 104 * then the convolution shall be performed in real space (appropriate for 105 * small kernels); otherwise, the convolution shall be performed using Fast 106 * Fourier Transforms (FFTs; appropriate for larger kernels). The latter 107 * option involves padding the input image, copying the kernel into an image 108 * of the same size as the padded input image, performing an FFT on each, 109 * multiplying the FFTs, and performing an inverse FFT before trimming the 102 * 103 * Two methods shall be available for the convolution: if direct is true, 104 * then the convolution shall be performed in real space (appropriate for 105 * small kernels); otherwise, the convolution shall be performed using Fast 106 * Fourier Transforms (FFTs; appropriate for larger kernels). The latter 107 * option involves padding the input image, copying the kernel into an image 108 * of the same size as the padded input image, performing an FFT on each, 109 * multiplying the FFTs, and performing an inverse FFT before trimming the 110 110 * image back to the original size. 111 111 * 112 * @return psImage* resulting image 112 * @return psImage* resulting image 113 113 */ 114 114 psImage* psImageConvolve( … … 119 119 ); 120 120 121 #endif 121 #endif // #ifndef PS_IMAGE_CONVOLVE_H -
trunk/psLib/src/imageops/psImageGeomManip.h
r3968 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 02:08:21$10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 155 155 ); 156 156 157 #endif 157 #endif // #ifndef PS_IMAGE_GEOM_MANIP_H -
trunk/psLib/src/imageops/psImagePixelExtract.h
r3968 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 02:08:21$10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 130 130 /// @} 131 131 132 #endif 132 #endif // #ifndef PSIMAGE_PIXEL_EXTRACT_H -
trunk/psLib/src/imageops/psImagePixelManip.h
r3968 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 02:08:21$10 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 88 88 ); 89 89 90 #endif 90 #endif // #ifndef PS_IMAGE_PIXEL_MANIP_H -
trunk/psLib/src/imageops/psImageStats.h
r3493 r4162 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 3-24 19:39:53$11 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-08 23:40:45 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 15 15 */ 16 #if !defined(PS_IMAGE_STATS_H)16 #ifndef PS_IMAGE_STATS_H 17 17 #define PS_IMAGE_STATS_H 18 18 … … 28 28 /** This routine must determine the various statistics for the image. 29 29 * 30 * Determine statistics for image (or subimage). The statistics to be 31 * determined are specified by stats. The mask allows pixels to be excluded 32 * if their corresponding mask pixel value matches the value of maskVal. 33 * This function must be defined for the following types: psS8, psU16, psF32, 30 * Determine statistics for image (or subimage). The statistics to be 31 * determined are specified by stats. The mask allows pixels to be excluded 32 * if their corresponding mask pixel value matches the value of maskVal. 33 * This function must be defined for the following types: psS8, psU16, psF32, 34 34 * psF64. 35 35 * … … 45 45 /** Construct a histogram from an image (or subimage). 46 46 * 47 * The histogram to generate is specified by psHistogram hist (see section 48 * 4.3.2 in SDRS). This function must be defined for the following types: 47 * The histogram to generate is specified by psHistogram hist (see section 48 * 4.3.2 in SDRS). This function must be defined for the following types: 49 49 * psS8, psU16, psF32, psF64. 50 50 * … … 60 60 /** Fit a 2-D polynomial surface to an image. 61 61 * 62 * The input structure coeffs contains the desired order and terms of 63 * interest. This function must be defined for the following types: psS8, 62 * The input structure coeffs contains the desired order and terms of 63 * interest. This function must be defined for the following types: psS8, 64 64 * psU16, psF32, psF64. 65 65 * … … 74 74 /** Evaluate a 2-D polynomial surface for the image pixels. 75 75 * 76 * Given the input polynomial coefficients, set the image pixel values on the 77 * basis of the polynomial function. This function must be defined for the 76 * Given the input polynomial coefficients, set the image pixel values on the 77 * basis of the polynomial function. This function must be defined for the 78 78 * following types: psS8, psU16, psF32, psF64. 79 79 * … … 87 87 /// @} 88 88 89 #endif 89 #endif // #ifndef PS_IMAGE_STATS_H -
trunk/psLib/src/imageops/psImageStructManip.h
r3977 r4162 8 8 * @author Robert DeSonia, MHPCC 9 9 * 10 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-19 05:18:20$10 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 82 82 /// @} 83 83 84 #endif 84 #endif // #ifndef PSIMAGE_STRUCT_MANIP_H -
trunk/psLib/src/math/psBinaryOp.h
r3182 r4162 1 2 1 /** @file psBinaryOp.h 3 2 * … … 31 30 * @author Robert DeSonia, MHPCC 32 31 * 33 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $34 * @date $Date: 2005-0 2-10 02:36:41$32 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2005-06-08 23:40:45 $ 35 34 * 36 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 65 64 /// @} 66 65 67 #endif 66 #endif // #ifndef PSBINARY_OP_H -
trunk/psLib/src/math/psCompare.h
r3264 r4162 6 6 * @ingroup Compare 7 7 * 8 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 2-17 19:26:23$8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-08 23:40:45 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 12 12 */ 13 13 14 #if !defined(PS_COMPARE_H)14 #ifndef PS_COMPARE_H 15 15 #define PS_COMPARE_H 16 16 … … 24 24 * e.g., for psList of pointers to numeric values. 25 25 * 26 * @return int an integer less than, equal to, or greater than zero if 27 * the first argument is considered to be respectively less 28 * than, equal to, or greater than the second. 26 * @return int an integer less than, equal to, or greater than zero if 27 * the first argument is considered to be respectively less 28 * than, equal to, or greater than the second. 29 29 */ 30 30 typedef int (*psComparePtrFcn) ( … … 35 35 /** A comparison function for sorting. 36 36 * 37 * @return int an integer less than, equal to, or greater than zero if 38 * the first argument is considered to be respectively less 39 * than, equal to, or greater than the second. 37 * @return int an integer less than, equal to, or greater than zero if 38 * the first argument is considered to be respectively less 39 * than, equal to, or greater than the second. 40 40 */ 41 41 typedef int (*psCompareFcn) ( … … 46 46 /** Compare function of psS8 data. For use with psListSort. 47 47 * 48 * @return int an integer less than, equal to, or greater than zero if 49 * the first argument is considered to be respectively less 50 * than, equal to, or greater than the second. 48 * @return int an integer less than, equal to, or greater than zero if 49 * the first argument is considered to be respectively less 50 * than, equal to, or greater than the second. 51 51 */ 52 52 int psCompareS8Ptr( … … 57 57 /** Compare function of psS16 data. For use with psListSort. 58 58 * 59 * @return int an integer less than, equal to, or greater than zero if 60 * the first argument is considered to be respectively less 61 * than, equal to, or greater than the second. 59 * @return int an integer less than, equal to, or greater than zero if 60 * the first argument is considered to be respectively less 61 * than, equal to, or greater than the second. 62 62 */ 63 63 int psCompareS16Ptr( … … 68 68 /** Compare function of psS32 data. For use with psListSort. 69 69 * 70 * @return int an integer less than, equal to, or greater than zero if 71 * the first argument is considered to be respectively less 72 * than, equal to, or greater than the second. 70 * @return int an integer less than, equal to, or greater than zero if 71 * the first argument is considered to be respectively less 72 * than, equal to, or greater than the second. 73 73 */ 74 74 int psCompareS32Ptr( … … 79 79 /** Compare function of psS64 data. For use with psListSort. 80 80 * 81 * @return int an integer less than, equal to, or greater than zero if 82 * the first argument is considered to be respectively less 83 * than, equal to, or greater than the second. 81 * @return int an integer less than, equal to, or greater than zero if 82 * the first argument is considered to be respectively less 83 * than, equal to, or greater than the second. 84 84 */ 85 85 int psCompareS64Ptr( … … 90 90 /** Compare function of psU8 data. For use with psListSort. 91 91 * 92 * @return int an integer less than, equal to, or greater than zero if 93 * the first argument is considered to be respectively less 94 * than, equal to, or greater than the second. 92 * @return int an integer less than, equal to, or greater than zero if 93 * the first argument is considered to be respectively less 94 * than, equal to, or greater than the second. 95 95 */ 96 96 int psCompareU8Ptr( … … 101 101 /** Compare function of psU16 data. For use with psListSort. 102 102 * 103 * @return int an integer less than, equal to, or greater than zero if 104 * the first argument is considered to be respectively less 105 * than, equal to, or greater than the second. 103 * @return int an integer less than, equal to, or greater than zero if 104 * the first argument is considered to be respectively less 105 * than, equal to, or greater than the second. 106 106 */ 107 107 int psCompareU16Ptr( … … 112 112 /** Compare function of psU32 data. For use with psListSort. 113 113 * 114 * @return int an integer less than, equal to, or greater than zero if 115 * the first argument is considered to be respectively less 116 * than, equal to, or greater than the second. 114 * @return int an integer less than, equal to, or greater than zero if 115 * the first argument is considered to be respectively less 116 * than, equal to, or greater than the second. 117 117 */ 118 118 int psCompareU32Ptr( … … 123 123 /** Compare function of psU64 data. For use with psListSort. 124 124 * 125 * @return int an integer less than, equal to, or greater than zero if 126 * the first argument is considered to be respectively less 127 * than, equal to, or greater than the second. 125 * @return int an integer less than, equal to, or greater than zero if 126 * the first argument is considered to be respectively less 127 * than, equal to, or greater than the second. 128 128 */ 129 129 int psCompareU64Ptr( … … 134 134 /** Compare function of psF32 data. For use with psListSort. 135 135 * 136 * @return int an integer less than, equal to, or greater than zero if 137 * the first argument is considered to be respectively less 138 * than, equal to, or greater than the second. 136 * @return int an integer less than, equal to, or greater than zero if 137 * the first argument is considered to be respectively less 138 * than, equal to, or greater than the second. 139 139 */ 140 140 int psCompareF32Ptr( … … 145 145 /** Compare function of psF64 data. For use with psListSort. 146 146 * 147 * @return int an integer less than, equal to, or greater than zero if 148 * the first argument is considered to be respectively less 149 * than, equal to, or greater than the second. 147 * @return int an integer less than, equal to, or greater than zero if 148 * the first argument is considered to be respectively less 149 * than, equal to, or greater than the second. 150 150 */ 151 151 int psCompareF64Ptr( … … 156 156 /** Compare function of psS8 data. For use with psListSort for descending ordering. 157 157 * 158 * @return int an integer less than, equal to, or greater than zero if 159 * the first argument is considered to be respectively greater 160 * than, equal to, or less than the second. 158 * @return int an integer less than, equal to, or greater than zero if 159 * the first argument is considered to be respectively greater 160 * than, equal to, or less than the second. 161 161 */ 162 162 int psCompareDescendingS8Ptr( … … 167 167 /** Compare function of psS16 data. For use with psListSort for descending ordering. 168 168 * 169 * @return int an integer less than, equal to, or greater than zero if 170 * the first argument is considered to be respectively greater 171 * than, equal to, or less than the second. 169 * @return int an integer less than, equal to, or greater than zero if 170 * the first argument is considered to be respectively greater 171 * than, equal to, or less than the second. 172 172 */ 173 173 int psCompareDescendingS16Ptr( … … 178 178 /** Compare function of psS32 data. For use with psListSort for descending ordering. 179 179 * 180 * @return int an integer less than, equal to, or greater than zero if 181 * the first argument is considered to be respectively greater 182 * than, equal to, or less than the second. 180 * @return int an integer less than, equal to, or greater than zero if 181 * the first argument is considered to be respectively greater 182 * than, equal to, or less than the second. 183 183 */ 184 184 int psCompareDescendingS32Ptr( … … 189 189 /** Compare function of psS64 data. For use with psListSort for descending ordering. 190 190 * 191 * @return int an integer less than, equal to, or greater than zero if 192 * the first argument is considered to be respectively greater 193 * than, equal to, or less than the second. 191 * @return int an integer less than, equal to, or greater than zero if 192 * the first argument is considered to be respectively greater 193 * than, equal to, or less than the second. 194 194 */ 195 195 int psCompareDescendingS64Ptr( … … 200 200 /** Compare function of psU8 data. For use with psListSort for descending ordering. 201 201 * 202 * @return int an integer less than, equal to, or greater than zero if 203 * the first argument is considered to be respectively greater 204 * than, equal to, or less than the second. 202 * @return int an integer less than, equal to, or greater than zero if 203 * the first argument is considered to be respectively greater 204 * than, equal to, or less than the second. 205 205 */ 206 206 int psCompareDescendingU8Ptr( … … 211 211 /** Compare function of psU16 data. For use with psListSort for descending ordering. 212 212 * 213 * @return int an integer less than, equal to, or greater than zero if 214 * the first argument is considered to be respectively greater 215 * than, equal to, or less than the second. 213 * @return int an integer less than, equal to, or greater than zero if 214 * the first argument is considered to be respectively greater 215 * than, equal to, or less than the second. 216 216 */ 217 217 int psCompareDescendingU16Ptr( … … 222 222 /** Compare function of psU32 data. For use with psListSort for descending ordering. 223 223 * 224 * @return int an integer less than, equal to, or greater than zero if 225 * the first argument is considered to be respectively greater 226 * than, equal to, or lessg than the second. 224 * @return int an integer less than, equal to, or greater than zero if 225 * the first argument is considered to be respectively greater 226 * than, equal to, or lessg than the second. 227 227 */ 228 228 int psCompareDescendingU32Ptr( … … 233 233 /** Compare function of psU64 data. For use with psListSort for descending ordering. 234 234 * 235 * @return int an integer less than, equal to, or greater than zero if 236 * the first argument is considered to be respectively greater 237 * than, equal to, or lessg than the second. 235 * @return int an integer less than, equal to, or greater than zero if 236 * the first argument is considered to be respectively greater 237 * than, equal to, or lessg than the second. 238 238 */ 239 239 int psCompareDescendingU64Ptr( … … 244 244 /** Compare function of psF32 data. For use with psListSort for descending ordering. 245 245 * 246 * @return int an integer less than, equal to, or greater than zero if 247 * the first argument is considered to be respectively greater 248 * than, equal to, or lessg than the second. 246 * @return int an integer less than, equal to, or greater than zero if 247 * the first argument is considered to be respectively greater 248 * than, equal to, or lessg than the second. 249 249 */ 250 250 int psCompareDescendingF32Ptr( … … 255 255 /** Compare function of psF64 data. For use with psListSort for descending ordering. 256 256 * 257 * @return int an integer less than, equal to, or greater than zero if 258 * the first argument is considered to be respectively greater 259 * than, equal to, or lessg than the second. 257 * @return int an integer less than, equal to, or greater than zero if 258 * the first argument is considered to be respectively greater 259 * than, equal to, or lessg than the second. 260 260 */ 261 261 int psCompareDescendingF64Ptr( … … 266 266 /** Compare function of psS8 data. 267 267 * 268 * @return int an integer less than, equal to, or greater than zero if 269 * the first argument is considered to be respectively less 270 * than, equal to, or greater than the second. 268 * @return int an integer less than, equal to, or greater than zero if 269 * the first argument is considered to be respectively less 270 * than, equal to, or greater than the second. 271 271 */ 272 272 int psCompareS8( … … 278 278 /** Compare function of psS16 data. 279 279 * 280 * @return int an integer less than, equal to, or greater than zero if 281 * the first argument is considered to be respectively less 282 * than, equal to, or greater than the second. 280 * @return int an integer less than, equal to, or greater than zero if 281 * the first argument is considered to be respectively less 282 * than, equal to, or greater than the second. 283 283 */ 284 284 int psCompareS16( … … 290 290 /** Compare function of psS32 data. 291 291 * 292 * @return int an integer less than, equal to, or greater than zero if 293 * the first argument is considered to be respectively less 294 * than, equal to, or greater than the second. 292 * @return int an integer less than, equal to, or greater than zero if 293 * the first argument is considered to be respectively less 294 * than, equal to, or greater than the second. 295 295 */ 296 296 int psCompareS32( … … 302 302 /** Compare function of psS64 data. 303 303 * 304 * @return int an integer less than, equal to, or greater than zero if 305 * the first argument is considered to be respectively less 306 * than, equal to, or greater than the second. 304 * @return int an integer less than, equal to, or greater than zero if 305 * the first argument is considered to be respectively less 306 * than, equal to, or greater than the second. 307 307 */ 308 308 int psCompareS64( … … 314 314 /** Compare function of psU8 data. 315 315 * 316 * @return int an integer less than, equal to, or greater than zero if 317 * the first argument is considered to be respectively less 318 * than, equal to, or greater than the second. 316 * @return int an integer less than, equal to, or greater than zero if 317 * the first argument is considered to be respectively less 318 * than, equal to, or greater than the second. 319 319 */ 320 320 int psCompareU8( … … 326 326 /** Compare function of psU16 data. 327 327 * 328 * @return int an integer less than, equal to, or greater than zero if 329 * the first argument is considered to be respectively less 330 * than, equal to, or greater than the second. 328 * @return int an integer less than, equal to, or greater than zero if 329 * the first argument is considered to be respectively less 330 * than, equal to, or greater than the second. 331 331 */ 332 332 int psCompareU16( … … 338 338 /** Compare function of psU32 data. 339 339 * 340 * @return int an integer less than, equal to, or greater than zero if 341 * the first argument is considered to be respectively less 342 * than, equal to, or greater than the second. 340 * @return int an integer less than, equal to, or greater than zero if 341 * the first argument is considered to be respectively less 342 * than, equal to, or greater than the second. 343 343 */ 344 344 int psCompareU32( … … 350 350 /** Compare function of psU64 data. 351 351 * 352 * @return int an integer less than, equal to, or greater than zero if 353 * the first argument is considered to be respectively less 354 * than, equal to, or greater than the second. 352 * @return int an integer less than, equal to, or greater than zero if 353 * the first argument is considered to be respectively less 354 * than, equal to, or greater than the second. 355 355 */ 356 356 int psCompareU64( … … 362 362 /** Compare function of psF32 data. 363 363 * 364 * @return int an integer less than, equal to, or greater than zero if 365 * the first argument is considered to be respectively less 366 * than, equal to, or greater than the second. 364 * @return int an integer less than, equal to, or greater than zero if 365 * the first argument is considered to be respectively less 366 * than, equal to, or greater than the second. 367 367 */ 368 368 int psCompareF32( … … 374 374 /** Compare function of psF64 data. 375 375 * 376 * @return int an integer less than, equal to, or greater than zero if 377 * the first argument is considered to be respectively less 378 * than, equal to, or greater than the second. 376 * @return int an integer less than, equal to, or greater than zero if 377 * the first argument is considered to be respectively less 378 * than, equal to, or greater than the second. 379 379 */ 380 380 int psCompareF64( … … 386 386 /** Compare function of psS8 data. 387 387 * 388 * @return int an integer less than, equal to, or greater than zero if 389 * the first argument is considered to be respectively greater 390 * than, equal to, or less than the second. 388 * @return int an integer less than, equal to, or greater than zero if 389 * the first argument is considered to be respectively greater 390 * than, equal to, or less than the second. 391 391 */ 392 392 int psCompareDescendingS8( … … 398 398 /** Compare function of psS16 data. 399 399 * 400 * @return int an integer less than, equal to, or greater than zero if 401 * the first argument is considered to be respectively greater 402 * than, equal to, or less than the second. 400 * @return int an integer less than, equal to, or greater than zero if 401 * the first argument is considered to be respectively greater 402 * than, equal to, or less than the second. 403 403 */ 404 404 int psCompareDescendingS16( … … 410 410 /** Compare function of psS32 data. 411 411 * 412 * @return int an integer less than, equal to, or greater than zero if 413 * the first argument is considered to be respectively greater 414 * than, equal to, or less than the second. 412 * @return int an integer less than, equal to, or greater than zero if 413 * the first argument is considered to be respectively greater 414 * than, equal to, or less than the second. 415 415 */ 416 416 int psCompareDescendingS32( … … 422 422 /** Compare function of psS64 data. 423 423 * 424 * @return int an integer less than, equal to, or greater than zero if 425 * the first argument is considered to be respectively greater 426 * than, equal to, or less than the second. 424 * @return int an integer less than, equal to, or greater than zero if 425 * the first argument is considered to be respectively greater 426 * than, equal to, or less than the second. 427 427 */ 428 428 int psCompareDescendingS64( … … 434 434 /** Compare function of psU8 data. 435 435 * 436 * @return int an integer less than, equal to, or greater than zero if 437 * the first argument is considered to be respectively greater 438 * than, equal to, or less than the second. 436 * @return int an integer less than, equal to, or greater than zero if 437 * the first argument is considered to be respectively greater 438 * than, equal to, or less than the second. 439 439 */ 440 440 int psCompareDescendingU8( … … 446 446 /** Compare function of psU16 data. 447 447 * 448 * @return int an integer less than, equal to, or greater than zero if 449 * the first argument is considered to be respectively greater 450 * than, equal to, or less than the second. 448 * @return int an integer less than, equal to, or greater than zero if 449 * the first argument is considered to be respectively greater 450 * than, equal to, or less than the second. 451 451 */ 452 452 int psCompareDescendingU16( … … 458 458 /** Compare function of psU32 data. 459 459 * 460 * @return int an integer less than, equal to, or greater than zero if 461 * the first argument is considered to be respectively greater 462 * than, equal to, or less than the second. 460 * @return int an integer less than, equal to, or greater than zero if 461 * the first argument is considered to be respectively greater 462 * than, equal to, or less than the second. 463 463 */ 464 464 int psCompareDescendingU32( … … 470 470 /** Compare function of psU64 data. 471 471 * 472 * @return int an integer less than, equal to, or greater than zero if 473 * the first argument is considered to be respectively greater 474 * than, equal to, or less than the second. 472 * @return int an integer less than, equal to, or greater than zero if 473 * the first argument is considered to be respectively greater 474 * than, equal to, or less than the second. 475 475 */ 476 476 int psCompareDescendingU64( … … 482 482 /** Compare function of psF32 data. 483 483 * 484 * @return int an integer less than, equal to, or greater than zero if 485 * the first argument is considered to be respectively greater 486 * than, equal to, or less than the second. 484 * @return int an integer less than, equal to, or greater than zero if 485 * the first argument is considered to be respectively greater 486 * than, equal to, or less than the second. 487 487 */ 488 488 int psCompareDescendingF32( … … 494 494 /** Compare function of psF64 data. 495 495 * 496 * @return int an integer less than, equal to, or greater than zero if 497 * the first argument is considered to be respectively greater 498 * than, equal to, or less than the second. 496 * @return int an integer less than, equal to, or greater than zero if 497 * the first argument is considered to be respectively greater 498 * than, equal to, or less than the second. 499 499 */ 500 500 int psCompareDescendingF64( … … 506 506 /// @} 507 507 508 #endif 508 #endif // #ifndef PS_COMPARE_H -
trunk/psLib/src/math/psConstants.h
r4108 r4162 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.7 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-06-0 4 00:49:48$8 * @version $Revision: 1.73 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-08 23:40:45 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 45 45 #define M_1_PI 0.3183098861837906715377675267450287 /* 1/pi */ 46 46 #define M_2_PI 0.6366197723675813430755350534900574 /* 2/pi */ 47 #endif 48 #define PS_PI 3.1415926535897932384626433832795029 /* pi */ 47 #endif // #ifndef M_PI 49 48 50 49 #define DEG_TO_RAD(DEGREES) ((DEGREES) * M_PI / 180.0) … … 699 698 *****************************************************************************/ 700 699 #define PS_MAX(A, B) \ 701 (((A) > (B)) ? (A) : (B)) \700 (((A) > (B)) ? (A) : (B)) 702 701 703 702 #define PS_MIN(A, B) \ 704 (((A) < (B)) ? (A) : (B)) \703 (((A) < (B)) ? (A) : (B)) 705 704 706 705 #define PS_SQR(A) \ 707 ((A) * (A)) \ 708 709 #ifdef DARWIN 710 #define PS_SQRT_F32(A) ((float) sqrt(A)) 711 #else 712 #define PS_SQRT_F32(A) (sqrtf(A)) 713 #endif 706 ((A) * (A)) -
trunk/psLib/src/math/psMatrix.h
r3264 r4162 1 2 1 /** @file psMatrix.h 3 2 * … … 22 21 * @author Ross Harman, MHPCC 23 22 * 24 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $25 * @date $Date: 2005-0 2-17 19:26:23$23 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 24 * @date $Date: 2005-06-08 23:40:45 $ 26 25 * 27 26 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 164 163 /// @} 165 164 166 #endif 165 #endif // #ifndef PSMATRIX_H -
trunk/psLib/src/math/psMinimize.h
r3855 r4162 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 5-05 22:23:29$10 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 15 15 */ 16 16 17 #if !defined(PS_MINIMIZE_H)17 #ifndef PS_MINIMIZE_H 18 18 #define PS_MINIMIZE_H 19 19 … … 53 53 /** Derive a polynomial fit. 54 54 * 55 * psVectorFitPolynomial1d returns the polynomial that best fits the 56 * observations. The input parameters are a polynomial that specifies the 57 * fit order, myPoly, which will be altered and returned with the best-fit 58 * coefficients; and the observations, x, y and yErr. The independent 59 * variable list, x may be NULL, in which case the vector index is used. 60 * The dependent variable error, yErr may be null, in which case the solution 61 * is determined in the assumption that all data errors are equal. This 55 * psVectorFitPolynomial1d returns the polynomial that best fits the 56 * observations. The input parameters are a polynomial that specifies the 57 * fit order, myPoly, which will be altered and returned with the best-fit 58 * coefficients; and the observations, x, y and yErr. The independent 59 * variable list, x may be NULL, in which case the vector index is used. 60 * The dependent variable error, yErr may be null, in which case the solution 61 * is determined in the assumption that all data errors are equal. This 62 62 * function must be valid only for types psF32, psF64. 63 63 * … … 142 142 /* \} */// End of MathGroup Functions 143 143 144 #endif 144 #endif // #ifndef PS_MINIMIZE_H 145 145 -
trunk/psLib/src/math/psPolynomial.c
r4029 r4162 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.10 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-25 20:26:55 $9 * @version $Revision: 1.105 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1024 1024 1025 1025 if (normal == true) { 1026 tmp = 1.0 / PS_SQRT_F32(2.0 * M_PI * (sigma * sigma));1026 tmp = 1.0 / sqrtf(2.0 * M_PI * (sigma * sigma)); 1027 1027 } 1028 1028 -
trunk/psLib/src/math/psPolynomial.h
r3598 r4162 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 3-31 23:01:46$14 * @version $Revision: 1.45 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 18 18 */ 19 19 20 #if !defined(PS_FUNCTIONS_H)20 #ifndef PS_FUNCTIONS_H 21 21 #define PS_FUNCTIONS_H 22 22 … … 34 34 35 35 /** Evaluate a non-normalized Gaussian with the given mean and sigma at the 36 * given coordianate. 37 * 38 * Note that this is not a Gaussian deviate. The evaluated Gaussian is: 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 36 * given coordianate. 37 * 38 * Note that this is not a Gaussian deviate. The evaluated Gaussian is: 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 40 40 * 41 41 * @return psF32 value on the gaussian curve given the input parameters … … 49 49 50 50 /** Produce a vector of random numbers from a Gaussian distribution with 51 * the specified mean and sigma 52 * 51 * the specified mean and sigma 52 * 53 53 * @return psVector* vector of random numbers 54 * 54 * 55 55 */ 56 56 psVector* p_psGaussianDev( … … 433 433 const psVector* y, 434 434 psF32 X); 435 #endif 436 437 /* \} */// End of MathGroup Functions438 439 #endif 440 435 #endif // #if 0 436 437 /** \} */ // End of MathGroup Functions 438 439 #endif // #ifndef PS_FUNCTIONS_H 440 -
trunk/psLib/src/math/psRandom.h
r3264 r4162 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 2-17 19:26:23$12 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 16 16 */ 17 17 18 #if !defined(PS_RANDOM_H)18 #ifndef PS_RANDOM_H 19 19 #define PS_RANDOM_H 20 20 … … 56 56 /* \} */// End of MathGroup Functions 57 57 58 #endif 59 58 #endif // #ifndef PS_RANDOM_H -
trunk/psLib/src/math/psSpline.c
r4029 r4162 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.10 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-25 20:26:55 $9 * @version $Revision: 1.105 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1024 1024 1025 1025 if (normal == true) { 1026 tmp = 1.0 / PS_SQRT_F32(2.0 * M_PI * (sigma * sigma));1026 tmp = 1.0 / sqrtf(2.0 * M_PI * (sigma * sigma)); 1027 1027 } 1028 1028 -
trunk/psLib/src/math/psSpline.h
r3598 r4162 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 3-31 23:01:46$14 * @version $Revision: 1.45 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 18 18 */ 19 19 20 #if !defined(PS_FUNCTIONS_H)20 #ifndef PS_FUNCTIONS_H 21 21 #define PS_FUNCTIONS_H 22 22 … … 34 34 35 35 /** Evaluate a non-normalized Gaussian with the given mean and sigma at the 36 * given coordianate. 37 * 38 * Note that this is not a Gaussian deviate. The evaluated Gaussian is: 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 36 * given coordianate. 37 * 38 * Note that this is not a Gaussian deviate. The evaluated Gaussian is: 39 * \f[ exp(-\frac{(x-mean)^2}{2\sigma^2}) \f] 40 40 * 41 41 * @return psF32 value on the gaussian curve given the input parameters … … 49 49 50 50 /** Produce a vector of random numbers from a Gaussian distribution with 51 * the specified mean and sigma 52 * 51 * the specified mean and sigma 52 * 53 53 * @return psVector* vector of random numbers 54 * 54 * 55 55 */ 56 56 psVector* p_psGaussianDev( … … 433 433 const psVector* y, 434 434 psF32 X); 435 #endif 436 437 /* \} */// End of MathGroup Functions438 439 #endif 440 435 #endif // #if 0 436 437 /** \} */ // End of MathGroup Functions 438 439 #endif // #ifndef PS_FUNCTIONS_H 440 -
trunk/psLib/src/math/psStats.c
r4138 r4162 14 14 * stats->binsize 15 15 * 16 * @version $Revision: 1.13 1$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-06-0 7 23:11:54$16 * @version $Revision: 1.132 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-08 23:40:45 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 878 878 } else { 879 879 countFloat = (psF32)countInt; 880 stats->sampleStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));880 stats->sampleStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1)); 881 881 } 882 882 } … … 992 992 // data ranges are used correctly. 993 993 if (errors != NULL) { 994 stats->sampleStdev = (1.0 / PS_SQRT_F32(errorDivisor));994 stats->sampleStdev = (1.0 / sqrtf(errorDivisor)); 995 995 } else { 996 996 countFloat = (psF32)countInt; 997 stats->sampleStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));997 stats->sampleStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1)); 998 998 999 999 } … … 1627 1627 } 1628 1628 } 1629 myStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));1629 myStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1)); 1630 1630 1631 1631 p_psNormalizeVectorRangeF32(robustHistogramVector, 0.0, 1.0); … … 1657 1657 "WARNING: failed fit a 1D polynomial.\n"); 1658 1658 } 1659 psF32 polyFitSigma = PS_SQRT_F32(-0.5 / tmpPoly->coeff[2]);1659 psF32 polyFitSigma = sqrtf(-0.5 / tmpPoly->coeff[2]); 1660 1660 psF32 polyFitMean = tmpPoly->coeff[1] * PS_SQR(polyFitSigma); 1661 1661 // psF32 polyFitNorm = exp(tmpPoly->coedd[0] + PS_SQR(polyFitMean) / (2.0 * PS_SQR(polyFitSigma))); -
trunk/psLib/src/math/psStats.h
r4138 r4162 14 14 * @author GLG, MHPCC 15 15 * 16 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-06-0 7 23:11:54$16 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-08 23:40:45 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 20 20 */ 21 #if !defined(PS_STATS_H)21 #ifndef PS_STATS_H 22 22 #define PS_STATS_H 23 23 … … 112 112 /** The basic histogram structure which contains bounds and bins. 113 113 * 114 * In this structure, the vector bounds specifies the boundaries of the 115 * histogram bins, and must of type psF32, while nums specifies the number 116 * of entries in the bin, and must of type psU32. The value of bounds.n must 117 * therefore be 1 greater than than nums.n. The two values minNum and maxNum 118 * are the number of data values which fell below the lower limit bound or 114 * In this structure, the vector bounds specifies the boundaries of the 115 * histogram bins, and must of type psF32, while nums specifies the number 116 * of entries in the bin, and must of type psU32. The value of bounds.n must 117 * therefore be 1 greater than than nums.n. The two values minNum and maxNum 118 * are the number of data values which fell below the lower limit bound or 119 119 * above the upper limit bound, respectively. 120 120 */ … … 130 130 131 131 /** Allocator for psHistogram where the bounds of the bins are implicitly 132 * specified through simply specifying an upper and lower limit along with 133 * the size of the bins. 132 * specified through simply specifying an upper and lower limit along with 133 * the size of the bins. 134 134 * 135 135 * @return psHistogram* Newly allocated psHistogram … … 142 142 143 143 /** Allocator for psHistogram where the bounds of the bins are explicitly 144 * specified. 144 * specified. 145 145 * 146 146 * @return psHistogram* Newly allocated psHistogram … … 152 152 /** Calculate a histogram 153 153 * 154 * The following function populates the histogram bins from the specified 154 * The following function populates the histogram bins from the specified 155 155 * vector (in). It alters and returns the histogram out structure. The input 156 156 * vector may be of types psU8, psU16, psF32, psF64. … … 169 169 * 170 170 * @return psBool If more than one statistic result is set in stats->options, 171 * false is returned and the value parameter is not set, 171 * false is returned and the value parameter is not set, 172 172 * otherwise true is returned. 173 173 */ … … 193 193 /// @} 194 194 195 #endif 195 #endif // #ifndef PS_STATS_H -
trunk/psLib/src/math/psUnaryOp.h
r3182 r4162 30 30 * @author Robert DeSonia, MHPCC 31 31 * 32 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $33 * @date $Date: 2005-0 2-10 02:36:41$32 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2005-06-08 23:40:45 $ 34 34 * 35 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 67 67 /// @} 68 68 69 #endif 69 #endif // #ifndef PSUNARY_OP_H -
trunk/psLib/src/mathtypes/psScalar.h
r3264 r4162 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 2-17 19:26:23$13 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 82 82 /// @} 83 83 84 #endif 84 #endif // #ifndef PS_SCALAR_H -
trunk/psLib/src/mathtypes/psVector.h
r3786 r4162 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 4-29 02:25:09$13 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 176 176 /// @} 177 177 178 #endif 178 #endif // #ifndef PS_VECTOR_H -
trunk/psLib/src/psTest.h
r3598 r4162 5 5 * @author Robert DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-0 3-31 23:01:46$7 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-06-08 23:40:45 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 93 93 ); 94 94 95 #endif 95 #endif // #ifndef PSTEST_H -
trunk/psLib/src/pslib.h
r3682 r4162 8 8 * @author Eric Van Alst, MHPCC 9 9 * 10 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 4-07 20:27:41$10 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 19 19 #include "pslib_strict.h" 20 20 21 #endif 21 #endif // #ifndef PS_LIB_H -
trunk/psLib/src/pslib_strict.h
r4128 r4162 9 9 * @author Eric Van Alst, MHPCC 10 10 * 11 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-06-0 7 02:29:44$11 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-08 23:40:45 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 21 21 #ifndef PS_ALLOW_MALLOC 22 22 #define PS_ALLOW_MALLOC 23 #endif 23 #endif // #ifndef PS_ALLOW_MALLOC 24 24 #else 25 25 #undef PS_ALLOW_MALLOC /* don't allow code to not poison malloc, i.e., strict poisioning */ 26 #endif 26 #endif // #else 27 27 28 28 // // System Utilities … … 183 183 /// @} 184 184 185 #endif 185 #endif // #ifndef PS_LIB_STRICT_H -
trunk/psLib/src/sys/psAbort.h
r3264 r4162 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:24$14 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 /** Reports an abort message to logging facility 30 30 * 31 * This function will invoke the psLogMsg function with a level of 31 * This function will invoke the psLogMsg function with a level of 32 32 * PS_LOG_ABORT and pass the parameters name and fmt to generate a proper 33 * log message. After logging, this function will call system abort 33 * log message. After logging, this function will call system abort 34 34 * function to abnormally terminate the program. 35 35 * … … 43 43 ); 44 44 45 /* @} */// Doxygen - End of SystemGroup Functions45 /** @} */ // Doxygen - End of SystemGroup Functions 46 46 47 #endif 47 #endif // #ifndef PS_ABORT_H -
trunk/psLib/src/sys/psConfigure.h
r4137 r4162 13 13 * @author Robert DeSonia, MHPCC 14 14 * 15 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-06-0 7 22:53:40$15 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-08 23:40:45 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 38 38 /** Initializes persistent memory. 39 39 * 40 * Creates persistant memory items used throughout psLib. Items created 40 * Creates persistant memory items used throughout psLib. Items created 41 41 * within this method should be freed with the psLibFinalize function. 42 42 * current, a non-NULL psErr is returned with code PS_ERR_NONE. … … 61 61 62 62 63 /* @} */63 /** @} */ 64 64 65 #endif 65 #endif // #ifndef PS_CONFIGURE_H -
trunk/psLib/src/sys/psError.h
r3476 r4162 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 3-22 21:52:49$14 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 104 104 va_list va ///< any parameters required in fmt 105 105 ); 106 #endif 106 #endif // #ifndef SWIG 107 107 108 108 #ifdef DOXYGEN … … 135 135 ... 136 136 ); 137 #else 137 #else // #ifdef DOXYGEN 138 138 psErrorCode p_psError( 139 139 const char* file, … … 157 157 #define psError(code,new,...) p_psError(__FILE__,__LINE__,__func__,code,new,__VA_ARGS__) 158 158 #define psWarning(...) p_psWarning(__FILE__,__LINE__,__func__,__VA_ARGS__) 159 #endif 159 #endif // #ifndef SWIG 160 160 161 #endif 161 #endif // ! DOXYGEN 162 162 163 163 /** Create a new psErr struct -
trunk/psLib/src/sys/psErrorCodes.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:24$9 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 25 25 * $2 The error description (rest of the line in psErrorCodes.dat) 26 26 * $n The order of the source line in psErrorCodes.dat (comments excluded) 27 * 27 * 28 28 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 29 29 */ … … 78 78 /** Retrieves the description of an error code. 79 79 * 80 * The routine psErrorCodeString returns the string associated with an error 80 * The routine psErrorCodeString returns the string associated with an error 81 81 * code. 82 82 * … … 90 90 * 91 91 * Any project needed to use psLib must define the necessary error codes and 92 * associated message strings. This function registers an array of error 92 * associated message strings. This function registers an array of error 93 93 * codes with the error handling subsystem. 94 94 * … … 109 109 /// @} 110 110 111 #endif 111 #endif // #ifndef PS_ERROR_CODES_H -
trunk/psLib/src/sys/psLogMsg.c
r3476 r4162 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 39$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 3-22 21:52:49$13 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 227 227 } 228 228 229 #if !defined(HOST_NAME_MAX)// should be in limits.h229 #ifndef HOST_NAME_MAX // should be in limits.h 230 230 #define HOST_NAME_MAX 256 231 #endif 231 #endif // #ifndef HOST_NAME_MAX 232 232 233 233 /***************************************************************************** -
trunk/psLib/src/sys/psLogMsg.h
r3476 r4162 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 3-22 21:52:49$13 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 17 17 */ 18 #if !defined(PS_LOG_MSG_H)18 #ifndef PS_LOG_MSG_H 19 19 #define PS_LOG_MSG_H 20 20 #include <stdarg.h> … … 85 85 va_list ap ///< varargs argument list 86 86 ); 87 #endif 87 #endif // #ifndef SWIG 88 88 89 89 ///< Status codes for log messages … … 104 104 /// @} 105 105 106 #endif 106 #endif // #ifndef PS_LOG_MSG_H -
trunk/psLib/src/sys/psMemory.c
r3784 r4162 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.5 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 4-29 00:39:22$10 * @version $Revision: 1.52 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 50 50 #ifdef PS_MEM_DEBUG 51 51 static psMemBlock* deadBlockList; // a place to put dead memBlocks in debug mode. 52 #endif 52 #endif // #ifdef PS_MEM_DEBUG 53 53 54 54 /** … … 626 626 } 627 627 deadBlockList = ptr; 628 #else 628 #else // #ifdef PS_MEM_DEBUG 629 629 630 630 pthread_mutex_destroy(&ptr->refCounterMutex); 631 631 free(ptr); 632 #endif 632 #endif // #else - #ifdef PS_MEM_DEBUG 633 633 634 634 } -
trunk/psLib/src/sys/psMemory.h
r3682 r4162 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 4-07 20:27:41$14 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 18 18 */ 19 19 20 #if !defined(PS_MEMORY_H)20 #ifndef PS_MEMORY_H 21 21 #define PS_MEMORY_H 22 22 … … 125 125 * 126 126 * @return psPtr pointer to the allocated buffer. This will not be NULL. 127 * @see psFree 127 * @see psFree 128 128 */ 129 129 #ifdef DOXYGEN 130 130 psPtr psAlloc(size_t size ///< Size required 131 131 ); 132 #else 132 #else // #ifdef DOXYGEN 133 133 psPtr p_psAlloc(size_t size, ///< Size required 134 134 const char *file, ///< File of call … … 139 139 #ifndef SWIG 140 140 #define psAlloc(size) p_psAlloc(size, __FILE__, __LINE__) 141 #endif 142 143 #endif 141 #endif // ! SWIG 142 143 #endif // ! DOXYGEN 144 144 145 145 /** Set the deallocator routine 146 146 * 147 * A deallocator routine can optionally be assigned to a memory block to 147 * A deallocator routine can optionally be assigned to a memory block to 148 148 * ensure that associated memory blocks also get freed, e.g., memory buffers 149 149 * referenced within a struct. … … 157 157 /** Get the deallocator routine 158 158 * 159 * This function returns the deallocator for a memory block. A deallocator 160 * routine can optionally be assigned to a memory block to ensure that 161 * associated memory blocks also get freed, e.g., memory buffers referenced 162 * within a struct. 159 * This function returns the deallocator for a memory block. A deallocator 160 * routine can optionally be assigned to a memory block to ensure that 161 * associated memory blocks also get freed, e.g., memory buffers referenced 162 * within a struct. 163 163 * 164 164 * @return psFreeFcn the routine to be called at deallocation. … … 170 170 /** Set the memory as persistent so that it is ignored when detecting memory leaks. 171 171 * 172 * Used to mark a memory block as persistent data within the library, 172 * Used to mark a memory block as persistent data within the library, 173 173 * i.e., non user-level data used to hold psLib's state or cache data. Such 174 174 * examples of this class of memory is psTrace's trace-levels and dynamic … … 185 185 /** Get the memory's persistent flag. 186 186 * 187 * Checks if a memory block has been marked as persistent by 187 * Checks if a memory block has been marked as persistent by 188 188 * p_psMemSetPresistent. 189 189 * … … 207 207 size_t size ///< Size required 208 208 ); 209 #else 209 #else // #ifdef DOXYGEN 210 210 psPtr p_psRealloc( 211 211 psPtr ptr, ///< Pointer to re-allocate … … 218 218 #ifndef SWIG 219 219 #define psRealloc(ptr, size) p_psRealloc(ptr, size, __FILE__, __LINE__) 220 #endif 221 222 #endif 220 #endif // ! SWIG 221 222 #endif // ! DOXYGEN 223 223 224 224 /** Free memory. This operates much like free(). … … 230 230 psPtr ptr ///< Pointer to free, if NULL, function returns immediately. 231 231 ); 232 #else 232 #else // #ifdef DOXYGEN 233 233 void p_psFree( 234 234 psPtr ptr, ///< Pointer to free … … 240 240 #ifndef SWIG 241 241 #define psFree(ptr) p_psFree(ptr, __FILE__, __LINE__) 242 #endif 243 244 #endif 242 #endif // ! SWIG 243 244 #endif // ! DOXYGEN 245 245 246 246 /** Check for memory leaks. This scans for allocated memory buffers not freed with an ID not less than id0. … … 299 299 #ifndef SWIG 300 300 #define psMemIncrRefCounter(vptr) p_psMemIncrRefCounter(vptr, __FILE__, __LINE__) 301 #endif 302 303 #endif 301 #endif // !SWIG 302 303 #endif // !DOXYGEN 304 304 305 305 /** Decrement reference counter and return the pointer … … 307 307 * @ingroup memRefCount 308 308 * 309 * @return psPtr the pointer deremented in refCount, or NULL if pointer is 309 * @return psPtr the pointer deremented in refCount, or NULL if pointer is 310 310 * fully dereferenced. 311 311 */ … … 314 314 psPtr vptr ///< Pointer to decrement refCounter, and return 315 315 ); 316 #else 316 #else // DOXYGEN 317 317 psPtr p_psMemDecrRefCounter( 318 318 psPtr vptr, ///< Pointer to decrement refCounter, and return … … 323 323 #ifndef SWIG 324 324 #define psMemDecrRefCounter(vptr) p_psMemDecrRefCounter(vptr, __FILE__, __LINE__) 325 #endif 326 327 #endif 325 #endif // !SWIG 326 327 #endif // !DOXYGEN 328 328 329 329 /** Set callback for problems. 330 330 * 331 * At various occasions, the memory manager can check the state of the memory 331 * At various occasions, the memory manager can check the state of the memory 332 332 * stack. If any of these checks discover that the memory stack is corrupted, 333 333 * the psMemProblemCallback is called. … … 343 343 /** Set callback for out-of-memory. 344 344 * 345 * If not enough memory is available to satisfy a request by psAlloc or 346 * psRealloc, these functions attempt to find an alternative solution by 347 * calling the psMemExhaustedCallback, a function which may be set by the 348 * programmer in appropriate circumstances, rather than immediately fail. 349 * The typical use of such a feature may be when a program needs a large 350 * chunk of memory to do an operation, but the exact size is not critical. 351 * This feature gives the programmer the opportunity to make a smaller 345 * If not enough memory is available to satisfy a request by psAlloc or 346 * psRealloc, these functions attempt to find an alternative solution by 347 * calling the psMemExhaustedCallback, a function which may be set by the 348 * programmer in appropriate circumstances, rather than immediately fail. 349 * The typical use of such a feature may be when a program needs a large 350 * chunk of memory to do an operation, but the exact size is not critical. 351 * This feature gives the programmer the opportunity to make a smaller 352 352 * request and try again, limiting the size of the operating buffer. 353 353 * … … 362 362 /** Set call back for when a particular memory block is allocated 363 363 * 364 * A private variable, p_psMemAllocateID, can be used to trace the allocation 365 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 366 * memory block with that ID is allocated, psMemAllocateCallback is called 364 * A private variable, p_psMemAllocateID, can be used to trace the allocation 365 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 366 * memory block with that ID is allocated, psMemAllocateCallback is called 367 367 * just before memory is returned to the calling function. 368 368 * … … 377 377 /** Set call back for when a particular memory block is freed 378 378 * 379 * A private variable, p_psMemFreeID, can be used to trace the freeing of 380 * specific memory blocks. If p_psMemFreeID is set and the memory block with 379 * A private variable, p_psMemFreeID, can be used to trace the freeing of 380 * specific memory blocks. If p_psMemFreeID is set and the memory block with 381 381 * the ID is about to be freed, the psMemFreeCallback callback is called just 382 382 * before the memory block is freed. … … 400 400 /** set p_psMemAllocateID to specific id 401 401 * 402 * A private variable, p_psMemAllocateID, can be used to trace the allocation 403 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 404 * memory block with that ID is allocated, psMemAllocateCallback is called 402 * A private variable, p_psMemAllocateID, can be used to trace the allocation 403 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 404 * memory block with that ID is allocated, psMemAllocateCallback is called 405 405 * just before memory is returned to the calling function. 406 406 * 407 407 * @ingroup memCallback 408 408 * 409 * @return psMemoryId 410 * 411 * @see psMemAllocateCallbackSet 409 * @return psMemoryId 410 * 411 * @see psMemAllocateCallbackSet 412 412 */ 413 413 psMemoryId psMemAllocateCallbackSetID( … … 417 417 /** set p_psMemFreeID to id 418 418 * 419 * A private variable, p_psMemFreeID, can be used to trace the freeing of 420 * specific memory blocks. If p_psMemFreeID is set and the memory block with 419 * A private variable, p_psMemFreeID, can be used to trace the freeing of 420 * specific memory blocks. If p_psMemFreeID is set and the memory block with 421 421 * the ID is about to be freed, the psMemFreeCallback callback is called just 422 422 * before the memory block is freed. … … 442 442 #ifdef __GNUC__ 443 443 #pragma GCC poison malloc realloc calloc free 444 #else 444 #else // __GNUC__ 445 445 #define malloc(S) _Pragma("error Use of malloc is not allowed. Use psAlloc instead.") 446 446 #define realloc(P,S) _Pragma("error Use of realloc is not allowed. Use psRealloc instead.") 447 447 #define calloc(S) _Pragma("error Use of calloc is not allowed. Use psAlloc instead.") 448 448 #define free(P) _Pragma("error Use of free is not allowed. Use psFree instead.") 449 #endif 450 #endif 451 452 #endif 453 // doxygen skip 454 455 #endif // end of header file 449 #endif // ! __GNUC__ 450 #endif // #ifndef PS_ALLOW_MALLOC 451 452 #endif // #ifndef DOXYGEN 453 454 #endif // #ifndef PS_MEMORY_H -
trunk/psLib/src/sys/psString.h
r3998 r4162 13 13 * @author Eric Van Alst, MHPCC 14 14 * 15 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-0 5-20 01:41:57$15 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-08 23:40:45 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 99 99 ); 100 100 101 /* @} */// Doxygen - End of SystemGroup Functions101 /** @} */// Doxygen - End of SystemGroup Functions 102 102 103 #endif 103 #endif // #ifndef PS_STRING_H -
trunk/psLib/src/sys/psTrace.c
r3850 r4162 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.4 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 5-05 21:24:50$11 * @version $Revision: 1.49 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-08 23:40:45 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 555 555 } 556 556 557 #endif 557 #endif // #ifndef PS_NO_TRACE -
trunk/psLib/src/sys/psType.h
r3671 r4162 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 4-06 01:12:58$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 62 62 } 63 63 psC64; 64 #else 64 #else // SWIG 65 65 typedef float _Complex psC32; ///< complex with 32-bit floating point Real and Imagary numbers 66 66 typedef double _Complex psC64; ///< complex with 64-bit floating point Real and Imagary numbers 67 #endif 67 #endif // !SWIG 68 68 69 69 typedef void* psPtr; ///< void pointer … … 243 243 /// @} 244 244 245 #endif 245 #endif // #ifndef PS_TYPE_H -
trunk/psLib/src/sysUtils/psAbort.h
r3264 r4162 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:24$14 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 29 29 /** Reports an abort message to logging facility 30 30 * 31 * This function will invoke the psLogMsg function with a level of 31 * This function will invoke the psLogMsg function with a level of 32 32 * PS_LOG_ABORT and pass the parameters name and fmt to generate a proper 33 * log message. After logging, this function will call system abort 33 * log message. After logging, this function will call system abort 34 34 * function to abnormally terminate the program. 35 35 * … … 43 43 ); 44 44 45 /* @} */// Doxygen - End of SystemGroup Functions45 /** @} */ // Doxygen - End of SystemGroup Functions 46 46 47 #endif 47 #endif // #ifndef PS_ABORT_H -
trunk/psLib/src/sysUtils/psConfigure.h
r4137 r4162 13 13 * @author Robert DeSonia, MHPCC 14 14 * 15 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-06-0 7 22:53:40$15 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-08 23:40:45 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 38 38 /** Initializes persistent memory. 39 39 * 40 * Creates persistant memory items used throughout psLib. Items created 40 * Creates persistant memory items used throughout psLib. Items created 41 41 * within this method should be freed with the psLibFinalize function. 42 42 * current, a non-NULL psErr is returned with code PS_ERR_NONE. … … 61 61 62 62 63 /* @} */63 /** @} */ 64 64 65 #endif 65 #endif // #ifndef PS_CONFIGURE_H -
trunk/psLib/src/sysUtils/psError.h
r3476 r4162 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 3-22 21:52:49$14 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 104 104 va_list va ///< any parameters required in fmt 105 105 ); 106 #endif 106 #endif // #ifndef SWIG 107 107 108 108 #ifdef DOXYGEN … … 135 135 ... 136 136 ); 137 #else 137 #else // #ifdef DOXYGEN 138 138 psErrorCode p_psError( 139 139 const char* file, … … 157 157 #define psError(code,new,...) p_psError(__FILE__,__LINE__,__func__,code,new,__VA_ARGS__) 158 158 #define psWarning(...) p_psWarning(__FILE__,__LINE__,__func__,__VA_ARGS__) 159 #endif 159 #endif // #ifndef SWIG 160 160 161 #endif 161 #endif // ! DOXYGEN 162 162 163 163 /** Create a new psErr struct -
trunk/psLib/src/sysUtils/psErrorCodes.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:24$9 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 25 25 * $2 The error description (rest of the line in psErrorCodes.dat) 26 26 * $n The order of the source line in psErrorCodes.dat (comments excluded) 27 * 27 * 28 28 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 29 29 */ … … 78 78 /** Retrieves the description of an error code. 79 79 * 80 * The routine psErrorCodeString returns the string associated with an error 80 * The routine psErrorCodeString returns the string associated with an error 81 81 * code. 82 82 * … … 90 90 * 91 91 * Any project needed to use psLib must define the necessary error codes and 92 * associated message strings. This function registers an array of error 92 * associated message strings. This function registers an array of error 93 93 * codes with the error handling subsystem. 94 94 * … … 109 109 /// @} 110 110 111 #endif 111 #endif // #ifndef PS_ERROR_CODES_H -
trunk/psLib/src/sysUtils/psLogMsg.c
r3476 r4162 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 39$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 3-22 21:52:49$13 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 227 227 } 228 228 229 #if !defined(HOST_NAME_MAX)// should be in limits.h229 #ifndef HOST_NAME_MAX // should be in limits.h 230 230 #define HOST_NAME_MAX 256 231 #endif 231 #endif // #ifndef HOST_NAME_MAX 232 232 233 233 /***************************************************************************** -
trunk/psLib/src/sysUtils/psLogMsg.h
r3476 r4162 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 3-22 21:52:49$13 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 17 17 */ 18 #if !defined(PS_LOG_MSG_H)18 #ifndef PS_LOG_MSG_H 19 19 #define PS_LOG_MSG_H 20 20 #include <stdarg.h> … … 85 85 va_list ap ///< varargs argument list 86 86 ); 87 #endif 87 #endif // #ifndef SWIG 88 88 89 89 ///< Status codes for log messages … … 104 104 /// @} 105 105 106 #endif 106 #endif // #ifndef PS_LOG_MSG_H -
trunk/psLib/src/sysUtils/psMemory.c
r3784 r4162 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.5 1$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-0 4-29 00:39:22$10 * @version $Revision: 1.52 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-06-08 23:40:45 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 50 50 #ifdef PS_MEM_DEBUG 51 51 static psMemBlock* deadBlockList; // a place to put dead memBlocks in debug mode. 52 #endif 52 #endif // #ifdef PS_MEM_DEBUG 53 53 54 54 /** … … 626 626 } 627 627 deadBlockList = ptr; 628 #else 628 #else // #ifdef PS_MEM_DEBUG 629 629 630 630 pthread_mutex_destroy(&ptr->refCounterMutex); 631 631 free(ptr); 632 #endif 632 #endif // #else - #ifdef PS_MEM_DEBUG 633 633 634 634 } -
trunk/psLib/src/sysUtils/psMemory.h
r3682 r4162 12 12 * @ingroup MemoryManagement 13 13 * 14 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 4-07 20:27:41$14 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 18 18 */ 19 19 20 #if !defined(PS_MEMORY_H)20 #ifndef PS_MEMORY_H 21 21 #define PS_MEMORY_H 22 22 … … 125 125 * 126 126 * @return psPtr pointer to the allocated buffer. This will not be NULL. 127 * @see psFree 127 * @see psFree 128 128 */ 129 129 #ifdef DOXYGEN 130 130 psPtr psAlloc(size_t size ///< Size required 131 131 ); 132 #else 132 #else // #ifdef DOXYGEN 133 133 psPtr p_psAlloc(size_t size, ///< Size required 134 134 const char *file, ///< File of call … … 139 139 #ifndef SWIG 140 140 #define psAlloc(size) p_psAlloc(size, __FILE__, __LINE__) 141 #endif 142 143 #endif 141 #endif // ! SWIG 142 143 #endif // ! DOXYGEN 144 144 145 145 /** Set the deallocator routine 146 146 * 147 * A deallocator routine can optionally be assigned to a memory block to 147 * A deallocator routine can optionally be assigned to a memory block to 148 148 * ensure that associated memory blocks also get freed, e.g., memory buffers 149 149 * referenced within a struct. … … 157 157 /** Get the deallocator routine 158 158 * 159 * This function returns the deallocator for a memory block. A deallocator 160 * routine can optionally be assigned to a memory block to ensure that 161 * associated memory blocks also get freed, e.g., memory buffers referenced 162 * within a struct. 159 * This function returns the deallocator for a memory block. A deallocator 160 * routine can optionally be assigned to a memory block to ensure that 161 * associated memory blocks also get freed, e.g., memory buffers referenced 162 * within a struct. 163 163 * 164 164 * @return psFreeFcn the routine to be called at deallocation. … … 170 170 /** Set the memory as persistent so that it is ignored when detecting memory leaks. 171 171 * 172 * Used to mark a memory block as persistent data within the library, 172 * Used to mark a memory block as persistent data within the library, 173 173 * i.e., non user-level data used to hold psLib's state or cache data. Such 174 174 * examples of this class of memory is psTrace's trace-levels and dynamic … … 185 185 /** Get the memory's persistent flag. 186 186 * 187 * Checks if a memory block has been marked as persistent by 187 * Checks if a memory block has been marked as persistent by 188 188 * p_psMemSetPresistent. 189 189 * … … 207 207 size_t size ///< Size required 208 208 ); 209 #else 209 #else // #ifdef DOXYGEN 210 210 psPtr p_psRealloc( 211 211 psPtr ptr, ///< Pointer to re-allocate … … 218 218 #ifndef SWIG 219 219 #define psRealloc(ptr, size) p_psRealloc(ptr, size, __FILE__, __LINE__) 220 #endif 221 222 #endif 220 #endif // ! SWIG 221 222 #endif // ! DOXYGEN 223 223 224 224 /** Free memory. This operates much like free(). … … 230 230 psPtr ptr ///< Pointer to free, if NULL, function returns immediately. 231 231 ); 232 #else 232 #else // #ifdef DOXYGEN 233 233 void p_psFree( 234 234 psPtr ptr, ///< Pointer to free … … 240 240 #ifndef SWIG 241 241 #define psFree(ptr) p_psFree(ptr, __FILE__, __LINE__) 242 #endif 243 244 #endif 242 #endif // ! SWIG 243 244 #endif // ! DOXYGEN 245 245 246 246 /** Check for memory leaks. This scans for allocated memory buffers not freed with an ID not less than id0. … … 299 299 #ifndef SWIG 300 300 #define psMemIncrRefCounter(vptr) p_psMemIncrRefCounter(vptr, __FILE__, __LINE__) 301 #endif 302 303 #endif 301 #endif // !SWIG 302 303 #endif // !DOXYGEN 304 304 305 305 /** Decrement reference counter and return the pointer … … 307 307 * @ingroup memRefCount 308 308 * 309 * @return psPtr the pointer deremented in refCount, or NULL if pointer is 309 * @return psPtr the pointer deremented in refCount, or NULL if pointer is 310 310 * fully dereferenced. 311 311 */ … … 314 314 psPtr vptr ///< Pointer to decrement refCounter, and return 315 315 ); 316 #else 316 #else // DOXYGEN 317 317 psPtr p_psMemDecrRefCounter( 318 318 psPtr vptr, ///< Pointer to decrement refCounter, and return … … 323 323 #ifndef SWIG 324 324 #define psMemDecrRefCounter(vptr) p_psMemDecrRefCounter(vptr, __FILE__, __LINE__) 325 #endif 326 327 #endif 325 #endif // !SWIG 326 327 #endif // !DOXYGEN 328 328 329 329 /** Set callback for problems. 330 330 * 331 * At various occasions, the memory manager can check the state of the memory 331 * At various occasions, the memory manager can check the state of the memory 332 332 * stack. If any of these checks discover that the memory stack is corrupted, 333 333 * the psMemProblemCallback is called. … … 343 343 /** Set callback for out-of-memory. 344 344 * 345 * If not enough memory is available to satisfy a request by psAlloc or 346 * psRealloc, these functions attempt to find an alternative solution by 347 * calling the psMemExhaustedCallback, a function which may be set by the 348 * programmer in appropriate circumstances, rather than immediately fail. 349 * The typical use of such a feature may be when a program needs a large 350 * chunk of memory to do an operation, but the exact size is not critical. 351 * This feature gives the programmer the opportunity to make a smaller 345 * If not enough memory is available to satisfy a request by psAlloc or 346 * psRealloc, these functions attempt to find an alternative solution by 347 * calling the psMemExhaustedCallback, a function which may be set by the 348 * programmer in appropriate circumstances, rather than immediately fail. 349 * The typical use of such a feature may be when a program needs a large 350 * chunk of memory to do an operation, but the exact size is not critical. 351 * This feature gives the programmer the opportunity to make a smaller 352 352 * request and try again, limiting the size of the operating buffer. 353 353 * … … 362 362 /** Set call back for when a particular memory block is allocated 363 363 * 364 * A private variable, p_psMemAllocateID, can be used to trace the allocation 365 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 366 * memory block with that ID is allocated, psMemAllocateCallback is called 364 * A private variable, p_psMemAllocateID, can be used to trace the allocation 365 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 366 * memory block with that ID is allocated, psMemAllocateCallback is called 367 367 * just before memory is returned to the calling function. 368 368 * … … 377 377 /** Set call back for when a particular memory block is freed 378 378 * 379 * A private variable, p_psMemFreeID, can be used to trace the freeing of 380 * specific memory blocks. If p_psMemFreeID is set and the memory block with 379 * A private variable, p_psMemFreeID, can be used to trace the freeing of 380 * specific memory blocks. If p_psMemFreeID is set and the memory block with 381 381 * the ID is about to be freed, the psMemFreeCallback callback is called just 382 382 * before the memory block is freed. … … 400 400 /** set p_psMemAllocateID to specific id 401 401 * 402 * A private variable, p_psMemAllocateID, can be used to trace the allocation 403 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 404 * memory block with that ID is allocated, psMemAllocateCallback is called 402 * A private variable, p_psMemAllocateID, can be used to trace the allocation 403 * and freeing of specific memory blocks. If p_psMemAllocateID is set and a 404 * memory block with that ID is allocated, psMemAllocateCallback is called 405 405 * just before memory is returned to the calling function. 406 406 * 407 407 * @ingroup memCallback 408 408 * 409 * @return psMemoryId 410 * 411 * @see psMemAllocateCallbackSet 409 * @return psMemoryId 410 * 411 * @see psMemAllocateCallbackSet 412 412 */ 413 413 psMemoryId psMemAllocateCallbackSetID( … … 417 417 /** set p_psMemFreeID to id 418 418 * 419 * A private variable, p_psMemFreeID, can be used to trace the freeing of 420 * specific memory blocks. If p_psMemFreeID is set and the memory block with 419 * A private variable, p_psMemFreeID, can be used to trace the freeing of 420 * specific memory blocks. If p_psMemFreeID is set and the memory block with 421 421 * the ID is about to be freed, the psMemFreeCallback callback is called just 422 422 * before the memory block is freed. … … 442 442 #ifdef __GNUC__ 443 443 #pragma GCC poison malloc realloc calloc free 444 #else 444 #else // __GNUC__ 445 445 #define malloc(S) _Pragma("error Use of malloc is not allowed. Use psAlloc instead.") 446 446 #define realloc(P,S) _Pragma("error Use of realloc is not allowed. Use psRealloc instead.") 447 447 #define calloc(S) _Pragma("error Use of calloc is not allowed. Use psAlloc instead.") 448 448 #define free(P) _Pragma("error Use of free is not allowed. Use psFree instead.") 449 #endif 450 #endif 451 452 #endif 453 // doxygen skip 454 455 #endif // end of header file 449 #endif // ! __GNUC__ 450 #endif // #ifndef PS_ALLOW_MALLOC 451 452 #endif // #ifndef DOXYGEN 453 454 #endif // #ifndef PS_MEMORY_H -
trunk/psLib/src/sysUtils/psString.h
r3998 r4162 13 13 * @author Eric Van Alst, MHPCC 14 14 * 15 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $16 * @date $Date: 2005-0 5-20 01:41:57$15 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2005-06-08 23:40:45 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 99 99 ); 100 100 101 /* @} */// Doxygen - End of SystemGroup Functions101 /** @} */// Doxygen - End of SystemGroup Functions 102 102 103 #endif 103 #endif // #ifndef PS_STRING_H -
trunk/psLib/src/sysUtils/psSysUtilsErrors.h
r3264 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 2-17 19:26:24$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 23 23 * $2 The error text (rest of the line in psSysUtilsErrors.dat) 24 24 * $n The order of the source line in psSysUtilsErrors.dat (comments excluded) 25 * 25 * 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ … … 50 50 //~End 51 51 52 #endif 52 #endif // #ifndef PS_SYSUTILS_ERRORS_H -
trunk/psLib/src/sysUtils/psTrace.c
r3850 r4162 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.4 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 5-05 21:24:50$11 * @version $Revision: 1.49 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-06-08 23:40:45 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 555 555 } 556 556 557 #endif 557 #endif // #ifndef PS_NO_TRACE -
trunk/psLib/src/sysUtils/psType.h
r3671 r4162 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 4-06 01:12:58$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 62 62 } 63 63 psC64; 64 #else 64 #else // SWIG 65 65 typedef float _Complex psC32; ///< complex with 32-bit floating point Real and Imagary numbers 66 66 typedef double _Complex psC64; ///< complex with 64-bit floating point Real and Imagary numbers 67 #endif 67 #endif // !SWIG 68 68 69 69 typedef void* psPtr; ///< void pointer … … 243 243 /// @} 244 244 245 #endif 245 #endif // #ifndef PS_TYPE_H -
trunk/psLib/src/types/psArray.h
r3264 r4162 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:23$14 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 48 48 /** Allocate an array. 49 49 * 50 * Uses psLib memory allocation functions to create an array collection of 50 * Uses psLib memory allocation functions to create an array collection of 51 51 * data 52 52 * … … 60 60 /** Reallocate an array. 61 61 * 62 * Uses psLib memory allocation functions to reallocate an array collection 63 * of data. 62 * Uses psLib memory allocation functions to reallocate an array collection 63 * of data. 64 64 * 65 65 * @return psArray* : Pointer to psArray. … … 85 85 /** Remove an element from the array 86 86 * 87 * Finds and removes the specified data pointer from the list. 87 * Finds and removes the specified data pointer from the list. 88 88 * 89 * @return bool: TRUE if the specified data pointer was found and removed, 89 * @return bool: TRUE if the specified data pointer was found and removed, 90 90 * otherwise FALSE. 91 91 * … … 98 98 /** Deallocate/Dereference elements of an array. 99 99 * 100 * Uses psLib memory allocation functions to deallocate/dereference elements 100 * Uses psLib memory allocation functions to deallocate/dereference elements 101 101 * of a array of void pointers. The array psArr is not freed, and its elements 102 102 * will all be set to NULL. … … 112 112 * to specify how the objects on the array should be sorted. 113 113 * 114 * The comparison function must return an integer less than, equal to, or 115 * greater than zero if the first argument is considered to be respectively 116 * less than, equal to, or greater than the second. 114 * The comparison function must return an integer less than, equal to, or 115 * greater than zero if the first argument is considered to be respectively 116 * less than, equal to, or greater than the second. 117 117 * 118 * If two members compare as equal, their order in the sorted array is 118 * If two members compare as equal, their order in the sorted array is 119 119 * undefined. 120 120 * … … 148 148 /// @} 149 149 150 #endif 150 #endif // #ifndef PS_ARRAY_H -
trunk/psLib/src/types/psBitSet.h
r3264 r4162 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 2-17 19:26:23$14 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-06-08 23:40:45 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 75 75 /** Clear a bit. 76 76 * 77 * Clear a bit at a given bit location. The bit is cleared based on a zero 78 * index with the first bit set in the zero bit slot of the zero element of 79 * the byte array. 77 * Clear a bit at a given bit location. The bit is cleared based on a zero 78 * index with the first bit set in the zero bit slot of the zero element of 79 * the byte array. 80 80 * 81 81 * @return psBitSet* : Pointer to struct containing psBitSet. … … 143 143 /// @} 144 144 145 #endif 145 #endif // #ifndef PSBITSET_H -
trunk/psLib/src/types/psHash.h
r4135 r4162 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-0 7 22:36:48$13 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 17 17 */ 18 #if !defined(PS_HASH_H) 18 19 #ifndef PS_HASH_H 19 20 #define PS_HASH_H 20 21 … … 83 84 /* \} */// End of DataGroup Functions 84 85 85 #endif 86 #endif // #ifndef PS_HASH_H -
trunk/psLib/src/types/psList.h
r3409 r4162 1 #if !defined(PS_LIST_H)2 #define PS_LIST_H3 4 1 /** @file psList.h 5 2 * @brief Support for doubly linked lists … … 10 7 * @ingroup LinkedList 11 8 * 12 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 3-11 23:17:46$9 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 14 11 * 15 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 16 13 */ 14 15 #ifndef PS_LIST_H 16 #define PS_LIST_H 17 17 18 18 #include <pthread.h> // we need a mutex to make this stuff thread safe. … … 210 210 /** Sort a list via a comparison function. 211 211 * 212 * The comparison function must return an integer less than, equal to, or 213 * greater than zero if the first argument is considered to be respectively 214 * less than, equal to, or greater than the second. 215 * 216 * If two members compare as equal, their order in the sorted array is 212 * The comparison function must return an integer less than, equal to, or 213 * greater than zero if the first argument is considered to be respectively 214 * less than, equal to, or greater than the second. 215 * 216 * If two members compare as equal, their order in the sorted array is 217 217 * undefined. 218 218 * … … 226 226 /// @} End of DataGroup Functions 227 227 228 #endif 228 #endif // #ifndef PS_LIST_H 229 -
trunk/psLib/src/types/psLookupTable.c
r4050 r4162 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-31 21:46:56$9 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 15 15 #include <string.h> 16 16 #include <ctype.h> 17 //#ifdef DARWIN18 #undef __STRICT_ANSI__19 //#endif20 17 #include <stdlib.h> 21 //#ifdef DARWIN22 #define __STRICT_ANSI__23 //#endif24 18 #include <math.h> 25 #include <stdlib.h>26 19 27 20 #include "psMemory.h" -
trunk/psLib/src/types/psLookupTable.h
r4050 r4162 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-31 21:46:56$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 131 131 ); 132 132 133 #endif 133 #endif // #ifndef PS_LOOKUPTABLE_H -
trunk/psLib/src/types/psMetadata.h
r4130 r4162 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-06-0 7 19:59:39$13 * @version $Revision: 1.47 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-06-08 23:40:45 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 70 70 * 71 71 * Enumeration for the modification of the behaviour in psMetadataAddItem. 72 * 72 * 73 73 * @see psMetadataAddItem 74 74 */ … … 239 239 va_list list ///< Arguments for name formatting and metadata item data. 240 240 ); 241 #endif 241 #endif // #ifndef SWIG 242 242 243 243 /** Create a metadata collection. … … 294 294 va_list list ///< Arguments for name formatting and metadata item data. 295 295 ); 296 #endif 296 #endif // #ifndef SWIG 297 297 298 298 psBool psMetadataAddS32(psMetadata* md, psS32 location, const char* name, … … 479 479 /// @} 480 480 481 #endif 481 #endif // #ifndef PS_METADATA_H -
trunk/psLib/src/types/psMetadataConfig.h
r3945 r4162 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 5-16 19:43:53$12 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 94 94 /// @} 95 95 96 #endif 96 #endif // #ifndef PS_METADATAIO_H -
trunk/psLib/src/types/psPixels.h
r3990 r4162 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-19 23:57:36$9 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 23:40:45 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 132 132 ); 133 133 134 #endif 134 #endif // #ifndef PS_PIXELS_H -
trunk/psLib/src/xml/psXML.h
r3945 r4162 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 5-16 19:43:53$12 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-06-08 23:40:45 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 94 94 /// @} 95 95 96 #endif 96 #endif // #ifndef PS_METADATAIO_H -
trunk/psLib/test/psTest.h
r2204 r4162 80 80 ); 81 81 82 #endif 82 #endif // #ifndef PSTEST_H
Note:
See TracChangeset
for help on using the changeset viewer.
