mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 15:33:26 +00:00
improvement
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user