Go to the documentation of this file.
9 #ifndef TENSOR_INTERFACE_HH
10 #define TENSOR_INTERFACE_HH
12 #include <unsupported/Eigen/CXX11/Tensor>
16 using namespace Eigen;
32 static inline std::string
name(
void )
44 for (
unsigned int j=0;
j<A_stl.size() ;
j++){
45 for (
unsigned int i=0;
i<A_stl[
j].size() ;
i++){
52 B.resize(B_stl.size());
54 for (
unsigned int i=0;
i<B_stl.size() ;
i++){
55 B.coeffRef(
i) = B_stl[
i];
60 for (
unsigned int i=0;
i<B_stl.size() ;
i++){
61 B_stl[
i] =
B.coeff(
i);
68 for (
int j=0;
j<
N;
j++){
70 for (
int i=0;
i<
N;
i++){
79 X =
A.contract(
B, dims);
85 X =
A.contract(
B, dims);
89 Y +=
X.constant(coef) *
X;
93 Y =
X.constant(
a)*
X +
Y.constant(
b)*
Y;
Namespace containing all symbols from the Eigen library.
Matrix< SCALARB, Dynamic, Dynamic, opt_B > B
static BTL_DONT_INLINE void vector_from_stl(gene_vector &B, stl_vector &B_stl)
std::vector< real > stl_vector
GaussianFactorGraphValuePair Y
static void free_vector(gene_vector &)
Eigen::Tensor< real, 2 >::Index Index
static std::string name(void)
Eigen::Tensor< real, 1 > gene_vector
static void matrix_matrix_product(const gene_matrix &A, const gene_matrix &B, gene_matrix &X, int)
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
static BTL_DONT_INLINE void matrix_from_stl(gene_matrix &A, stl_matrix &A_stl)
static EIGEN_DONT_INLINE void copy_matrix(const gene_matrix &source, gene_matrix &cible, int)
static EIGEN_DONT_INLINE void copy_vector(const gene_vector &source, gene_vector &cible, int)
Eigen::Tensor< real, 2 > gene_matrix
static void axpy(real coef, const gene_vector &X, gene_vector &Y, int)
#define EIGEN_MAKESTRING(a)
static BTL_DONT_INLINE void vector_to_stl(gene_vector &B, stl_vector &B_stl)
static void axpby(real a, const gene_vector &X, real b, gene_vector &Y, int)
static void matrix_vector_product(const gene_matrix &A, const gene_vector &B, gene_vector &X, int)
static void free_matrix(gene_matrix &, int)
Tensor< float, 1 >::DimensionPair DimPair
static BTL_DONT_INLINE void matrix_to_stl(gene_matrix &A, stl_matrix &A_stl)
internal::traits< Self >::Index Index
std::vector< stl_vector > stl_matrix
#define EIGEN_DONT_INLINE
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:05:25