Michele De Stefano's C++ Utilities
mds_utils::ublas::is_matrix< T, typename std::enable_if< boost::mpl::and_< std::is_base_of< boost::numeric::ublas::matrix_container< T >, T >, has_storage_category< T >, std::is_same< typename T::storage_category, boost::numeric::ublas::dense_tag > >::value >::type > Struct Template Reference

Detects if a data type is a boost::numeric::ublas::matrix. More...

#include <mds_utils/ublas/traits.hpp>

Inheritance diagram for mds_utils::ublas::is_matrix< T, typename std::enable_if< boost::mpl::and_< std::is_base_of< boost::numeric::ublas::matrix_container< T >, T >, has_storage_category< T >, std::is_same< typename T::storage_category, boost::numeric::ublas::dense_tag > >::value >::type >:

Detailed Description

template<class T>
struct mds_utils::ublas::is_matrix< T, typename std::enable_if< boost::mpl::and_< std::is_base_of< boost::numeric::ublas::matrix_container< T >, T >, has_storage_category< T >, std::is_same< typename T::storage_category, boost::numeric::ublas::dense_tag > >::value >::type >

Detects if a data type is a boost::numeric::ublas::matrix.

Template Parameters
TThe data type to be tested. If T is a boost::numeric::ublas::matrix then mds_utils::is_matrix<T> inherits from std::true_type; otherwise it inherits from std::false_type.
See also
test_traits.cpp (usage example)
Author
Michele De Stefano
Date
25/05/2014

Definition at line 147 of file traits.hpp.


The documentation for this struct was generated from the following file: