|
Expression Templates Library (ETL)
|
Transform (dynamic) that repeats the expression to the left. More...
#include <rep_transformers.hpp>


Public Types | |
| using | this_type = dyn_rep_l_transformer< T, D > |
| This type. | |
| using | base_type = rep_transformer< T, this_type > |
| The base type. | |
| using | sub_type = typename base_type::sub_type |
| The type on which the expression works. | |
| using | value_type = typename base_type::value_type |
| The type of value. | |
Public Types inherited from etl::rep_transformer< T, dyn_rep_l_transformer< T, D > > | |
| using | derived_t = dyn_rep_l_transformer< T, D > |
| The derived type. | |
| using | sub_type = T |
| The type on which the expression works. | |
| using | value_type = value_t< T > |
| The type of valuie. | |
Public Member Functions | |
| dyn_rep_l_transformer (sub_type expr, std::array< size_t, D > reps_a) | |
| Construct a new transformer around the given expression. More... | |
| value_type | operator[] (size_t i) const |
| Returns the value at the given index. More... | |
| value_type | read_flat (size_t i) const |
| Returns the value at the given index This function never has side effects. More... | |
| template<typename... Sizes, size_t... I> | |
| value_type | selected_only (const std::index_sequence< I... > &, Sizes... sizes) const |
| Returns the value at the given indices inside the range. | |
Public Member Functions inherited from etl::rep_transformer< T, dyn_rep_l_transformer< T, D > > | |
| rep_transformer (sub_type expr) | |
| Construct a new transformer around the given expression. More... | |
| value_type | operator() (Sizes... args) const |
| Access to the value at the given (args...) position. More... | |
| bool | alias (const E &rhs) const noexcept |
| Test if this expression aliases with the given expression. More... | |
| 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 Public Attributes | |
| static constexpr bool | gpu_computable = false |
Static Public Attributes inherited from etl::rep_transformer< T, dyn_rep_l_transformer< T, D > > | |
| static constexpr bool | gpu_computable |
Friends | |
| struct | rep_transformer< T, dyn_rep_l_transformer > |
| struct | etl_traits< dyn_rep_l_transformer > |
Additional Inherited Members | |
Protected Attributes inherited from etl::rep_transformer< T, dyn_rep_l_transformer< T, D > > | |
| sub_type | sub |
| The subexpression. | |
Transform (dynamic) that repeats the expression to the left.
| T | The type on which the transformer is applied |
| D | The number of new dimensions |
|
inline |
Construct a new transformer around the given expression.
| expr | The sub expression |
| reps_a | The repeated dimensions |
|
inline |
Returns the value at the given index.
| i | The index |
|
inline |
Returns the value at the given index This function never has side effects.
| i | The index |
1.8.13