improvement

This commit is contained in:
2025-04-11 23:20:16 +03:00
parent 3631c5d698
commit 466d8f7bec

View File

@@ -198,9 +198,7 @@ namespace omath
constexpr Mat& operator/=(const Type& f) noexcept constexpr Mat& operator/=(const Type& f) noexcept
{ {
for (size_t i = 0; i < Rows; ++i) std::ranges::for_each(m_data,[&f](auto& val) {val /= f;});
for (size_t j = 0; j < Columns; ++j)
At(i, j) /= f;
return *this; return *this;
} }