20 #ifndef TVMET_INTERFACE_HH 21 #define TVMET_INTERFACE_HH 23 #include <tvmet/tvmet.h> 24 #include <tvmet/Vector.h> 25 #include <tvmet/Matrix.h> 29 using namespace tvmet;
31 template<
class real,
int SIZE>
44 static inline std::string
name() {
return "tiny_tvmet"; }
51 for (
int j=0;
j<A_stl.size() ;
j++)
52 for (
int i=0;
i<A_stl[
j].size() ;
i++)
57 for (
int i=0;
i<B_stl.size() ;
i++)
62 for (
int i=0;
i<B_stl.size() ;
i++){
69 for (
int j=0;
j<
N;
j++){
77 static inline void copy_matrix(
const gene_matrix & source, gene_matrix & cible,
int N){
81 static inline void copy_vector(
const gene_vector & source, gene_vector & cible,
int N){
93 static inline void atv_product(gene_matrix &
A, gene_vector &
B, gene_vector &
X,
int N){
97 static inline void axpy(
const real coef,
const gene_vector &
X, gene_vector &
Y,
int N){
Vector< real, SIZE > gene_vector
static void copy_matrix(const gene_matrix &source, gene_matrix &cible, int N)
Matrix< real, SIZE, SIZE > gene_matrix
static void free_vector(gene_vector &B)
static void vector_to_stl(gene_vector &B, stl_vector &B_stl)
static std::string name()
static void vector_from_stl(gene_vector &B, stl_vector &B_stl)
static void copy_vector(const gene_vector &source, gene_vector &cible, int N)
static void matrix_from_stl(gene_matrix &A, stl_matrix &A_stl)
EIGEN_DONT_INLINE void prod(const Lhs &a, const Rhs &b, Res &c)
static void matrix_vector_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
std::vector< real > stl_vector
static void atv_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
std::vector< stl_vector > stl_matrix
static void matrix_to_stl(gene_matrix &A, stl_matrix &A_stl)
static void free_matrix(gene_matrix &A, int N)
static void axpy(const real coef, const gene_vector &X, gene_vector &Y, int N)
static void matrix_matrix_product(const gene_matrix &A, const gene_matrix &B, gene_matrix &X, int N)