|
| constexpr const Type * | GetData () const |
| | Returns a pointer to the underlying data of the array.
|
| |
| constexpr Type & | At (std::size_t row, std::size_t col) |
| | Accesses the element at the specified row and column.
|
| |
| constexpr const Type & | At (std::size_t row, std::size_t col) const |
| | Accesses the element at the specified row and column (const version).
|
| |
| constexpr std::size_t | GetNumberOfRows () const |
| | Gets the number of rows in the array.
|
| |
| constexpr std::size_t | GetNumberOfColumns () const |
| | Gets the number of columns in the array.
|
| |
| auto | begin () |
| | Returns an iterator to the beginning of the array.
|
| |
| auto | cbegin () const |
| | Returns a const iterator to the beginning of the array.
|
| |
| auto | end () |
| | Returns an iterator to the end of the array.
|
| |
| auto | cend () const |
| | Returns a const iterator to the end of the array.
|
| |
template<typename Type, std::size_t rows, std::size_t columns>
class peak::icv::Matrix< Type, rows, columns >
A class template for a two-dimensional matrix.
This class allows for the storage and manipulation of a 2D matrix of a specified type, number of rows, and columns.
- Template Parameters
-
| Type | The type of the elements stored in the matrix. |
| rows | The number of rows in the matrix. |
| columns | The number of columns in the matrix. |
- Since
- 1.0
Definition at line 34 of file peak_icv_matrix.hpp.
template<typename Type , std::size_t rows, std::size_t columns>
| Type & At |
( |
std::size_t | row, |
|
|
std::size_t | col ) |
|
inlineconstexprinherited |
Accesses the element at the specified row and column.
This method throws an exception if the indices are out of range.
- Parameters
-
| row | The row index of the element to access. |
| col | The column index of the element to access. |
- Returns
- A reference to the element at the specified indices.
- Exceptions
-
- Since
- 1.0
Definition at line 103 of file peak_icv_array_2d.hpp.
template<typename Type , std::size_t rows, std::size_t columns>
| const Type & At |
( |
std::size_t | row, |
|
|
std::size_t | col ) const |
|
inlineconstexprinherited |
Accesses the element at the specified row and column (const version).
This method throws an exception if the indices are out of range.
- Parameters
-
| row | The row index of the element to access. |
| col | The column index of the element to access. |
- Returns
- A const reference to the element at the specified indices.
- Exceptions
-
- Since
- 1.0
Definition at line 126 of file peak_icv_array_2d.hpp.