Template Struct multivariate_distribution_traits< T, std::enable_if_t< std::is_base_of_v< Eigen::EigenBase< T >, T > > >

Struct Documentation

template<class T>
struct multivariate_distribution_traits<T, std::enable_if_t<std::is_base_of_v<Eigen::EigenBase<T>, T>>>

Specialization for types derived from Eigen::EigenBase.

Public Types

using scalar_type = typename T::Scalar

The scalar type.

using result_type = typename T::PlainMatrix

The result type representation.

using vector_type = typename T::PlainMatrix

The vector type.

using covariance_type = typename Eigen::Matrix<scalar_type, matrix_size, matrix_size>

The covariance matrix type.

Public Static Functions

static inline constexpr vector_type to_vector(const result_type &t)

Convert from result to vector representation.

static inline constexpr result_type from_vector(const vector_type &v)

Convert from vector to result representation.

Public Static Attributes

static constexpr int matrix_size = T::ColsAtCompileTime > T::RowsAtCompileTime ? T::ColsAtCompileTime : T::RowsAtCompileTime

Extract size information and types from the Eigen matrix type T.