diff --git a/Sofa/framework/Type/src/sofa/type/Mat.h b/Sofa/framework/Type/src/sofa/type/Mat.h index 28609dcd6bb0..06262ce7e62f 100644 --- a/Sofa/framework/Type/src/sofa/type/Mat.h +++ b/Sofa/framework/Type/src/sofa/type/Mat.h @@ -203,20 +203,20 @@ class Mat : public fixed_array, L> } /// Assignment from another matrix - template + template constexpr void operator=(const Mat& m) noexcept { std::copy(m.begin(), m.begin()+L, this->begin()); } /// Assignment from a matrix of different size. - template + template constexpr void operator=(const Mat& m) noexcept { std::copy(m.begin(), m.begin()+(L>L2?L2:L), this->begin()); } - template + template constexpr void getsub(Size L0, Size C0, Mat& m) const noexcept { for (Size i=0; i, L> m[i][j] = this->elems[i+L0][j+C0]; } - template + template constexpr void setsub(Size L0, Size C0, const Mat& m) noexcept { for (Size i=0; i, L> this->elems[i+L0][j+C0] = m[i][j]; } - template + template constexpr void setsub(Size L0, Size C0, const Vec& v) noexcept { assert( C0 { public: constexpr MatNoInit() noexcept - : Mat(NOINIT) + : Mat(NOINIT) { } @@ -819,7 +819,7 @@ class MatNoInit : public Mat } /// Assignment from another matrix - template + template constexpr void operator=(const Mat& m) noexcept { this->Mat::operator=(m); @@ -895,7 +895,7 @@ template constexpr real trace(const Mat& m) noexcept { real t = m[0][0]; - for(sofa::Size i=1 ; i constexpr Vec diagonal(const Mat& m) { Vec v(NOINIT); - for(sofa::Size i=0 ; i