27 #include <boost/operators.hpp>
34 private boost::equality_comparable<Mat2>,
35 private boost::additive<Mat2>,
36 private boost::multiplicative2<Mat2, Real>
39 static Mat2 Identity();
69 const Real& At(std::size_t r, std::size_t c)
const
72 throw std::out_of_range(
"indices must be smaller than 2");
78 Real& At(std::size_t r, std::size_t c)
81 throw std::out_of_range(
"indices must be smaller than 2");
87 Real& operator()(std::size_t r, std::size_t c)
93 const Real& operator()(std::size_t r, std::size_t c)
const