added const method to mat

This commit is contained in:
2025-04-11 23:57:56 +03:00
parent e08c22f604
commit 4a7a631932

View File

@@ -92,6 +92,12 @@ namespace omath
return At(row, col); return At(row, col);
} }
[[nodiscard]]
constexpr Type& operator[](const size_t row, const size_t col) const
{
return At(row, col);
}
constexpr Mat(Mat&& other) noexcept constexpr Mat(Mat&& other) noexcept
{ {
m_data = std::move(other.m_data); m_data = std::move(other.m_data);