diff options
| -rw-r--r-- | prelude/slang-cpp-types-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/prelude/slang-cpp-types-core.h b/prelude/slang-cpp-types-core.h index 6c0bb7544..1f8f5bd80 100644 --- a/prelude/slang-cpp-types-core.h +++ b/prelude/slang-cpp-types-core.h @@ -392,6 +392,7 @@ template<typename T, int ROWS, int COLS> struct Matrix { Vector<T, COLS> rows[ROWS]; + const Vector<T, COLS>& operator[](size_t index) const { return rows[index]; } Vector<T, COLS>& operator[](size_t index) { return rows[index]; } Matrix() = default; Matrix(T scalar) |
