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