Halide
|
A reduction variable represents a single dimension of a reduction domain (RDom). More...
#include <RDom.h>
Public Member Functions | |
RVar () | |
An empty reduction variable. More... | |
RVar (const std::string &n) | |
Construct an RVar with the given name. More... | |
RVar (Internal::ReductionDomain domain, int index) | |
Construct a reduction variable with the given name and bounds. More... | |
Expr | min () const |
The minimum value that this variable will take on. More... | |
Expr | extent () const |
The number that this variable will take on. More... | |
Internal::ReductionDomain | domain () const |
The reduction domain this is associated with. More... | |
const std::string & | name () const |
The name of this reduction variable. More... | |
operator Expr () const | |
Reduction variables can be used as expressions. More... | |
A reduction variable represents a single dimension of a reduction domain (RDom).
Don't construct them directly, instead construct an RDom, and use RDom::operator[] to get at the variables. For single-dimensional reduction domains, you can just cast a single-dimensional RDom to an RVar.
|
inline |
|
inlineexplicit |
|
inline |
Expr Halide::RVar::min | ( | ) | const |
The minimum value that this variable will take on.
Expr Halide::RVar::extent | ( | ) | const |
|
inline |
const std::string& Halide::RVar::name | ( | ) | const |
The name of this reduction variable.
Referenced by Halide::VarOrRVar::name().
Halide::RVar::operator Expr | ( | ) | const |
Reduction variables can be used as expressions.