-
Notifications
You must be signed in to change notification settings - Fork 298
/
default_order.hpp
38 lines (32 loc) · 1.01 KB
/
default_order.hpp
1
2
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
//
// 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_BLAS_DETAIL_DEFAULT_ORDER_HPP
#define BOOST_NUMERIC_BINDINGS_BLAS_DETAIL_DEFAULT_ORDER_HPP
#include <boost/mpl/if.hpp>
#include <Core/Utils/numeric/bindings/is_row_major.hpp>
#include <Core/Utils/numeric/bindings/tag.hpp>
#include <Core/Utils/numeric/bindings/detail/property_map.hpp>
namespace boost {
namespace numeric {
namespace bindings {
namespace blas {
namespace detail {
template< typename T >
struct default_order {
typedef typename mpl::if_<
bindings::detail::is_same_at< T, tag::value_transform, tag::conjugate >,
typename mpl::if_< is_row_major< T >, tag::column_major, tag::row_major >::type,
tag::column_major
>::type type;
};
} // namespace detail
} // namespace blas
} // namespace bindings
} // namespace numeric
} // namespace boost
#endif