|
| static constexpr size_t | size () noexcept |
| | Returns the size of the matrix, in O(1) More...
|
| |
| static constexpr size_t | rows () noexcept |
| | Returns the number of rows of the matrix (the first dimension), in O(1) More...
|
| |
| static constexpr size_t | columns () noexcept requires(n_dimensions > 1) |
| | Returns the number of columns of the matrix (the second dimension), in O(1) More...
|
| |
| static constexpr size_t | dimensions () noexcept |
| | Returns the number of dimensions of the matrix. More...
|
| |
| template<size_t DD> |
| static constexpr size_t | dim () noexcept |
| | Returns the Dth dimension of the matrix. More...
|
| |
|
|
static constexpr size_t | n_dimensions = sizeof...(Dims) |
| | The number of dimensions.
|
| |
|
static constexpr size_t | etl_size = (Dims * ...) |
| | The size of the matrix.
|
| |
|
|
void | init () |
| | Init the container if necessary.
|
| |
| template<typename... S> |
| value_type & | access (S... args) |
| | Return the value at the given indices. More...
|
| |
| template<typename... S> |
| const value_type & | access (S... args) const |
| | Return the value at the given indices. More...
|
| |
|
| template<typename... S> |
| static constexpr size_t | index (S... args) |
| | Compute the 1D index from the given indices. More...
|
| |
◆ fast_matrix_base() [1/3]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
◆ fast_matrix_base() [2/3]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
◆ fast_matrix_base() [3/3]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
◆ access() [1/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
template<typename... S>
Return the value at the given indices.
- Parameters
-
- Returns
- The value at the given indices
◆ access() [2/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
template<typename... S>
Return the value at the given indices.
- Parameters
-
- Returns
- The value at the given indices
◆ columns()
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns the number of columns of the matrix (the second dimension), in O(1)
- Returns
- The number of columns of the matrix
◆ dim() [1/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
template<size_t DD>
Returns the Dth dimension of the matrix.
- Returns
- The Dth dimension of the matrix
◆ dim() [2/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns the dth dimension of the matrix.
- Parameters
-
- Returns
- The Dth dimension of the matrix
◆ dimensions()
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns the number of dimensions of the matrix.
- Returns
- the number of dimensions of the matrix
◆ index()
template<typename D, typename T, typename ST, order SO, size_t... Dims>
template<typename... S>
Compute the 1D index from the given indices.
- Parameters
-
- Returns
- The 1D index inside the storage container
◆ memory_end() [1/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns a pointer to the past-the-end element in memory.
- Returns
- a pointer tot the past-the-end element in memory.
◆ memory_end() [2/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns a pointer to the past-the-end element in memory.
- Returns
- a pointer tot the past-the-end element in memory.
◆ memory_start() [1/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns a pointer to the first element in memory.
- Returns
- a pointer tot the first element in memory.
◆ memory_start() [2/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns a pointer to the first element in memory.
- Returns
- a pointer tot the first element in memory.
◆ operator()() [1/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Creates a sub view of the matrix, effectively removing the first dimension and fixing it to the given index.
- Parameters
-
- Returns
- a sub view of the matrix at position i.
◆ operator()() [2/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Creates a sub view of the matrix, effectively removing the first dimension and fixing it to the given index.
- Parameters
-
- Returns
- a sub view of the matrix at position i.
◆ rows()
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns the number of rows of the matrix (the first dimension), in O(1)
- Returns
- The number of rows of the matrix
◆ size()
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Returns the size of the matrix, in O(1)
- Returns
- The size of the matrix
◆ slice() [1/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Creates a slice view of the matrix, effectively reducing the first dimension.
- Parameters
-
| first | The first index to use |
| last | The last index to use |
- Returns
- a slice view of the matrix at position i.
◆ slice() [2/2]
template<typename D, typename T, typename ST, order SO, size_t... Dims>
Creates a slice view of the matrix, effectively reducing the first dimension.
- Parameters
-
| first | The first index to use |
| last | The last index to use |
- Returns
- a slice view of the matrix at position i.
The documentation for this struct was generated from the following file: