template<typename T>
class LinAlg::View< T >
Non-owning strided view onto a 1D segment of an array.
Provides indexed read/write access into an existing array without ownership. The stride allows views over non-contiguous memory (e.g., a column of a row-major matrix).
Used by Matrix::row_view() and Matrix::column_view().
|
| | View (T *data, std::size_t start, std::size_t size, std::size_t stride) |
| | Construct view over size elements starting at offset start, with stride.
|
| |
| std::size_t | size () const |
| | Number of elements in the view.
|
| |
| T & | operator[] (std::size_t i) |
| | [] index access (no range checking), mutable
|
| |
| T | operator[] (std::size_t i) const |
| | [] index access (no range checking), const
|
| |
| T & | at (std::size_t i) |
| | at(i): element access with range checking, mutable
|
| |
| T | at (std::size_t i) const |
| | at(i): element access with range checking, const
|
| |
| T & | operator() (std::size_t i) |
| | () index access with range checking, mutable
|
| |
| T | operator() (std::size_t i) const |
| | () index access with range checking, const
|
| |
| T * | data () |
| | Raw pointer to first viewed element.
|
| |