#include <SquareRootVariable.h>
Inheritance diagram for PLearn::SquareRootVariable:
Public Member Functions | |
SquareRootVariable () | |
Default constructor for persistence. | |
SquareRootVariable (Variable *input) | |
PLEARN_DECLARE_OBJECT (SquareRootVariable) | |
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 () |
Private Types | |
typedef UnaryVariable | inherited |
|
Reimplemented from PLearn::UnaryVariable. Definition at line 55 of file SquareRootVariable.h. Referenced by SquareRootVariable(). |
|
Default constructor for persistence.
Definition at line 59 of file SquareRootVariable.h. |
|
Definition at line 56 of file SquareRootVariable.cc. References inherited. |
|
Implements PLearn::Variable. Definition at line 78 of file SquareRootVariable.cc. References PLearn::TVec< T >::length(), PLearn::Variable::nelems(), PLearn::UnaryVariable::resizeRValue(), and PLearn::sqrt(). |
|
compute output given input
Implements PLearn::Variable. Definition at line 69 of file SquareRootVariable.cc. References PLearn::Variable::nelems(), and PLearn::sqrt(). |
|
|
|
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 60 of file SquareRootVariable.cc. References PLearn::Var::length(), and PLearn::Var::width(). |