19 #ifndef ACTION_LU_DECOMP 20 #define ACTION_LU_DECOMP 21 #include "utilities.h" 30 template<
class Interface>
39 MESSAGE(
"Action_lu_decomp Ctor");
42 init_matrix<pseudo_random>(X_stl,_size);
44 init_matrix<null_function>(C_stl,_size);
45 init_matrix<null_function>(resu_stl,_size);
48 Interface::matrix_from_stl(X_ref,X_stl);
49 Interface::matrix_from_stl(
X,X_stl);
50 Interface::matrix_from_stl(
C,C_stl);
52 _cost = 2.0*size*size*size/3.0 + size*
size;
59 INFOS(
"illegal call to Action_lu_decomp Copy Ctor");
67 MESSAGE(
"Action_lu_decomp Dtor");
70 Interface::free_matrix(X_ref,_size);
71 Interface::free_matrix(
X,_size);
72 Interface::free_matrix(
C,_size);
77 static inline std::string
name(
void )
91 Interface::lu_decomp(
X,
C,_size);
96 Interface::matrix_to_stl(
C,resu_stl);
112 typename Interface::stl_matrix
X_stl;
113 typename Interface::stl_matrix
C_stl;
116 typename Interface::gene_matrix
X_ref;
117 typename Interface::gene_matrix
X;
118 typename Interface::gene_matrix
C;
Action_lu_decomp(int size)
static std::string name(void)
Action_lu_decomp(const Action_lu_decomp &)
Interface::stl_matrix X_stl
Interface::stl_matrix resu_stl
Matrix< Scalar, Dynamic, Dynamic > C
void copy_matrix(MatrixType &m)
Interface::stl_matrix C_stl
Interface::gene_matrix X_ref