18 #ifndef BLAZE_INTERFACE_HH 19 #define BLAZE_INTERFACE_HH 21 #include <blaze/Math.h> 22 #include <blaze/Blaze.h> 38 typedef blaze::DynamicMatrix<real,blaze::columnMajor>
gene_matrix;
41 static inline std::string
name() {
return "blaze"; }
52 A.resize(A_stl[0].
size(), A_stl.size());
54 for (
int j=0;
j<A_stl.size() ;
j++){
55 for (
int i=0;
i<A_stl[
j].size() ;
i++){
62 B.resize(B_stl.size());
63 for (
int i=0;
i<B_stl.size() ;
i++){
69 for (
int i=0;
i<B_stl.size() ;
i++){
76 for (
int j=0;
j<
N;
j++){
78 for (
int i=0;
i<
N;
i++){
131 static inline void copy_matrix(
const gene_matrix & source, gene_matrix & cible,
int N){
135 static inline void copy_vector(
const gene_vector & source, gene_vector & cible,
int N){
static EIGEN_DONT_INLINE void transposed_matrix_matrix_product(const gene_matrix &A, const gene_matrix &B, gene_matrix &X, int N)
static void free_vector(gene_vector &B)
static std::string name()
static void matrix_from_stl(gene_matrix &A, stl_matrix &A_stl)
static void vector_from_stl(gene_vector &B, stl_vector &B_stl)
static void vector_to_stl(gene_vector &B, stl_vector &B_stl)
std::vector< real > stl_vector
#define EIGEN_DONT_INLINE
static EIGEN_DONT_INLINE void atv_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
static void matrix_to_stl(gene_matrix &A, stl_matrix &A_stl)
static EIGEN_DONT_INLINE void aat_product(const gene_matrix &A, gene_matrix &X, int N)
static EIGEN_DONT_INLINE void matrix_vector_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
blaze::DynamicMatrix< real, blaze::columnMajor > gene_matrix
std::vector< stl_vector > stl_matrix
static void copy_matrix(const gene_matrix &source, gene_matrix &cible, int N)
static EIGEN_DONT_INLINE void axpby(real a, const gene_vector &X, real b, gene_vector &Y, int N)
static EIGEN_DONT_INLINE void matrix_matrix_product(const gene_matrix &A, const gene_matrix &B, gene_matrix &X, int N)
blaze::DynamicVector< real > gene_vector
static EIGEN_DONT_INLINE void axpy(const real coef, const gene_vector &X, gene_vector &Y, int N)
static void copy_vector(const gene_vector &source, gene_vector &cible, int N)
static EIGEN_DONT_INLINE void ata_product(const gene_matrix &A, gene_matrix &X, int N)
static void free_matrix(gene_matrix &A, int N)