60 aa_dump_vec( FILE *file, const
double *v,
size_t n );
64 aa_dump_mat( FILE *file, const
double *A,
size_t m,
size_t n );
67 aa_dump_matf( FILE *file, const
float *A,
size_t m,
size_t n );
77 #define AA_DUMP_MAT( file, fmt, A, m, n) \
79 for( size_t aa_debug_$_i = 0; aa_debug_$_i < m; \
81 for( size_t aa_debug_$_j = 0; aa_debug_$_j < n-1; \
83 fprintf(file, fmt"\t", \
84 AA_MATREF(A, m, aa_debug_$_i,aa_debug_$_j)); \
86 fprintf(file, fmt"\n", \
87 AA_MATREF(A, m, aa_debug_$_i, n-1) ); \
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_verbf(int min_level, const char fmt[],...) AA_DEPRECATED
don't use
#define AA_EXTERN
name mangling convention external symbols
AA_EXTERN const char *aa_verbf_prefix AA_DEPRECATED
don't use
AA_API void aa_tick(const char fmt[],...)
save time, printf fmt
#define AA_API
calling and name mangling convention for functions
AA_API void aa_dump_vec(FILE *file, const double *v, size_t n)
print a vec to file
AA_API struct timespec aa_tock(void)
print and return elapsed time since aa_tick()
AA_API void aa_hard_assert(int test, const char fmt[],...)
bail out if test is false