Transform (dynamic) that flips a matrix horizontally.
More...
#include <flip_transformers.hpp>
|
|
friend | etl_traits< hflip_transformer > |
| |
|
|
static constexpr bool | gpu_computable = false |
| |
|
static constexpr bool | matrix = is_2d<sub_type> |
| | INdicates if the sub type is a matrix or not.
|
| |
template<typename T>
struct etl::hflip_transformer< T >
Transform (dynamic) that flips a matrix horizontally.
- Template Parameters
-
| T | The type on which the transformer is applied |
◆ hflip_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()() [1/2]
Access to the value at the given (i) position.
- Parameters
-
- Returns
- The value at the position (i)
◆ 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[]()
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 hflip_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: