|
Expression Templates Library (ETL)
|
View that shows one dimension of a matrix. More...
#include <dim_view.hpp>
Public Types | |
| using | sub_type = T |
| The sub type. | |
| using | value_type = value_t< sub_type > |
| The value contained in the expression. | |
| using | memory_type = memory_t< sub_type > |
| The memory acess type. | |
| using | const_memory_type = const_memory_t< sub_type > |
| The const memory access type. | |
| using | return_type = return_helper< sub_type, decltype(std::declval< sub_type >()(0, 0))> |
| The type returned by the view. | |
| using | const_return_type = const_return_helper< sub_type, decltype(std::declval< sub_type >()(0, 0))> |
| The const type return by the view. | |
Public Member Functions | |
| dim_view (sub_type sub, size_t i) | |
| Construct a new dim_view over the given sub expression. More... | |
| const_return_type | operator[] (size_t j) const |
| Returns the element at the given index. More... | |
| return_type | operator[] (size_t j) |
| Returns the element 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... | |
| const_return_type | operator() (size_t j) const |
| Returns the element at the given index. More... | |
| return_type | operator() (size_t j) |
| Returns the element at the given index. More... | |
| template<typename E > | |
| bool | alias (const E &rhs) const noexcept |
| Test if this expression aliases with the given expression. More... | |
Friends | |
| struct | etl_traits< dim_view > |
View that shows one dimension of a matrix.
| T | The type of expression on which the view is made |
| D | The dimension to show |
|
inline |
Construct a new dim_view over the given sub expression.
| sub | The sub expression |
| i | The sub index |
|
inlinenoexcept |
Test if this expression aliases with the given expression.
| rhs | The other expression to test |
|
inline |
Returns the element at the given index.
| j | The index |
|
inline |
Returns the element at the given index.
| j | The index |
|
inline |
Returns the element at the given index.
| j | The index |
|
inline |
Returns the element at the given index.
| j | The index |
|
inlinenoexcept |
Returns the value at the given index This function never has side effects.
| j | The index |
1.8.13