18 #ifndef BLAZE_INTERFACE_HH 19 #define BLAZE_INTERFACE_HH 21 #include <blaze/Math.h> 22 #include <blaze/Blaze.h> 37 typedef blaze::DynamicMatrix<real,blaze::columnMajor>
gene_matrix;
40 static inline std::string
name() {
return "blaze"; }
51 A.resize(A_stl[0].
size(), A_stl.size());
53 for (
int j=0;
j<A_stl.size() ;
j++){
54 for (
int i=0;
i<A_stl[
j].size() ;
i++){
61 B.resize(B_stl.size());
62 for (
int i=0;
i<B_stl.size() ;
i++){
68 for (
int i=0;
i<B_stl.size() ;
i++){
75 for (
int j=0;
j<
N;
j++){
77 for (
int i=0;
i<
N;
i++){
91 static inline void ata_product(
const gene_matrix &
A, gene_matrix &
X,
int N){
95 static inline void aat_product(
const gene_matrix &
A, gene_matrix &
X,
int N){
103 static inline void atv_product(gene_matrix &
A, gene_vector &
B, gene_vector &
X,
int N){
107 static inline void axpy(
const real coef,
const gene_vector &
X, gene_vector &
Y,
int N){
130 static inline void copy_matrix(
const gene_matrix & source, gene_matrix & cible,
int N){
134 static inline void copy_vector(
const gene_vector & source, gene_vector & cible,
int N){
static void free_vector(gene_vector &B)
static std::string name()
static void matrix_vector_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
static void axpby(real a, const gene_vector &X, real b, gene_vector &Y, int N)
static void aat_product(const gene_matrix &A, gene_matrix &X, int N)
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
static void transposed_matrix_matrix_product(const gene_matrix &A, const gene_matrix &B, gene_matrix &X, int N)
static void matrix_to_stl(gene_matrix &A, stl_matrix &A_stl)
static void ata_product(const gene_matrix &A, gene_matrix &X, int N)
blaze::DynamicMatrix< real, blaze::columnMajor > gene_matrix
static void atv_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
std::vector< stl_vector > stl_matrix
static void copy_matrix(const gene_matrix &source, gene_matrix &cible, int N)
static void matrix_matrix_product(const gene_matrix &A, const gene_matrix &B, gene_matrix &X, int N)
blaze::DynamicVector< real > gene_vector
static void copy_vector(const gene_vector &source, gene_vector &cible, int N)
static void axpy(const real coef, const gene_vector &X, gene_vector &Y, int N)
static void free_matrix(gene_matrix &A, int N)