This is an example on how to use the following classes:
- mds_utils::ublas::is_vector
- mds_utils::ublas::is_matrix
- mds_utils::ublas::is_compressed_matrix,
Shows also how to use the MDS_UTILS_ECHO_RESULT macro.
- Author
- Michele De Stefano
- Date
- 25/05/2014
#include <iostream>
struct A {
class A_tag {};
};
int main() {
std::cout << std::boolalpha;
std::cout << endl;
MDS_UTILS_ECHO_RESULT(mds_utils::ublas::is_matrix<boost::numeric::ublas::compressed_matrix<double> >::value);
std::cout << endl;
MDS_UTILS_ECHO_RESULT(mds_utils::ublas::is_compressed_matrix<boost::numeric::ublas::compressed_matrix<double> >::value);
MDS_UTILS_ECHO_RESULT(mds_utils::ublas::is_compressed_matrix<boost::numeric::ublas::matrix<double> >::value);
return EXIT_SUCCESS;
}