1 #ifndef TIL_SYMMATRIX3_H 2 #define TIL_SYMMATRIX3_H 13 #pragma warning (push) 14 #pragma warning (disable : 4231) // nonstandard extension used : 'extern' before template explicit instantiation 22 template <
typename T >
63 {
return ValueProxy(i,j,*
this); }
67 void set(
const std::pair<std::size_t, std::size_t> & i, T value)
73 T
get(
const std::pair<std::size_t, std::size_t> & i)
77 template <
typename T>
85 Base(
std::make_pair(i,j), m)
88 void operator=(
typename boost::call_traits<value_type>::param_type value)
90 this->Base::operator=(value);
SymMatrix3(T xx, T xy, T xz, T yy, T yz, T zz)
Initialize with elements.
const T & operator()(std::size_t i, std::size_t j) const
Adds some left-value operations to const_value_proxy.
A class to store a 3*3 symetric matrix.
Belongs to package Box Do not include directly, include til/Box.h instead.
General macros, definitions and functions.
SymMatrix3()
Empty matrix full of zeros.
This file contains forward declarations of classes defined in the TIL library.
A type used in some construtors to disable initialization.
ValueProxy operator()(std::size_t i, std::size_t j)
get non-const access to value at position (i,j).
T operator()(std::size_t i, std::size_t j) const
get value at position (i,j).
Base::value_type value_type
value_proxy< SymMatrix3< T >, std::pair< std::size_t, std::size_t > > Base
Base::value_type value_type
SymMatrix3(NoInit)
No initialization.
void operator=(typename boost::call_traits< value_type >::param_type value)
ValueProxy(std::size_t i, std::size_t j, SymMatrix3< T > &m)