#include <ArgminVariable.h>
Inheritance diagram for PLearn::ArgminVariable:
Public Member Functions | |
ArgminVariable () | |
Default constructor for persistence. | |
ArgminVariable (Variable *input) | |
PLEARN_DECLARE_OBJECT (ArgminVariable) | |
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 56 of file ArgminVariable.h.
|
Reimplemented from PLearn::UnaryVariable. Definition at line 58 of file ArgminVariable.h. Referenced by ArgminVariable(). |
|
Default constructor for persistence.
Definition at line 62 of file ArgminVariable.h. |
|
Definition at line 55 of file ArgminVariable.cc. References inherited. |
|
Implements PLearn::Variable. Definition at line 105 of file ArgminVariable.cc. |
|
compute output given input
Implements PLearn::Variable. Definition at line 66 of file ArgminVariable.cc. References PLearn::argmin(), k, PLearn::Var::length(), val, 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 ArgminVariable.cc. |
|
compute a piece of new Var graph that represents the symbolic derivative of this Var
Reimplemented from PLearn::Variable. Definition at line 107 of file ArgminVariable.cc. |