#include <UnaryVariable.h>
Inheritance diagram for PLearn::UnaryVariable:
Public Types | |
typedef Variable | inherited |
Public Member Functions | |
UnaryVariable (Variable *v, int thelength, int thewidth) | |
UnaryVariable *. | |
PLEARN_DECLARE_ABSTRACT_OBJECT (UnaryVariable) | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
virtual bool | markPath () |
virtual void | buildPath (VarArray &proppath) |
Finally buildPath is to be called from the output Variable of interest (this will build the proppath at the same time as erasing the marks). | |
virtual VarArray | sources () |
if not marked, find all constant sources that influence this Variable. | |
virtual VarArray | random_sources () |
return ancestors which compute a non-deterministic function of their parents | |
virtual VarArray | ancestors () |
if not marked, find all Variables that influence this Variable. | |
virtual void | unmarkAncestors () |
undo any marking done by a call to sources() or ancestors() | |
virtual VarArray | parents () |
returns all the direct parents of this Var that are not marked (the call doesn't change any mark) | |
void | printInfo (bool print_gradient) |
virtual void | resizeRValue () |
Protected Member Functions | |
UnaryVariable () | |
Default constructor for persistence. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) | |
Protected Attributes | |
Var | input |
|
|
Default constructor for persistence.
Definition at line 59 of file UnaryVariable.h. |
|
Definition at line 51 of file UnaryVariable.cc. |
|
if not marked, find all Variables that influence this Variable.
Implements PLearn::Variable. Definition at line 118 of file UnaryVariable.cc. References input. |
|
Finally buildPath is to be called from the output Variable of interest (this will build the proppath at the same time as erasing the marks).
Implements PLearn::Variable. Definition at line 88 of file UnaryVariable.cc. References PLearn::TVec< Var >::append(), PLearn::Variable::clearMark(), and input. |
|
|
Reimplemented from PLearn::Variable. Reimplemented in PLearn::LogSumVariable, PLearn::MatRowVariable, PLearn::PDistributionVariable, and PLearn::VecElementVariable. Definition at line 72 of file UnaryVariable.cc. References input, and PLearn::varDeepCopyField(). Referenced by PLearn::MultinomialSampleVariable::deepCopy(). |
|
sets the marked flag of all the sVariable that are to be in the fprop path. The input sVariable that are of interest are to be marked first. Then markPath is to be called from the output Variable of interest Implements PLearn::Variable. Definition at line 80 of file UnaryVariable.cc. References input. |
|
returns all the direct parents of this Var that are not marked (the call doesn't change any mark)
Implements PLearn::Variable. Definition at line 137 of file UnaryVariable.cc. References input. |
|
|
|
Implements PLearn::Variable. Definition at line 79 of file UnaryVariable.h. References PLearn::endl(), PLearn::Variable::getName(), and input. |
|
return ancestors which compute a non-deterministic function of their parents
Implements PLearn::Variable. Reimplemented in PLearn::UnarySampleVariable. Definition at line 109 of file UnaryVariable.cc. References input. |
|
|
if not marked, find all constant sources that influence this Variable. A constant source is normally a SourceVariable. Implements PLearn::Variable. Definition at line 100 of file UnaryVariable.cc. References input. |
|
undo any marking done by a call to sources() or ancestors()
Implements PLearn::Variable. Definition at line 127 of file UnaryVariable.cc. References input. |
|
Definition at line 63 of file UnaryVariable.h. Referenced by ancestors(), buildPath(), makeDeepCopyFromShallowCopy(), markPath(), parents(), printInfo(), random_sources(), resizeRValue(), sources(), and unmarkAncestors(). |