#include <TimesConstantVariable.h>
Inheritance diagram for PLearn::TimesConstantVariable:
Public Member Functions | |
TimesConstantVariable () | |
Default constructor for persistence. | |
TimesConstantVariable (Variable *input, real c) | |
PLEARN_DECLARE_OBJECT (TimesConstantVariable) | |
virtual string | info () const |
returns a bit more informative string about object (default returns classname()) | |
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 () |
compute output given input | |
virtual void | bprop () |
virtual void | symbolicBprop () |
compute a piece of new Var graph that represents the symbolic derivative of this Var | |
virtual void | rfprop () |
Public Attributes | |
real | cst |
The constant. | |
Private Types | |
typedef UnaryVariable | inherited |
* Times... *
Definition at line 57 of file TimesConstantVariable.h.
|
Reimplemented from PLearn::UnaryVariable. Definition at line 59 of file TimesConstantVariable.h. Referenced by TimesConstantVariable(). |
|
Default constructor for persistence.
Definition at line 67 of file TimesConstantVariable.h. References cst. |
|
Definition at line 56 of file TimesConstantVariable.cc. References inherited. |
|
Implements PLearn::Variable. Definition at line 76 of file TimesConstantVariable.cc. References cst, k, and PLearn::Variable::nelems(). |
|
compute output given input
Implements PLearn::Variable. Definition at line 69 of file TimesConstantVariable.cc. References cst, k, and PLearn::Variable::nelems(). |
|
returns a bit more informative string about object (default returns classname())
Reimplemented from PLearn::Object. Definition at line 72 of file TimesConstantVariable.h. References cst, and PLearn::tostring(). |
|
|
|
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 TimesConstantVariable.cc. References PLearn::Var::length(), and PLearn::Var::width(). |
|
Reimplemented from PLearn::Variable. Definition at line 90 of file TimesConstantVariable.cc. References cst, k, PLearn::TVec< T >::length(), PLearn::Variable::nelems(), and PLearn::UnaryVariable::resizeRValue(). |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 83 of file TimesConstantVariable.cc. References cst. |
|
The constant.
Definition at line 63 of file TimesConstantVariable.h. Referenced by bprop(), fprop(), info(), rfprop(), symbolicBprop(), and TimesConstantVariable(). |