Transform (dynamic) that averages the expression from the left, effectively removing the left dimension.
More...
#include <reduc_transformers.hpp>
|
| | mean_l_transformer (sub_type expr) |
| | Construct a new transformer around the given expression. More...
|
| |
| value_type | operator[] (size_t j) const |
| | Returns the value at the given index. More...
|
| |
| value_type | read_flat (size_t j) const noexcept |
| | Returns the value at the given index This function never has side effects. More...
|
| |
| template<typename... Sizes> |
| value_type | operator() (size_t j, Sizes... sizes) const |
| | Access to the value at the given (j, sizes...) 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>
struct etl::mean_l_transformer< T >
Transform (dynamic) that averages the expression from the left, effectively removing the left dimension.
- Template Parameters
-
| T | The type on which the transformer is applied |
◆ mean_l_transformer()
Construct a new transformer around the given expression.
- Parameters
-
◆ alias()
template<typename T >
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 >
template<typename... Sizes>
Access to the value at the given (j, sizes...) position.
- Parameters
-
| j | The first index |
| sizes | The remaining indices |
- Returns
- The value at the position (j, sizes...)
◆ operator[]()
Returns the value at the given index.
- Parameters
-
- Returns
- the value 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 T >
template<typename V >
Apply the given visitor to this expression and its descendants.
- Parameters
-
| visitor | The visitor to apply |
◆ operator<<
template<typename T >
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const mean_l_transformer< T > & |
transformer |
|
) |
| |
|
friend |
Display the transformer on the given stream.
- Parameters
-
| os | The output stream |
| transformer | The transformer to print |
- Returns
- the output stream
The documentation for this struct was generated from the following file: