2 #ifndef BTL_C_INTERFACE_BASE_H 3 #define BTL_C_INTERFACE_BASE_H 33 A[
i+N*
j] = A_stl[
j][
i];
51 for (
int j=0;
j<
N;
j++){
54 A_stl[
j][
i] = A[
i+N*
j];
58 static inline void copy_vector(
const gene_vector & source, gene_vector & cible,
int N){
63 static inline void copy_matrix(
const gene_matrix & source, gene_matrix & cible,
int N){
64 for (
int j=0;
j<
N;
j++){
65 for (
int i=0;
i<
N;
i++){
66 cible[
i+N*
j] = source[
i+N*
j];
std::vector< real > stl_vector
std::vector< stl_vector > stl_matrix
static void matrix_to_stl(gene_matrix &A, stl_matrix &A_stl)
static void copy_vector(const gene_vector &source, gene_vector &cible, int N)
static void copy_matrix(const gene_matrix &source, gene_matrix &cible, int N)
static void free_matrix(gene_matrix &A, int)
static void free_vector(gene_vector &B)
static void matrix_from_stl(gene_matrix &A, stl_matrix &A_stl)
static void vector_to_stl(gene_vector &B, stl_vector &B_stl)
static void vector_from_stl(gene_vector &B, stl_vector &B_stl)