23 ArrayXf tmp(state.
z.
top().first.size());
26 for(x = 0; x < state.
z.
top().first.size(); x++)
27 tmp(x) =
limited(state.
z.
top().first[x]).maxCoeff();
31 state.
push<
float>(tmp);
38 ArrayXf tmp(state.
z.
top().first.size());
41 for(x = 0; x < state.
z.
top().first.size(); x++)
42 tmp(x) =
limited(state.
z.
top().first[x]).maxCoeff();
55 state.
push<
float>(
"max(" + state.
zs.
pop() +
")");
data holding X, y, and Z data
type pop()
returns true or false depending on stack is empty or not
type & top()
returns element at particular location in stack
NodeMax * clone_impl() const override
void eval_eqn(State &state)
Evaluates the node symbolically.
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
NodeMax * rnd_clone_impl() const override
std::map< char, unsigned int > arity
arity of the operator
ArrayXf limited(ArrayXf x)
limits node output to be between MIN_FLT and MAX_FLT
int complexity
complexity of node
void GPU_Variable(float *dev_x, float *host_x, size_t idx, size_t N)
contains various types of State actually used by feat
Stack< string > zs
longitudinal node string stack
Stack< std::pair< vector< ArrayXf >, vector< ArrayXf > > > z
longitudinal node stack
void push(Eigen::Array< T, Eigen::Dynamic, 1 > value)