34 template<
unsigned int dim,
unsigned int spacedim>
class FEValuesData;
46 template<>
inline double determinant(
const arma::mat::fixed<1,2> &M)
48 return sqrt(M(0,0)*M(0,0)+M(0,1)*M(0,1));
51 template<>
inline double determinant(
const arma::mat::fixed<2,1> &M)
53 return sqrt(M(0,0)*M(0,0)+M(1,0)*M(1,0));
56 template<>
inline double determinant(
const arma::mat::fixed<0,3> &M)
61 template<>
inline double determinant(
const arma::mat::fixed<3,0> &M)
66 template<>
inline double determinant(
const arma::mat::fixed<1,3> &M)
68 return sqrt(M(0,0)*M(0,0)+M(0,1)*M(0,1)+M(0,2)*M(0,2));
71 template<>
inline double determinant(
const arma::mat::fixed<3,1> &M)
73 return sqrt(M(0,0)*M(0,0)+M(1,0)*M(1,0)+M(2,0)*M(2,0));
76 template<>
inline double determinant(
const arma::mat::fixed<2,3> &M)
78 return sqrt((M(0,0)*M(0,0)+M(0,1)*M(0,1)+M(0,2)*M(0,2))*(M(1,0)*M(1,0)+M(1,1)*M(1,1)+M(1,2)*M(1,2))
79 -(M(0,0)*M(1,0)+M(0,1)*M(1,1)+M(0,2)*M(1,2))*(M(0,0)*M(1,0)+M(0,1)*M(1,1)+M(0,2)*M(1,2)));
82 template<>
inline double determinant(
const arma::mat::fixed<3,2> &M)
84 return sqrt((M(0,0)*M(0,0)+M(1,0)*M(1,0)+M(2,0)*M(2,0))*(M(0,1)*M(0,1)+M(1,1)*M(1,1)+M(2,1)*M(2,1))
85 -(M(0,0)*M(0,1)+M(1,0)*M(1,1)+M(2,0)*M(2,1))*(M(0,0)*M(0,1)+M(1,0)*M(1,1)+M(2,0)*M(2,1)));
88 template<arma::uword n>
inline double determinant(
const arma::mat::fixed<n,n> &M)
117 template<
unsigned int dim,
unsigned int spacedim>