EMAN2
|
Go to the source code of this file.
Macros | |
#define | DLL_MAPPING |
#define | CUTIL_API |
#define | CUT_BANK_CHECKER(array, index) array[index] |
Macros. More... | |
#define | CUT_CHECK_ERROR(errorMessage) |
#define | CUT_CHECK_ERROR_GL() |
#define | CUT_CONDITION(val) |
#define | CU_SAFE_CALL_NO_SYNC(call) call |
#define | CU_SAFE_CALL(call) call |
#define | CUDA_SAFE_CALL_NO_SYNC(call) call |
#define | CUDA_SAFE_CALL(call) call |
#define | CUT_SAFE_CALL(call) call |
#define | CUFFT_SAFE_CALL(call) call |
#define | CUT_SAFE_MALLOC(mallocCall) mallocCall |
#define | CUT_DEVICE_INIT(ARGC, ARGV) |
#define | CUT_DEVICE_INIT_DRV(cuDevice, ARGC, ARGV) |
#define | CUT_EXIT(argc, argv) |
Enumerations | |
enum | CUTBoolean { CUTFalse = 0 , CUTTrue = 1 } |
CUT bool type. More... | |
Functions | |
DLL_MAPPING void CUTIL_API | cutFree (void *ptr) |
Deallocate memory allocated within Cutil. More... | |
DLL_MAPPING void CUTIL_API | cutCheckBankAccess (unsigned int tidx, unsigned int tidy, unsigned int tidz, unsigned int bdimx, unsigned int bdimy, unsigned int bdimz, const char *file, const int line, const char *aname, const int index) |
Helper for bank conflict checking (should only be used with the CUT_BANK_CHECKER macro) More... | |
DLL_MAPPING char *CUTIL_API | cutFindFilePath (const char *filename, const char *executablePath) |
Find the path for a filename. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutReadFilef (const char *filename, float **data, unsigned int *len, bool verbose=false) |
Read file \filename containing single precision floating point data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutReadFiled (const char *filename, double **data, unsigned int *len, bool verbose=false) |
Read file \filename containing double precision floating point data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutReadFilei (const char *filename, int **data, unsigned int *len, bool verbose=false) |
Read file \filename containing integer data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutReadFileui (const char *filename, unsigned int **data, unsigned int *len, bool verbose=false) |
Read file \filename containing unsigned integer data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutReadFileb (const char *filename, char **data, unsigned int *len, bool verbose=false) |
Read file \filename containing char / byte data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutReadFileub (const char *filename, unsigned char **data, unsigned int *len, bool verbose=false) |
Read file \filename containing unsigned char / byte data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutWriteFilef (const char *filename, const float *data, unsigned int len, const float epsilon, bool verbose=false) |
Write a data file \filename containing single precision floating point data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutWriteFiled (const char *filename, const float *data, unsigned int len, const double epsilon, bool verbose=false) |
Write a data file \filename containing double precision floating point data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutWriteFilei (const char *filename, const int *data, unsigned int len, bool verbose=false) |
Write a data file \filename containing integer data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutWriteFileui (const char *filename, const unsigned int *data, unsigned int len, bool verbose=false) |
Write a data file \filename containing unsigned integer data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutWriteFileb (const char *filename, const char *data, unsigned int len, bool verbose=false) |
Write a data file \filename containing char / byte data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutWriteFileub (const char *filename, const unsigned char *data, unsigned int len, bool verbose=false) |
Write a data file \filename containing unsigned char / byte data. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutLoadPGMub (const char *file, unsigned char **data, unsigned int *w, unsigned int *h) |
Load PGM image file (with unsigned char as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutLoadPPMub (const char *file, unsigned char **data, unsigned int *w, unsigned int *h) |
Load PPM image file (with unsigned char as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutLoadPPM4ub (const char *file, unsigned char **data, unsigned int *w, unsigned int *h) |
Load PPM image file (with unsigned char as data element type), padding 4th component. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutLoadPGMi (const char *file, unsigned int **data, unsigned int *w, unsigned int *h) |
Load PGM image file (with unsigned int as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutLoadPGMs (const char *file, unsigned short **data, unsigned int *w, unsigned int *h) |
Load PGM image file (with unsigned short as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutLoadPGMf (const char *file, float **data, unsigned int *w, unsigned int *h) |
Load PGM image file (with float as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutSavePGMub (const char *file, unsigned char *data, unsigned int w, unsigned int h) |
Save PGM image file (with unsigned char as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutSavePPMub (const char *file, unsigned char *data, unsigned int w, unsigned int h) |
Save PPM image file (with unsigned char as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutSavePPM4ub (const char *file, unsigned char *data, unsigned int w, unsigned int h) |
Save PPM image file (with unsigned char as data element type, padded to 4 bytes) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutSavePGMi (const char *file, unsigned int *data, unsigned int w, unsigned int h) |
Save PGM image file (with unsigned int as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutSavePGMs (const char *file, unsigned short *data, unsigned int w, unsigned int h) |
Save PGM image file (with unsigned short as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutSavePGMf (const char *file, float *data, unsigned int w, unsigned int h) |
Save PGM image file (with float as data element type) More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutCheckCmdLineFlag (const int argc, const char **argv, const char *flag_name) |
Check if command line argument flag-name is given. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutGetCmdLineArgumenti (const int argc, const char **argv, const char *arg_name, int *val) |
Get the value of a command line argument of type int. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutGetCmdLineArgumentf (const int argc, const char **argv, const char *arg_name, float *val) |
Get the value of a command line argument of type float. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutGetCmdLineArgumentstr (const int argc, const char **argv, const char *arg_name, char **val) |
Get the value of a command line argument of type string. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutGetCmdLineArgumentListstr (const int argc, const char **argv, const char *arg_name, char **val, unsigned int *len) |
Get the value of a command line argument list those element are strings. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutCheckCondition (int val, const char *file, const int line) |
Extended assert. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutComparef (const float *reference, const float *data, const unsigned int len) |
Compare two float arrays. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutComparei (const int *reference, const int *data, const unsigned int len) |
Compare two integer arrays. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutCompareub (const unsigned char *reference, const unsigned char *data, const unsigned int len) |
Compare two unsigned char arrays. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutCompareube (const unsigned char *reference, const unsigned char *data, const unsigned int len, const int epsilon) |
Compare two integer arrays witha n epsilon tolerance for equality. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutComparefe (const float *reference, const float *data, const unsigned int len, const float epsilon) |
Compare two float arrays with an epsilon tolerance for equality. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutCompareL2fe (const float *reference, const float *data, const unsigned int len, const float epsilon) |
Compare two float arrays using L2-norm with an epsilon tolerance for equality. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutCreateTimer (unsigned int *name) |
Timer functionality. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutDeleteTimer (unsigned int name) |
Delete a timer. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutStartTimer (const unsigned int name) |
Start the time with name name. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutStopTimer (const unsigned int name) |
Stop the time with name name. More... | |
DLL_MAPPING CUTBoolean CUTIL_API | cutResetTimer (const unsigned int name) |
Resets the timer's counter. More... | |
DLL_MAPPING float CUTIL_API | cutGetTimerValue (const unsigned int name) |
Returns total execution time in milliseconds for the timer over all runs since the last reset or timer creation. More... | |
DLL_MAPPING float CUTIL_API | cutGetAverageTimerValue (const unsigned int name) |
Return the average time in milliseconds for timer execution as the total time for the timer dividied by the number of completed (stopped) runs the timer has made. More... | |
#define CU_SAFE_CALL | ( | call | ) | call |
Definition at line 785 of file cuda_defs.h.
#define CU_SAFE_CALL_NO_SYNC | ( | call | ) | call |
Definition at line 784 of file cuda_defs.h.
#define CUDA_SAFE_CALL | ( | call | ) | call |
Definition at line 787 of file cuda_defs.h.
#define CUDA_SAFE_CALL_NO_SYNC | ( | call | ) | call |
Definition at line 786 of file cuda_defs.h.
#define CUFFT_SAFE_CALL | ( | call | ) | call |
Definition at line 789 of file cuda_defs.h.
#define CUT_BANK_CHECKER | ( | array, | |
index | |||
) | array[index] |
Macros.
Definition at line 778 of file cuda_defs.h.
#define CUT_CHECK_ERROR | ( | errorMessage | ) |
Definition at line 781 of file cuda_defs.h.
#define CUT_CHECK_ERROR_GL | ( | ) |
Definition at line 782 of file cuda_defs.h.
#define CUT_CONDITION | ( | val | ) |
Definition at line 783 of file cuda_defs.h.
#define CUT_DEVICE_INIT | ( | ARGC, | |
ARGV | |||
) |
Definition at line 800 of file cuda_defs.h.
#define CUT_DEVICE_INIT_DRV | ( | cuDevice, | |
ARGC, | |||
ARGV | |||
) |
Definition at line 823 of file cuda_defs.h.
#define CUT_EXIT | ( | argc, | |
argv | |||
) |
Definition at line 843 of file cuda_defs.h.
#define CUT_SAFE_CALL | ( | call | ) | call |
Definition at line 788 of file cuda_defs.h.
#define CUT_SAFE_MALLOC | ( | mallocCall | ) | mallocCall |
Definition at line 790 of file cuda_defs.h.
#define CUTIL_API |
Definition at line 58 of file cuda_defs.h.
#define DLL_MAPPING |
Definition at line 52 of file cuda_defs.h.
enum CUTBoolean |
DLL_MAPPING void CUTIL_API cutCheckBankAccess | ( | unsigned int | tidx, |
unsigned int | tidy, | ||
unsigned int | tidz, | ||
unsigned int | bdimx, | ||
unsigned int | bdimy, | ||
unsigned int | bdimz, | ||
const char * | file, | ||
const int | line, | ||
const char * | aname, | ||
const int | index | ||
) |
Helper for bank conflict checking (should only be used with the CUT_BANK_CHECKER macro)
tidx | thread id in x dimension of block |
tidy | thread id in y dimension of block |
tidz | thread id in z dimension of block |
bdimx | block size in x dimension |
bdimy | block size in y dimension |
bdimz | block size in z dimension |
file | name of the source file where the access takes place |
line | line in the source file where the access takes place |
aname | name of the array which is accessed |
index | index into the array |
DLL_MAPPING CUTBoolean CUTIL_API cutCheckCmdLineFlag | ( | const int | argc, |
const char ** | argv, | ||
const char * | flag_name | ||
) |
Check if command line argument flag-name is given.
argc | argc as passed to main() |
argv | argv as passed to main() |
flag_name | name of command line flag |
DLL_MAPPING CUTBoolean CUTIL_API cutCheckCondition | ( | int | val, |
const char * | file, | ||
const int | line | ||
) |
Extended assert.
val | condition to test |
file | FILE macro |
line | LINE macro |
DLL_MAPPING CUTBoolean CUTIL_API cutComparef | ( | const float * | reference, |
const float * | data, | ||
const unsigned int | len | ||
) |
Compare two float arrays.
reference | handle to the reference data / gold image |
data | handle to the computed data |
len | number of elements in reference and data |
DLL_MAPPING CUTBoolean CUTIL_API cutComparefe | ( | const float * | reference, |
const float * | data, | ||
const unsigned int | len, | ||
const float | epsilon | ||
) |
Compare two float arrays with an epsilon tolerance for equality.
reference | handle to the reference data / gold image |
data | handle to the computed data |
len | number of elements in reference and data |
epsilon | epsilon to use for the comparison |
DLL_MAPPING CUTBoolean CUTIL_API cutComparei | ( | const int * | reference, |
const int * | data, | ||
const unsigned int | len | ||
) |
Compare two integer arrays.
reference | handle to the reference data / gold image |
data | handle to the computed data |
len | number of elements in reference and data |
DLL_MAPPING CUTBoolean CUTIL_API cutCompareL2fe | ( | const float * | reference, |
const float * | data, | ||
const unsigned int | len, | ||
const float | epsilon | ||
) |
Compare two float arrays using L2-norm with an epsilon tolerance for equality.
reference | handle to the reference data / gold image |
data | handle to the computed data |
len | number of elements in reference and data |
epsilon | epsilon to use for the comparison |
DLL_MAPPING CUTBoolean CUTIL_API cutCompareub | ( | const unsigned char * | reference, |
const unsigned char * | data, | ||
const unsigned int | len | ||
) |
Compare two unsigned char arrays.
reference | handle to the reference data / gold image |
data | handle to the computed data |
len | number of elements in reference and data |
DLL_MAPPING CUTBoolean CUTIL_API cutCompareube | ( | const unsigned char * | reference, |
const unsigned char * | data, | ||
const unsigned int | len, | ||
const int | epsilon | ||
) |
Compare two integer arrays witha n epsilon tolerance for equality.
reference | handle to the reference data / gold image |
data | handle to the computed data |
len | number of elements in reference and data |
epsilon | epsilon to use for the comparison |
DLL_MAPPING CUTBoolean CUTIL_API cutCreateTimer | ( | unsigned int * | name | ) |
Timer functionality.
Create a new timer
name | of the new timer, 0 if the creation failed |
DLL_MAPPING CUTBoolean CUTIL_API cutDeleteTimer | ( | unsigned int | name | ) |
Delete a timer.
name | of the timer to delete |
DLL_MAPPING char *CUTIL_API cutFindFilePath | ( | const char * | filename, |
const char * | executablePath | ||
) |
Find the path for a filename.
filename | name of the file |
executablePath | optional absolute path of the executable |
DLL_MAPPING void CUTIL_API cutFree | ( | void * | ptr | ) |
Deallocate memory allocated within Cutil.
pointer | to memory |
DLL_MAPPING float CUTIL_API cutGetAverageTimerValue | ( | const unsigned int | name | ) |
Return the average time in milliseconds for timer execution as the total time for the timer dividied by the number of completed (stopped) runs the timer has made.
Excludes the current running time if the timer is currently running.
name | name of the timer to return the time of |
DLL_MAPPING CUTBoolean CUTIL_API cutGetCmdLineArgumentf | ( | const int | argc, |
const char ** | argv, | ||
const char * | arg_name, | ||
float * | val | ||
) |
Get the value of a command line argument of type float.
argc | argc as passed to main() |
argv | argv as passed to main() |
arg_name | name of the command line argument |
val | value of the command line argument |
DLL_MAPPING CUTBoolean CUTIL_API cutGetCmdLineArgumenti | ( | const int | argc, |
const char ** | argv, | ||
const char * | arg_name, | ||
int * | val | ||
) |
Get the value of a command line argument of type int.
argc | argc as passed to main() |
argv | argv as passed to main() |
arg_name | name of the command line argument |
val | value of the command line argument |
DLL_MAPPING CUTBoolean CUTIL_API cutGetCmdLineArgumentListstr | ( | const int | argc, |
const char ** | argv, | ||
const char * | arg_name, | ||
char ** | val, | ||
unsigned int * | len | ||
) |
Get the value of a command line argument list those element are strings.
argc | argc as passed to main() |
argv | argv as passed to main() |
arg_name | name of the command line argument |
val | command line argument list |
len | length of the list / number of elements |
DLL_MAPPING CUTBoolean CUTIL_API cutGetCmdLineArgumentstr | ( | const int | argc, |
const char ** | argv, | ||
const char * | arg_name, | ||
char ** | val | ||
) |
Get the value of a command line argument of type string.
argc | argc as passed to main() |
argv | argv as passed to main() |
arg_name | name of the command line argument |
val | value of the command line argument |
DLL_MAPPING float CUTIL_API cutGetTimerValue | ( | const unsigned int | name | ) |
Returns total execution time in milliseconds for the timer over all runs since the last reset or timer creation.
name | name of the timer to return the time of |
DLL_MAPPING CUTBoolean CUTIL_API cutLoadPGMf | ( | const char * | file, |
float ** | data, | ||
unsigned int * | w, | ||
unsigned int * | h | ||
) |
Load PGM image file (with float as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutLoadPGMi | ( | const char * | file, |
unsigned int ** | data, | ||
unsigned int * | w, | ||
unsigned int * | h | ||
) |
Load PGM image file (with unsigned int as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutLoadPGMs | ( | const char * | file, |
unsigned short ** | data, | ||
unsigned int * | w, | ||
unsigned int * | h | ||
) |
Load PGM image file (with unsigned short as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutLoadPGMub | ( | const char * | file, |
unsigned char ** | data, | ||
unsigned int * | w, | ||
unsigned int * | h | ||
) |
Load PGM image file (with unsigned char as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutLoadPPM4ub | ( | const char * | file, |
unsigned char ** | data, | ||
unsigned int * | w, | ||
unsigned int * | h | ||
) |
Load PPM image file (with unsigned char as data element type), padding 4th component.
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutLoadPPMub | ( | const char * | file, |
unsigned char ** | data, | ||
unsigned int * | w, | ||
unsigned int * | h | ||
) |
Load PPM image file (with unsigned char as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutReadFileb | ( | const char * | filename, |
char ** | data, | ||
unsigned int * | len, | ||
bool | verbose = false |
||
) |
Read file \filename containing char / byte data.
filename | name of the source file |
data | uninitialized pointer, returned initialized and pointing to the data read |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutReadFiled | ( | const char * | filename, |
double ** | data, | ||
unsigned int * | len, | ||
bool | verbose = false |
||
) |
Read file \filename containing double precision floating point data.
filename | name of the source file |
data | uninitialized pointer, returned initialized and pointing to the data read |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutReadFilef | ( | const char * | filename, |
float ** | data, | ||
unsigned int * | len, | ||
bool | verbose = false |
||
) |
Read file \filename containing single precision floating point data.
filename | name of the source file |
data | uninitialized pointer, returned initialized and pointing to the data read |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutReadFilei | ( | const char * | filename, |
int ** | data, | ||
unsigned int * | len, | ||
bool | verbose = false |
||
) |
Read file \filename containing integer data.
filename | name of the source file |
data | uninitialized pointer, returned initialized and pointing to the data read |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutReadFileub | ( | const char * | filename, |
unsigned char ** | data, | ||
unsigned int * | len, | ||
bool | verbose = false |
||
) |
Read file \filename containing unsigned char / byte data.
filename | name of the source file |
data | uninitialized pointer, returned initialized and pointing to the data read |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutReadFileui | ( | const char * | filename, |
unsigned int ** | data, | ||
unsigned int * | len, | ||
bool | verbose = false |
||
) |
Read file \filename containing unsigned integer data.
filename | name of the source file |
data | uninitialized pointer, returned initialized and pointing to the data read |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutResetTimer | ( | const unsigned int | name | ) |
Resets the timer's counter.
name | name of the timer to reset. |
DLL_MAPPING CUTBoolean CUTIL_API cutSavePGMf | ( | const char * | file, |
float * | data, | ||
unsigned int | w, | ||
unsigned int | h | ||
) |
Save PGM image file (with float as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutSavePGMi | ( | const char * | file, |
unsigned int * | data, | ||
unsigned int | w, | ||
unsigned int | h | ||
) |
Save PGM image file (with unsigned int as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutSavePGMs | ( | const char * | file, |
unsigned short * | data, | ||
unsigned int | w, | ||
unsigned int | h | ||
) |
Save PGM image file (with unsigned short as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutSavePGMub | ( | const char * | file, |
unsigned char * | data, | ||
unsigned int | w, | ||
unsigned int | h | ||
) |
Save PGM image file (with unsigned char as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutSavePPM4ub | ( | const char * | file, |
unsigned char * | data, | ||
unsigned int | w, | ||
unsigned int | h | ||
) |
Save PPM image file (with unsigned char as data element type, padded to 4 bytes)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutSavePPMub | ( | const char * | file, |
unsigned char * | data, | ||
unsigned int | w, | ||
unsigned int | h | ||
) |
Save PPM image file (with unsigned char as data element type)
file | name of the image file |
data | handle to the data read |
w | width of the image |
h | height of the image |
DLL_MAPPING CUTBoolean CUTIL_API cutStartTimer | ( | const unsigned int | name | ) |
Start the time with name name.
name | name of the timer to start |
DLL_MAPPING CUTBoolean CUTIL_API cutStopTimer | ( | const unsigned int | name | ) |
Stop the time with name name.
Does not reset.
name | name of the timer to stop |
DLL_MAPPING CUTBoolean CUTIL_API cutWriteFileb | ( | const char * | filename, |
const char * | data, | ||
unsigned int | len, | ||
bool | verbose = false |
||
) |
Write a data file \filename containing char / byte data.
filename | name of the file to write |
data | pointer to data to write |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutWriteFiled | ( | const char * | filename, |
const float * | data, | ||
unsigned int | len, | ||
const double | epsilon, | ||
bool | verbose = false |
||
) |
Write a data file \filename containing double precision floating point data.
filename | name of the file to write |
data | pointer to data to write |
len | number of data elements in data, -1 on error |
epsilon | epsilon for comparison |
DLL_MAPPING CUTBoolean CUTIL_API cutWriteFilef | ( | const char * | filename, |
const float * | data, | ||
unsigned int | len, | ||
const float | epsilon, | ||
bool | verbose = false |
||
) |
Write a data file \filename containing single precision floating point data.
filename | name of the file to write |
data | pointer to data to write |
len | number of data elements in data, -1 on error |
epsilon | epsilon for comparison |
DLL_MAPPING CUTBoolean CUTIL_API cutWriteFilei | ( | const char * | filename, |
const int * | data, | ||
unsigned int | len, | ||
bool | verbose = false |
||
) |
Write a data file \filename containing integer data.
filename | name of the file to write |
data | pointer to data to write |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutWriteFileub | ( | const char * | filename, |
const unsigned char * | data, | ||
unsigned int | len, | ||
bool | verbose = false |
||
) |
Write a data file \filename containing unsigned char / byte data.
filename | name of the file to write |
data | pointer to data to write |
len | number of data elements in data, -1 on error |
DLL_MAPPING CUTBoolean CUTIL_API cutWriteFileui | ( | const char * | filename, |
const unsigned int * | data, | ||
unsigned int | len, | ||
bool | verbose = false |
||
) |
Write a data file \filename containing unsigned integer data.
filename | name of the file to write |
data | pointer to data to write |
len | number of data elements in data, -1 on error |