Edit: /usr/include/boost/qvm/mat_traits_array.hpp (3562B)
//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc.
//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_QVM_FA3ED0DCA17911DEA6BBA09955D89593
#define BOOST_QVM_FA3ED0DCA17911DEA6BBA09955D89593
#include
#include
#include
#include
namespace
boost
{
namespace
qvm
{
template
struct
mat_traits
{
static int const rows=0;
static int const cols=0;
typedef void scalar_type;
};
template
struct
mat_traits
{
typedef T this_matrix[Rows][Cols];
typedef typename qvm_detail::remove_const::type scalar_type;
static int const rows=Rows;
static int const cols=Cols;
template
static
BOOST_QVM_INLINE_CRITICAL
scalar_type
read_element( this_matrix const & x )
{
BOOST_QVM_STATIC_ASSERT(Row>=0);
BOOST_QVM_STATIC_ASSERT(Row=0);
BOOST_QVM_STATIC_ASSERT(Col
static
BOOST_QVM_INLINE_CRITICAL
scalar_type &
write_element( this_matrix & x )
{
BOOST_QVM_STATIC_ASSERT(Row>=0);
BOOST_QVM_STATIC_ASSERT(Row=0);
BOOST_QVM_STATIC_ASSERT(Col=0);
BOOST_QVM_ASSERT(row=0);
BOOST_QVM_ASSERT(col=0);
BOOST_QVM_ASSERT(row=0);
BOOST_QVM_ASSERT(col
struct
deduce_mat
{
typedef mat type;
};
template
struct
deduce_mat
{
typedef mat type;
};
template
struct
deduce_mat2
{
typedef mat::type,R,C> type;
};
template
T (&ptr_mref( T * ptr ))[Rows][Cols]
{
return *reinterpret_cast(ptr);
}
}
}
#endif