Go to the documentation of this file.
21 #ifndef BLITZ_INTERFACE_HH
22 #define BLITZ_INTERFACE_HH
24 #include <blitz/blitz.h>
25 #include <blitz/array.h>
26 #include <blitz/vector-et.h>
27 #include <blitz/vecwhere.h>
28 #include <blitz/matrix.h>
31 BZ_USING_NAMESPACE(blitz)
48 static inline std::string
name() {
return "blitz"; }
55 A.resize(A_stl[0].
size(),A_stl.size());
56 for (
int j=0;
j<A_stl.size() ;
j++){
57 for (
int i=0;
i<A_stl[
j].size() ;
i++){
64 B.resize(B_stl.size());
65 for (
int i=0;
i<B_stl.size() ;
i++){
71 for (
int i=0;
i<B_stl.size() ;
i++){
78 for (
int j=0;
j<
N;
j++){
90 X = sum(
A(
i,k) *
B(k,
j), k);
98 X = sum(
A(k,
i) *
A(k,
j), k);
106 X = sum(
A(
i,k) *
A(
j,k), k);
126 Y =
Y(
i) + coef *
X(
i);
static void free_matrix(gene_matrix &A, int N)
GaussianFactorGraphValuePair Y
blitz::Array< real, 1 > gene_vector
static void matrix_to_stl(gene_matrix &A, stl_matrix &A_stl)
static void copy_matrix(const gene_matrix &source, gene_matrix &cible, int N)
static void ata_product(const gene_matrix &A, gene_matrix &X, int N)
static void aat_product(const gene_matrix &A, gene_matrix &X, int N)
static void atv_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
static void free_vector(gene_vector &B)
static void copy_vector(const gene_vector &source, gene_vector &cible, int N)
static void vector_to_stl(gene_vector &B, stl_vector &B_stl)
std::vector< stl_vector > stl_matrix
static void matrix_vector_product(gene_matrix &A, gene_vector &B, gene_vector &X, int N)
static void vector_from_stl(gene_vector &B, stl_vector &B_stl)
static void axpy(const real coef, const gene_vector &X, gene_vector &Y, int N)
static void matrix_from_stl(gene_matrix &A, stl_matrix &A_stl)
static std::string name()
static void matrix_matrix_product(const gene_matrix &A, const gene_matrix &B, gene_matrix &X, int N)
blitz::Array< real, 2 > gene_matrix
std::vector< real > stl_vector
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:01:56