#include <AbsVariable.h>
Inheritance diagram for PLearn::AbsVariable:
Public Member Functions | |
AbsVariable () | |
Default constructor for persistence. | |
AbsVariable (Variable *input) | |
PLEARN_DECLARE_OBJECT (AbsVariable) | |
virtual void | recomputeSize (int &l, int &w) const |
Recomputes the length l and width w that this variable should have, according to its parent variables. | |
virtual void | fprop () |
compute output given input | |
virtual void | bprop () |
virtual void | symbolicBprop () |
compute a piece of new Var graph that represents the symbolic derivative of this Var | |
virtual void | rfprop () |
Private Types | |
typedef UnaryVariable | inherited |
|
Reimplemented from PLearn::UnaryVariable. Definition at line 55 of file AbsVariable.h. Referenced by AbsVariable(). |
|
Default constructor for persistence.
Definition at line 59 of file AbsVariable.h. |
|
Definition at line 57 of file AbsVariable.cc. References inherited. |
|
Implements PLearn::Variable. Definition at line 81 of file AbsVariable.cc. References PLearn::Variable::nelems(), and val. |
|
compute output given input
Implements PLearn::Variable. Definition at line 71 of file AbsVariable.cc. References PLearn::Variable::nelems(), and val. |
|
|
|
Recomputes the length l and width w that this variable should have, according to its parent variables. This is used for ex. by sizeprop() The default version stupidly returns the current dimensions, so make sure to overload it in subclasses if this is not appropriate. Reimplemented from PLearn::Variable. Definition at line 62 of file AbsVariable.cc. References PLearn::Var::length(), and PLearn::Var::width(). |
|
Reimplemented from PLearn::Variable. Definition at line 102 of file AbsVariable.cc. References PLearn::TVec< T >::length(), PLearn::Variable::nelems(), and PLearn::UnaryVariable::resizeRValue(). |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 94 of file AbsVariable.cc. References PLearn::ifThenElse(). |