PLearn 0.1
|
#include <SumSquareVariable.h>
Public Member Functions | |
SumSquareVariable () | |
Default constructor for persistence. | |
SumSquareVariable (Variable *input) | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual SumSquareVariable * | deepCopy (CopiesMap &copies) const |
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 () |
Nothing to do by default. | |
virtual void | bprop () |
Nothing to do by default. | |
virtual void | symbolicBprop () |
compute a piece of new Var graph that represents the symbolic derivative of this Var | |
Static Public Member Functions | |
static string | _classname_ () |
SumSquareVariable. | |
static OptionList & | _getOptionList_ () |
static RemoteMethodMap & | _getRemoteMethodMap_ () |
static Object * | _new_instance_for_typemap_ () |
static bool | _isa_ (const Object *o) |
static void | _static_initialize_ () |
static const PPath & | declaringFile () |
Static Public Attributes | |
static StaticInitializer | _static_initializer_ |
Private Types | |
typedef UnaryVariable | inherited |
Definition at line 52 of file SumSquareVariable.h.
typedef UnaryVariable PLearn::SumSquareVariable::inherited [private] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 54 of file SumSquareVariable.h.
PLearn::SumSquareVariable::SumSquareVariable | ( | ) | [inline] |
PLearn::SumSquareVariable::SumSquareVariable | ( | Variable * | input | ) |
Definition at line 57 of file SumSquareVariable.cc.
string PLearn::SumSquareVariable::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
OptionList & PLearn::SumSquareVariable::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
RemoteMethodMap & PLearn::SumSquareVariable::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
Object * PLearn::SumSquareVariable::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
StaticInitializer SumSquareVariable::_static_initializer_ & PLearn::SumSquareVariable::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
void PLearn::SumSquareVariable::bprop | ( | ) | [virtual] |
Nothing to do by default.
Reimplemented from PLearn::UnaryVariable.
Definition at line 77 of file SumSquareVariable.cc.
References PLearn::Variable::gradientdata, i, PLearn::UnaryVariable::input, and n.
string PLearn::SumSquareVariable::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
static const PPath& PLearn::SumSquareVariable::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 61 of file SumSquareVariable.h.
{ return new SumSquareVariable(v); }
SumSquareVariable * PLearn::SumSquareVariable::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
void PLearn::SumSquareVariable::fprop | ( | ) | [virtual] |
Nothing to do by default.
Reimplemented from PLearn::UnaryVariable.
Definition at line 63 of file SumSquareVariable.cc.
References i, PLearn::UnaryVariable::input, n, and PLearn::Variable::valuedata.
OptionList & PLearn::SumSquareVariable::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
OptionMap & PLearn::SumSquareVariable::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
RemoteMethodMap & PLearn::SumSquareVariable::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 55 of file SumSquareVariable.cc.
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 SumSquareVariable.cc.
{ l=1; w=1; }
void PLearn::SumSquareVariable::symbolicBprop | ( | ) | [virtual] |
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable.
Definition at line 85 of file SumSquareVariable.cc.
References PLearn::Variable::g, and PLearn::UnaryVariable::input.
Reimplemented from PLearn::UnaryVariable.
Definition at line 61 of file SumSquareVariable.h.