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