Go to the source code of this file.
|
AA_API void | aa_hard_assert (int test, const char fmt[],...) |
| bail out if test is false
|
|
AA_API void | aa_verbf (int min_level, const char fmt[],...) AA_DEPRECATED |
| don't use
|
|
AA_API void | aa_dump_vec (FILE *file, const double *v, size_t n) |
| print a vec to file
|
|
AA_API void | aa_dump_mat (FILE *file, const double *A, size_t m, size_t n) |
| print a matrix to file
|
|
AA_API void | aa_dump_matf (FILE *file, const float *A, size_t m, size_t n) |
|
AA_API void | aa_tick (const char fmt[],...) |
| save time, printf fmt
|
|
AA_API struct timespec | aa_tock (void) |
| print and return elapsed time since aa_tick()
|
|
#define AA_DUMP_MAT |
( |
|
file, |
|
|
|
fmt, |
|
|
|
A, |
|
|
|
m, |
|
|
|
n |
|
) |
| |
Value:{ \
for( size_t aa_debug_$_i = 0; aa_debug_$_i < m; \
aa_debug_$_i ++ ) { \
for( size_t aa_debug_$_j = 0; aa_debug_$_j < n-1; \
aa_debug_$_j ++ ) { \
fprintf(file, fmt"\t", \
AA_MATREF(A, m, aa_debug_$_i,aa_debug_$_j)); \
} \
fprintf(file, fmt"\n", \
} \
} \
#define AA_MATREF(A, lda, row, col)
Reference an element in a column-major matrix.
Print a matrix.
- Parameters
-
file | FILE pointer to print to |
fmt | format specifier for matrix element, ie. "%f" or "%d" |
A | pointer to matrix, column major |
m | matrix rows |
n | matrix cols |
Definition at line 77 of file debug.h.