PLearn 0.1
|
#include <ExpVariable.h>
Public Member Functions | |
ExpVariable () | |
Default constructor for persistence. | |
ExpVariable (Variable *input) | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual ExpVariable * | 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 () |
Incorrect! | |
virtual void | rfprop () |
Static Public Member Functions | |
static string | _classname_ () |
ExpVariable. | |
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 ExpVariable.h.
typedef UnaryVariable PLearn::ExpVariable::inherited [private] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 54 of file ExpVariable.h.
PLearn::ExpVariable::ExpVariable | ( | ) | [inline] |
PLearn::ExpVariable::ExpVariable | ( | Variable * | input | ) |
string PLearn::ExpVariable::_classname_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
OptionList & PLearn::ExpVariable::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
RemoteMethodMap & PLearn::ExpVariable::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
Object * PLearn::ExpVariable::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
StaticInitializer ExpVariable::_static_initializer_ & PLearn::ExpVariable::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
void PLearn::ExpVariable::bprop | ( | ) | [virtual] |
Nothing to do by default.
Reimplemented from PLearn::UnaryVariable.
Definition at line 76 of file ExpVariable.cc.
References PLearn::Variable::gradientdata, i, PLearn::UnaryVariable::input, PLearn::Variable::nelems(), and PLearn::Variable::valuedata.
string PLearn::ExpVariable::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
static const PPath& PLearn::ExpVariable::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 61 of file ExpVariable.h.
{ return new ExpVariable(v); }
ExpVariable * PLearn::ExpVariable::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
void PLearn::ExpVariable::fprop | ( | ) | [virtual] |
Nothing to do by default.
Reimplemented from PLearn::UnaryVariable.
Definition at line 69 of file ExpVariable.cc.
References i, PLearn::UnaryVariable::input, PLearn::Variable::nelems(), PLearn::safeexp(), and PLearn::Variable::valuedata.
OptionList & PLearn::ExpVariable::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
OptionMap & PLearn::ExpVariable::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.cc.
RemoteMethodMap & PLearn::ExpVariable::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::UnaryVariable.
Definition at line 53 of file ExpVariable.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 59 of file ExpVariable.cc.
References PLearn::UnaryVariable::input, PLearn::Var::length(), and PLearn::Var::width().
void PLearn::ExpVariable::rfprop | ( | ) | [virtual] |
Reimplemented from PLearn::Variable.
Definition at line 102 of file ExpVariable.cc.
References i, PLearn::UnaryVariable::input, PLearn::TVec< T >::length(), PLearn::Variable::nelems(), PLearn::UnaryVariable::resizeRValue(), PLearn::Variable::rValue, PLearn::Variable::rvaluedata, and PLearn::Variable::valuedata.
{ if (rValue.length()==0) resizeRValue(); for(int i=0; i<nelems(); i++) rvaluedata[i] = input->rvaluedata[i] * valuedata[i]; }
void PLearn::ExpVariable::symbolicBprop | ( | ) | [virtual] |
Incorrect!
Reimplemented from PLearn::Variable.
Definition at line 95 of file ExpVariable.cc.
References PLearn::Variable::g, PLearn::UnaryVariable::input, and PLearn::Variable::Var.
Reimplemented from PLearn::UnaryVariable.
Definition at line 61 of file ExpVariable.h.