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