|
|
constexpr | scalar (T v) |
| | Builds a new scalar \þaram v The scalar value.
|
| |
|
template<std::convertible_to< T > C> |
| constexpr | scalar (C c) |
| | Builds a new scalar from a convertible type \þaram v The scalar value.
|
| |
| constexpr T | operator[] (size_t d) const noexcept |
| | Returns the element at the given index. More...
|
| |
| constexpr T | read_flat (size_t d) const noexcept |
| | Returns the value at the given index This function never alters the state of the container. More...
|
| |
| template<typename V = default_vec> |
| vec_type< V > | load (size_t d) const noexcept |
| | Load several elements of the matrix at once. More...
|
| |
| template<typename V = default_vec> |
| vec_type< V > | loadu (size_t d) const noexcept |
| | Load several elements of the matrix at once. More...
|
| |
| template<size_c... S> |
| constexpr T | operator() (__attribute__((unused)) S... args) const noexcept |
| | Returns the value at the position (args...) More...
|
| |
| template<typename E > |
| constexpr bool | alias (const E &) const noexcept |
| | Indicate if the expression aliases with the given expression. More...
|
| |
| template<typename L > |
| void | assign_to (L &&lhs) const |
| | Assign to the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_add_to (L &&lhs) const |
| | Add to the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_sub_to (L &&lhs) const |
| | Sub from the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_mul_to (L &&lhs) const |
| | Multiply the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_div_to (L &&lhs) const |
| | Divide the given left-hand-side expression. More...
|
| |
| template<typename L > |
| void | assign_mod_to (L &&lhs) const |
| | Modulo the given left-hand-side expression. More...
|
| |
| template<typename V > |
| void | visit ([[maybe_unused]] V &&visitor) const |
| | Apply the given visitor to this expression and its descendants. More...
|
| |
| template<typename Y > |
| decltype(auto) | gpu_compute_hint ([[maybe_unused]] Y &y) const |
| | Return a GPU computed version of this expression. More...
|
| |
| template<typename Y > |
| decltype(auto) | gpu_compute (Y &y) const |
| | Return a GPU computed version of this expression. 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.
|
| |
template<typename T>
struct etl::scalar< T >
Represents a scalar value.