diff --git a/src/algebra/TinyMatrix.hpp b/src/algebra/TinyMatrix.hpp index faf177c5e19c5e86e1694904a806d963655598d9..2dde6fc1ac9d72a298b4157d0388fe3045103f16 100644 --- a/src/algebra/TinyMatrix.hpp +++ b/src/algebra/TinyMatrix.hpp @@ -296,7 +296,7 @@ template <size_t N, typename T> PASTIS_INLINE constexpr T det(const TinyMatrix<N,T>& A) { - static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non-arithmetic types"); static_assert(std::is_floating_point<T>::value, "determinent for arbitrary dimension N is defined for floating point types only"); TinyMatrix<N,T> M = A; @@ -340,7 +340,7 @@ template <typename T> PASTIS_INLINE constexpr T det(const TinyMatrix<1,T>& A) { - static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non-arithmetic types"); return A(0,0); } @@ -348,7 +348,7 @@ template <typename T> PASTIS_INLINE constexpr T det(const TinyMatrix<2,T>& A) { - static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non-arithmetic types"); return A(0,0)*A(1,1)-A(1,0)*A(0,1); } @@ -356,7 +356,7 @@ template <typename T> PASTIS_INLINE constexpr T det(const TinyMatrix<3,T>& A) { - static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "determinent is not defined for non-arithmetic types"); return A(0,0)*(A(1,1)*A(2,2)-A(2,1)*A(1,2)) -A(1,0)*(A(0,1)*A(2,2)-A(2,1)*A(0,2)) @@ -399,7 +399,7 @@ template <typename T> PASTIS_INLINE constexpr TinyMatrix<1,T> inverse(const TinyMatrix<1,T>& A) { - static_assert(std::is_arithmetic<T>::value, "inverse is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "inverse is not defined for non-arithmetic types"); static_assert(std::is_floating_point<T>::value, "inverse is defined for floating point types only"); TinyMatrix<1,T> A_1(1./A(0,0)); @@ -412,7 +412,7 @@ constexpr T cofactor(const TinyMatrix<N,T>& A, const size_t& i, const size_t& j) { - static_assert(std::is_arithmetic<T>::value, "cofactor is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "cofactor is not defined for non-arithmetic types"); const T sign = ((i+j)%2) ? -1 : 1; return sign * det(getMinor(A, i, j)); @@ -422,7 +422,7 @@ template <typename T> PASTIS_INLINE constexpr TinyMatrix<2,T> inverse(const TinyMatrix<2,T>& A) { - static_assert(std::is_arithmetic<T>::value, "inverse is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "inverse is not defined for non-arithmetic types"); static_assert(std::is_floating_point<T>::value, "inverse is defined for floating point types only"); const T determinent = det(A); @@ -438,7 +438,7 @@ template <typename T> PASTIS_INLINE constexpr TinyMatrix<3,T> inverse(const TinyMatrix<3,T>& A) { - static_assert(std::is_arithmetic<T>::value, "inverse is not defined for non arithmetic types"); + static_assert(std::is_arithmetic<T>::value, "inverse is not defined for non-arithmetic types"); static_assert(std::is_floating_point<T>::value, "inverse is defined for floating point types only"); const T determinent = det(A);