4 #include <gsl/gsl_randist.h> 5 #include <unsupported/Eigen/CXX11/Tensor> 14 #define BNMF_ASSERT(condition, msg) \ 16 throw std::invalid_argument(msg) 19 #define BNMF_ASSERT(condition, msg) (assert((condition) && msg)) 26 template <
typename Scalar>
27 using vector_t = Eigen::Matrix<Scalar, 1, Eigen::Dynamic, Eigen::RowMajor>;
39 template <
typename Scalar>
41 Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>;
51 template <
typename Scalar,
size_t N>
52 using tensor_t = Eigen::Tensor<Scalar, N, Eigen::RowMajor>;
66 template <
size_t N>
using shape = Eigen::array<size_t, N>;
Eigen::Tensor< Scalar, N, Eigen::RowMajor > tensor_t
Tensor type used in the computations.
Definition: defs.hpp:52
Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > matrix_t
Matrix type used in the computations.
Definition: defs.hpp:41
matrix_t< double > matrixd
Matrix type specialization using double as Scalar value.
Definition: defs.hpp:46
Eigen::array< size_t, N > shape
Shape of vectors, matrices, tensors, etc.
Definition: defs.hpp:66
vector_t< double > vectord
Vector type specialization using double as Scalar value.
Definition: defs.hpp:32
tensor_t< double, N > tensord
Tensor type specialization using double as Scalar value.
Definition: defs.hpp:57
Eigen::Matrix< Scalar, 1, Eigen::Dynamic, Eigen::RowMajor > vector_t
Vector type used in the computations.
Definition: defs.hpp:27
Main namespace for bnmf-algs library.
Definition: alloc_model_funcs.hpp:12