#include <RowSumVariable.h>
Inheritance diagram for PLearn::RowSumVariable:
Public Member Functions | |
RowSumVariable () | |
Default constructor for persistence. | |
RowSumVariable (Variable *input) | |
PLEARN_DECLARE_OBJECT (RowSumVariable) | |
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 | |
Private Types | |
typedef UnaryVariable | inherited |
Definition at line 53 of file RowSumVariable.h.
|
Reimplemented from PLearn::UnaryVariable. Definition at line 55 of file RowSumVariable.h. Referenced by RowSumVariable(). |
|
Default constructor for persistence.
Definition at line 59 of file RowSumVariable.h. |
|
Definition at line 55 of file RowSumVariable.cc. References inherited. |
|
Implements PLearn::Variable. Definition at line 78 of file RowSumVariable.cc. References k, PLearn::Var::length(), and PLearn::Var::width(). |
|
compute output given input
Implements PLearn::Variable. Definition at line 68 of file RowSumVariable.cc. References PLearn::TVec< T >::clear(), k, PLearn::Var::length(), and PLearn::Var::width(). |
|
|
|
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 RowSumVariable.cc. References PLearn::Var::length(). |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 87 of file RowSumVariable.cc. |