#include <HardSlopeVariable.h>
Inheritance diagram for PLearn::HardSlopeVariable:
Public Member Functions | |
HardSlopeVariable () | |
Default constructor for persistence. | |
HardSlopeVariable (Variable *x, Variable *left, Variable *right) | |
PLEARN_DECLARE_OBJECT (HardSlopeVariable) | |
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 | |
Private Types | |
typedef NaryVariable | inherited |
|
Reimplemented from PLearn::NaryVariable. Definition at line 58 of file HardSlopeVariable.h. Referenced by HardSlopeVariable(). |
|
Default constructor for persistence.
Definition at line 62 of file HardSlopeVariable.h. |
|
Definition at line 58 of file HardSlopeVariable.cc. References inherited, PLearn::left(), PLearn::right(), and x. |
|
Implements PLearn::Variable. Definition at line 112 of file HardSlopeVariable.cc. References PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), and x. |
|
compute output given input
Implements PLearn::Variable. Definition at line 85 of file HardSlopeVariable.cc. References PLearn::hard_slope(), PLearn::left(), PLearn::VarArray::nelems(), PLearn::Variable::nelems(), PLearn::right(), and x. |
|
|
|
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 65 of file HardSlopeVariable.cc. References PLearn::TVec< Var >::length(), PLERROR, and PLearn::TVec< Var >::size(). |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 144 of file HardSlopeVariable.cc. References PLERROR. |