#include <SquareVariable.h>
Inheritance diagram for PLearn::SquareVariable:
Public Member Functions | |
SquareVariable () | |
Default constructor for persistence. | |
SquareVariable (Variable *input) | |
PLEARN_DECLARE_OBJECT (SquareVariable) | |
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 | bbprop () |
here don't approximate, do d2C/dx^2 = 4 x^2 d2C/dy^2 + 2 dC/dy | |
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 54 of file SquareVariable.h. Referenced by SquareVariable(). |
|
Default constructor for persistence.
Definition at line 58 of file SquareVariable.h. |
|
Definition at line 57 of file SquareVariable.cc. References inherited. |
|
here don't approximate, do d2C/dx^2 = 4 x^2 d2C/dy^2 + 2 dC/dy
Reimplemented from PLearn::Variable. Definition at line 87 of file SquareVariable.cc. References PLearn::Var::length(), and PLearn::Variable::nelems(). |
|
Implements PLearn::Variable. Definition at line 79 of file SquareVariable.cc. References PLearn::Variable::nelems(). |
|
compute output given input
Implements PLearn::Variable. Definition at line 71 of file SquareVariable.cc. References PLearn::Variable::nelems(). |
|
|
|
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 61 of file SquareVariable.cc. References PLearn::Var::length(), and PLearn::Var::width(). |
|
Reimplemented from PLearn::Variable. Definition at line 107 of file SquareVariable.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 101 of file SquareVariable.cc. |