25 ArrayXf x = state.
pop<
float>();
26 ArrayXf ones = ArrayXf::Ones(x.size());
28 ArrayXf res = ( x > 0).select(ones,
29 (x == 0).select(ArrayXf::Zero(x.size()),
31 state.
push<
float>(res);
43 state.
push<
float>(
"sign("+ state.
popStr<
float>() +
")");
data holding X, y, and Z data
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
void eval_eqn(State &state)
Evaluates the node symbolically.
NodeSign * rnd_clone_impl() const override
NodeSign * clone_impl() const override
std::map< char, unsigned int > arity
arity of the operator
int complexity
complexity of node
void GPU_Sign(float *x, size_t idx, size_t N)
contains various types of State actually used by feat
Eigen::Array< T, Eigen::Dynamic, 1 > pop()
void push(Eigen::Array< T, Eigen::Dynamic, 1 > value)