| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 
 | //
// Copyright (c) 2009 Rutger ter Borg
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NUMERIC_BINDINGS_UBLAS_DETAIL_CONVERT_TO_HPP
#define BOOST_NUMERIC_BINDINGS_UBLAS_DETAIL_CONVERT_TO_HPP
#include <boost/numeric/bindings/detail/convert_to.hpp>
#include <boost/numeric/bindings/tag.hpp>
#include <boost/numeric/ublas/fwd.hpp>
namespace boost {
namespace numeric {
namespace bindings {
namespace detail {
template<>
struct convert_to< tag::data_order, ublas::row_major > {
    typedef tag::row_major type;
};
template<>
struct convert_to< tag::data_order, ublas::column_major > {
    typedef tag::column_major type;
};
template<>
struct convert_to< tag::matrix_type, ublas::lower > {
    typedef tag::triangular type;
};
template<>
struct convert_to< tag::matrix_type, ublas::upper > {
    typedef tag::triangular type;
};
template<>
struct convert_to< tag::matrix_type, ublas::unit_lower > {
    typedef tag::unit_triangular type;
};
template<>
struct convert_to< tag::matrix_type, ublas::unit_upper > {
    typedef tag::unit_triangular type;
};
template<>
struct convert_to< tag::data_side, ublas::lower > {
    typedef tag::lower type;
};
template<>
struct convert_to< tag::data_side, ublas::upper > {
    typedef tag::upper type;
};
template<>
struct convert_to< tag::data_side, ublas::unit_lower > {
    typedef tag::lower type;
};
template<>
struct convert_to< tag::data_side, ublas::unit_upper > {
    typedef tag::upper type;
};
} // namespace detail
} // namespace bindings
} // namespace numeric
} // namespace boost
#endif
 |