20 #ifndef TINY_BLITZ_INTERFACE_HH 21 #define TINY_BLITZ_INTERFACE_HH 23 #include "blitz/array.h" 24 #include "blitz/tiny.h" 25 #include "blitz/tinymat.h" 26 #include "blitz/tinyvec.h" 27 #include <blitz/tinyvec-et.h> 31 BZ_USING_NAMESPACE(blitz)
33 template<
class real,
int SIZE>
47 static inline std::string
name() {
return "tiny_blitz"; }
54 for (
int j=0;
j<A_stl.size() ;
j++)
55 for (
int i=0;
i<A_stl[
j].size() ;
i++)
60 for (
int i=0;
i<B_stl.size() ;
i++)
65 for (
int i=0;
i<B_stl.size() ;
i++)
79 static inline void copy_matrix(
const gene_matrix & source, gene_matrix & cible,
int N){
82 cible(
i,
j) = source(
i,
j);
85 static inline void copy_vector(
const gene_vector & source, gene_vector & cible,
int N){
86 for (
int i=0;
i<
N;
i++){
99 static 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 std::string name()
static void matrix_from_stl(gene_matrix &A, stl_matrix &A_stl)
static void 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)
std::vector< real > stl_vector
TinyMatrix< real, SIZE, SIZE > gene_matrix
static void vector_from_stl(gene_vector &B, stl_vector &B_stl)
static void free_matrix(gene_matrix &A, int N)
static void matrix_vector_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
static void copy_matrix(const gene_matrix &source, gene_matrix &cible, int N)
static void vector_to_stl(gene_vector &B, stl_vector &B_stl)
std::vector< stl_vector > stl_matrix
TinyVector< real, SIZE > gene_vector
static void axpy(const real coef, const gene_vector &X, gene_vector &Y, int N)
static void free_vector(gene_vector &B)
void product(const MatrixType &m)