Transform (dynamic) that returns only the maximum elements from the right dimensions.
More...
#include <reduc_transformers.hpp>
|
| | argmin_transformer (sub_type expr) |
| | 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> |
| value_type | operator() (size_t i, Sizes...) const |
| | Returns the value at the given position (i, sizes...)
|
| |
| 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::argmin_transformer< T >
Transform (dynamic) that returns only the maximum elements from the right dimensions.
- Template Parameters
-
| T | The type on which the transformer is applied |
◆ argmin_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[]()
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 argmin_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: