diff --git a/Sofa/framework/Type/src/sofa/type/Mat.h b/Sofa/framework/Type/src/sofa/type/Mat.h index 3067a701727..33051223e7f 100644 --- a/Sofa/framework/Type/src/sofa/type/Mat.h +++ b/Sofa/framework/Type/src/sofa/type/Mat.h @@ -1298,16 +1298,14 @@ constexpr Mat tensorProduct(const Vec& a, const Vec& b template constexpr Mat operator*(const Mat& m1, const Mat& m2) noexcept { - Mat r(NOINIT); - for (Size i = 0; i r(static_cast(0)); + for (Size i = 0; i < L; ++i) { - for (Size j = 0; j