A few matrix algebra routines for dense matrices.
Definition of the main floating-point datatype used; the ergo_real type.
void dgemm_(const char *ta, const char *tb, const int *n, const int *k, const int *l, const double *alpha, const double *A, const int *lda, const double *B, const int *ldb, const double *beta, double *C, const int *ldc)
Memory allocation/deallocation routines.
#define LOG_CAT_ERROR
Definition: output.h:47
double ergo_real
Definition: realtype.h:69
void multiply_matrices_general(int An1, int An2, int Bn1, int Bn2, const ergo_real *A, const ergo_real *B, ergo_real *AB)
Definition: matrix_algebra.cc:67
void * ergo_malloc(size_t noOfBytes)
Definition: memorymanag.cc:49
void multiply_matrices_general_T_1(int An1, int An2, int Bn1, int Bn2, const ergo_real *A, const ergo_real *B, ergo_real *AB)
Definition: matrix_algebra.cc:113
#define LOG_AREA_LOWLEVEL
Definition: output.h:63
static void gemm(const char *ta, const char *tb, const int *n, const int *k, const int *l, const T *alpha, const T *A, const int *lda, const T *B, const int *ldb, const T *beta, T *C, const int *ldc)
Definition: mat_gblas.h:232
void multiply_matrices_general_T_1(int An1, int An2, int Bn1, int Bn2, const ergo_real *A, const ergo_real *B, ergo_real *AB)
Definition: matrix_algebra.cc:113
void multiply_matrices_general(int An1, int An2, int Bn1, int Bn2, const ergo_real *A, const ergo_real *B, ergo_real *AB)
Definition: matrix_algebra.cc:67
void ergo_free(void *p)
Definition: memorymanag.cc:68
void do_output(int logCategory, int logArea, const char *format,...)
Definition: output.cc:53
Functionality for writing output messages to a text file.