A view (virtual) of a dynamic magic matrix.
More...
#include <virtual_views.hpp>
|
|
using | value_type = V |
| | The value type in the matrix.
|
| |
|
|
const size_t | n |
| | The dimensions of the magic matrix.
|
| |
|
|
static constexpr bool | gpu_computable = false |
| |
template<typename V>
struct etl::magic_view< V >
A view (virtual) of a dynamic magic matrix.
◆ alias()
template<typename V >
template<typename E >
Test if this expression aliases with the given expression.
- Parameters
-
| rhs | The other expression to test |
- Returns
- true if the two expressions aliases, false otherwise
◆ operator()() [1/2]
Access to the value at the given (i, j) position.
- Parameters
-
| i | The first index |
| j | The second index |
- Returns
- The value at the position (i, j)
◆ operator()() [2/2]
Access to the value at the given (i, j) position.
- Parameters
-
| i | The first index |
| j | The second index |
- Returns
- The value at the position (i, j)
◆ operator[]() [1/2]
Returns the element at the given index.
- Parameters
-
- Returns
- a reference to the element at the given index.
◆ operator[]() [2/2]
Returns the element at the given index.
- Parameters
-
- Returns
- a reference to the element at the given index.
◆ read_flat()
Returns the value at the given index This function never has side effects.
- Parameters
-
- Returns
- the value at the given index.
◆ visit()
template<typename V >
template<typename Visitor >
| void etl::magic_view< V >::visit |
( |
[[maybe_unused] ] Visitor && |
visitor | ) |
const |
|
inline |
Apply the given visitor to this expression and its descendants.
- Parameters
-
| visitor | The visitor to apply |
The documentation for this struct was generated from the following file: