Abstract repeat Transformer that repeats the expression to the right.
More...
#include <rep_transformers.hpp>
|
| | rep_transformer (sub_type expr) |
| | Construct a new transformer around the given expression. More...
|
| |
| template<typename... Sizes> |
| value_type | operator() (Sizes... args) const |
| | Access to the value at the given (args...) position. More...
|
| |
| template<typename E > |
| bool | alias (const E &rhs) const noexcept |
| | Test if this expression aliases with the given expression. More...
|
| |
| template<typename V > |
| void | visit (V &&visitor) const |
| | Apply the given visitor to this expression and its descendants. More...
|
| |
|
void | ensure_cpu_up_to_date () const |
| | Ensures that the GPU memory is allocated and that the GPU memory is up to date (to undefined value).
|
| |
|
void | ensure_gpu_up_to_date () const |
| | Copy back from the GPU to the expression memory if necessary.
|
| |
|
|
static constexpr bool | gpu_computable = false |
| |
template<typename T, typename D>
struct etl::rep_transformer< T, D >
Abstract repeat Transformer that repeats the expression to the right.
- Template Parameters
-
| T | The type on which the transformer is applied |
◆ rep_transformer()
template<typename T, typename D>
Construct a new transformer around the given expression.
- Parameters
-
◆ alias()
template<typename T, typename D>
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()()
template<typename T, typename D>
template<typename... Sizes>
Access to the value at the given (args...) position.
- Parameters
-
- Returns
- The value at the position (args...)
◆ visit()
template<typename T, typename D>
template<typename V >
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: