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