|
FlexELA
|
Contains the label and value of a vector element. More...
#include <element.h>
Public Member Functions | |
| constexpr | operator Value () const |
| Conversion to Value. | |
| Element & | operator+= (const Value &rhs) |
| Addition assignment. | |
| Element & | operator+= (const Element &rhs) |
| Addition assignment. | |
| Element & | operator-= (const Value &rhs) |
| Subtraction assignment. | |
| Element & | operator-= (const Element &rhs) |
| Subtraction assignment. | |
| Element & | operator*= (const Value &rhs) |
| Multiplication assignment. | |
| Element & | operator/= (const Value &rhs) |
| Division assignment. | |
| bool | isEnd () const |
Public Attributes | |
| Label | l |
| The label of the vector element. | |
| Value | v |
| The value of the vector element. | |
Friends | |
| constexpr Element | operator+ (const Element &a, const Element &b) |
| Addition, a+b. | |
| constexpr Element | operator- (const Element &a, const Element &b) |
| Subtraction, a-b. | |
| constexpr Element | operator* (const Element &a, const Value &C) |
| Multiplication, C*a. | |
| constexpr Element | fma (const Element &a, const Value &C, const Element &b) |
| Fused Multiply and Add, C*a+b. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| constexpr Element | END_ELEMENT = {std::numeric_limits<Label>::max(), 0.0} |
Contains the label and value of a vector element.
The Element structure is used to store an of a vector in terms of the label \(\ell\) (i.e., index) and the value \(v_\ell\).
|
inline |
True if the element matches END_ELEMENT.
A special Element for indicating the end of a sequence