3 #include "basictools.h"
6 #define RK_SVD_EPS 1.0e-16
7 #define RK_SVD_EPS2 1.0e-32
8 #define RK_SVD_EPS3 1.0e-64
17 rkmatrix() { rows = 0; cols = 0; rk = 0; k = 0; a = 0x0; b = 0x0; } ;
18 rkmatrix(
int k_new,
int rows_new,
int cols_new) { k = k_new; rk = k_new; rows = rows_new; cols = cols_new; a = allocate_vector(rows * k); b = allocate_vector(cols * k); } ;
19 ~
rkmatrix() {
if(a) free_vector(a);
if(b) free_vector(b); } ;
28 void rkmatrix_times_vector(EvalMode mode,
double* b,
double* c,
double alpha,
double beta);
29 void rkmatrix_times_matrix(EvalMode mode,
double* B,
double* C,
int n,
double alpha,
double beta);
30 double get_frobenius_norm();
31 int rk_svd(
double* u,
double* sigma,
double* v);
Definition: rkmatrix.h:15