Node in the expression parse tree representing a literal number. More...
Inherits ltl::LTLIterator.
The number of dimensions.
More...The number of ltl::IndexIter index iterators (always 0).
More...The number of convolution operations (always 0).
More...Constants are vectorizable: splat the constant across the vector.
More...Node in the expression parse tree representing a literal number.
This class represents a literal number in the parse tree of an expression so that expressions can involve literal constants in the usual way.
Like all parse tree elements, this class implements the iterator interface, simply doing nothing for all methods except dereferencing, for which it returns the literal constant it holds.
typedef T ltl::ExprLiteralNode< T >::value_type |
the result data type is the type of the constant
anonymous enum |
The number of ltl::IndexIter index iterators (always 0).
anonymous enum |
anonymous enum |
ltl::ExprLiteralNode< T >::ExprLiteralNode | ( | const T | f | ) | [inline] |
Constructor: store the constant, splat if we are vectorizing.
void ltl::ExprLiteralNode< T >::advance | ( | ) | const [inline] |
Implement the iterator interface: do nothing for advancing.
void ltl::ExprLiteralNode< T >::advance | ( | const | int | ) | const [inline] |
void ltl::ExprLiteralNode< T >::advance | ( | const | int, | |
const | int | |||
) | const [inline] |
void ltl::ExprLiteralNode< T >::advanceWithStride1 | ( | ) | const [inline] |
void ltl::ExprLiteralNode< T >::advanceDim | ( | ) | const [inline] |
void ltl::ExprLiteralNode< T >::advanceDim | ( | const | int | ) | const [inline] |
void ltl::ExprLiteralNode< T >::operator++ | ( | ) | const [inline] |
value_type ltl::ExprLiteralNode< T >::operator* | ( | ) | const [inline] |
Evaluate by simply returning the constant.
value_type ltl::ExprLiteralNode< T >::readWithoutStride | ( | const | int | ) | const [inline] |
value_type ltl::ExprLiteralNode< T >::readWithStride | ( | const | int | ) | const [inline] |
value_type ltl::ExprLiteralNode< T >::readWithStride | ( | const | int, | |
const | int | |||
) | const [inline] |
value_type ltl::ExprLiteralNode< T >::readAtOffsetDim | ( | const | int, | |
const | int | |||
) | const [inline] |
compute and return the value of the subexpression in the parse tree below us at an offset in dimension 1, 2, and/or 3. Used for evaluating convolutions
value_type ltl::ExprLiteralNode< T >::readAtOffset | ( | const | int | ) | const [inline] |
value_type ltl::ExprLiteralNode< T >::readAtOffset | ( | const | int, | |
const | int | |||
) | const [inline] |
value_type ltl::ExprLiteralNode< T >::readAtOffset | ( | const | int, | |
const | int, | |||
const | int | |||
) | const [inline] |
int ltl::ExprLiteralNode< T >::boundary_l | ( | const | int | ) | const [inline] |
int ltl::ExprLiteralNode< T >::boundary_u | ( | const | int | ) | const [inline] |
bool ltl::ExprLiteralNode< T >::isStorageContiguous | ( | void | ) | const [inline] |
always true
bool ltl::ExprLiteralNode< T >::isStride1 | ( | ) | const [inline] |
always true
bool ltl::ExprLiteralNode< T >::isConformable | ( | const Shape< N > & | ) | const [inline] |
always true
void ltl::ExprLiteralNode< T >::reset | ( | ) | [inline] |