|
|
static constexpr index_t | COLDIM = N |
| | Column dimension template parameter.
|
| |
|
static constexpr index_t | ROWDIM = M |
| | Row dimension template parameter.
|
| |
◆ begin() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
- Returns
- A writeable, random-access, row-major iterator over the elements of this matrix, pointing to the element at (0,0).
◆ begin() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
- Returns
- A read-only random-access row major-ordered iterator over the elements of this matrix, pointing to the element at (0,0).
◆ col() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| i | Index of column (zero-indexed) |
- Returns
- A writeable iterator over the elements of column
i.
◆ col() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| i | Index of column (zero-indexed) |
- Returns
- A const iterator over the elements of column
i
◆ cols()
template<typename T, index_t M, index_t N, typename Derived>
- Returns
- Number of columns in the matrix.
◆ end() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
- Returns
- A writeable, random-access, row-major iterator over the elements of this matrix, pointing to the element just beyond the last element in the lower right corner.
◆ end() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
- Returns
- A read-only random-access row major-ordered iterator over the elements of this matrix, pointing to the element just beyond the last element in the lower right corner.
◆ operator()() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
Get the element at (row, col).
- Parameters
-
| row | Zero-indexed row coordinate |
| col | Zero-indexed column coordinate |
- Returns
- A reference to the element at
(row, col)
◆ operator()() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
| elem_t operator() |
( |
index_t | row, |
|
|
index_t | col ) const |
|
inline |
Get the element at (row, col).
- Parameters
-
| row | Zero-indexed row coordinate |
| col | Zero-indexed column coordinate |
- Returns
- The element at
(row, col)
◆ operator[]() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| i | Index of row (zero-indexed) |
- Returns
- A writeable iterator over the elements of row
i.
◆ operator[]() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| i | Index of row (zero-indexed) |
- Returns
- A const iterator over the elements of row
i
◆ region_begin() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| r | The zero-indexed region to iterate over. The upper extreme coordinates represent the index just beyond the last element to be iterated over. |
- Returns
- A writeable, random-access, row-major iterator over the elements in region
r, pointing at the first element in the region (upper left corner).
◆ region_begin() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| r | The zero-indexed region to iterate over. The upper extreme coordinates represent the index just beyond the last element to be iterated over. |
- Returns
- A read-only, random-access, row-major iterator over the elements in region
r, pointing at the first element in the region (upper left corner).
◆ region_end() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| r | The zero-indexed region to iterate over. The upper extreme coordinates represent the index just beyond the last element to be iterated over. |
- Returns
- A writeable, random-access, row-major iterator over the elements in region
r, pointing at the element just beyond the last element in the region.
◆ region_end() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| r | The zero-indexed region to iterate over. The upper extreme coordinates represent the index just beyond the last element to be iterated over. |
- Returns
- A read-only, random-access, row-major iterator over the elements in region
r, pointing at the element just beyond the last element in the region.
◆ row() [1/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| i | Index of row (zero-indexed) |
- Returns
- A writeable iterator over the elements of row
i.
◆ row() [2/2]
template<typename T, index_t M, index_t N, typename Derived>
- Parameters
-
| i | Index of row (zero-indexed) |
- Returns
- A const iterator over the elements of row
i
◆ rows()
template<typename T, index_t M, index_t N, typename Derived>
- Returns
- Number of rows in the matrix.
◆ set()
template<typename T, index_t M, index_t N, typename Derived>
Set the element at (row, col) to val.
- Parameters
-
| row | Zero-indexed row coordinate |
| col | Zero-indexed column coordinate |
| val | New value of element at (row, col) |
- Returns
- A reference to the element at
(row, col), for convenience.
The documentation for this class was generated from the following file: