33 GPU_If(state.dev_f, state.dev_b, state.idx[
'f'], state.idx[
'b'], state.N);
40 state.
push<
float>(
"if(" + state.
popStr<
bool>() +
"," + state.
popStr<
float>() +
"," +
"0)");
45 ArrayXf& xf = state.
get<
float>()[state.
size<
float>()-1];
50 return ArrayXf::Zero(xf.size());
53 return xb.cast<
float>();
data holding X, y, and Z data
ArrayXf getDerivative(Trace &state, int loc)
NodeIf * clone_impl() const override
void eval_eqn(State &state)
Evaluates the node symbolically.
NodeIf(vector< float > W0=vector< float >())
NodeIf * rnd_clone_impl() const override
void evaluate(const Data &data, State &state)
Evaluates the node and updates the state states.
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
Eigen::Array< bool, Eigen::Dynamic, 1 > ArrayXb
void GPU_If(float *xf, bool *xb, size_t idxf, size_t idxb, 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)
used for tracing stack outputs for backprop algorithm.
vector< Eigen::Array< T, Eigen::Dynamic, 1 > > & get()