DiSMEC++
type_helpers.h File Reference
#include <Eigen/Core>
#include <Eigen/SparseCore>

Go to the source code of this file.

Namespaces

 dismec
 Main namespace in which all types, classes, and functions are defined.
 
 dismec::types
 
 dismec::types::type_helpers
 
 dismec::types::type_helpers::definitions
 

Typedefs

template<class T , template< class U > typename V>
using dismec::types::type_helpers::outer_const = std::conditional_t< std::is_const_v< T >, const V< std::remove_const_t< T > >, V< T > >
 
template<class T >
using dismec::types::type_helpers::dense_vector_h = Eigen::Matrix< T, Eigen::Dynamic, 1 >
 
template<class T >
using dismec::types::type_helpers::sparse_vector_h = Eigen::SparseVector< T >
 
template<class T >
using dismec::types::type_helpers::dense_row_major_h = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >
 
template<class T >
using dismec::types::type_helpers::dense_col_major_h = Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor >
 
template<class T >
using dismec::types::type_helpers::sparse_row_major_h = Eigen::SparseMatrix< T, Eigen::RowMajor >
 
template<class T >
using dismec::types::type_helpers::sparse_col_major_h = Eigen::SparseMatrix< T, Eigen::ColMajor >
 
template<class T >
using dismec::types::type_helpers::definitions::DenseVector = outer_const< T, dense_vector_h >
 
template<class T >
using dismec::types::type_helpers::definitions::SparseVector = outer_const< T, sparse_vector_h >
 
template<class T >
using dismec::types::type_helpers::definitions::DenseRowMajor = outer_const< T, dense_row_major_h >
 
template<class T >
using dismec::types::type_helpers::definitions::DenseColMajor = outer_const< T, dense_col_major_h >
 
template<class T >
using dismec::types::type_helpers::definitions::SparseRowMajor = outer_const< T, sparse_row_major_h >
 
template<class T >
using dismec::types::type_helpers::definitions::SparseColMajor = outer_const< T, sparse_col_major_h >