Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::AbsVariable Class Reference

#include <AbsVariable.h>

Inheritance diagram for PLearn::AbsVariable:

Inheritance graph
[legend]
Collaboration diagram for PLearn::AbsVariable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AbsVariable ()
 Default constructor for persistence.

 AbsVariable (Variable *input)
 PLEARN_DECLARE_OBJECT (AbsVariable)
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 ()

Private Types

typedef UnaryVariable inherited

Member Typedef Documentation

typedef UnaryVariable PLearn::AbsVariable::inherited [private]
 

Reimplemented from PLearn::UnaryVariable.

Definition at line 55 of file AbsVariable.h.

Referenced by AbsVariable().


Constructor & Destructor Documentation

PLearn::AbsVariable::AbsVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 59 of file AbsVariable.h.

PLearn::AbsVariable::AbsVariable Variable input  ) 
 

Definition at line 57 of file AbsVariable.cc.

References inherited.


Member Function Documentation

void PLearn::AbsVariable::bprop  )  [virtual]
 

Implements PLearn::Variable.

Definition at line 81 of file AbsVariable.cc.

References PLearn::Variable::nelems(), and val.

void PLearn::AbsVariable::fprop  )  [virtual]
 

compute output given input

Implements PLearn::Variable.

Definition at line 71 of file AbsVariable.cc.

References PLearn::Variable::nelems(), and val.

PLearn::AbsVariable::PLEARN_DECLARE_OBJECT AbsVariable   ) 
 

void PLearn::AbsVariable::recomputeSize int l,
int w
const [virtual]
 

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 62 of file AbsVariable.cc.

References PLearn::Var::length(), and PLearn::Var::width().

void PLearn::AbsVariable::rfprop  )  [virtual]
 

Reimplemented from PLearn::Variable.

Definition at line 102 of file AbsVariable.cc.

References PLearn::TVec< T >::length(), PLearn::Variable::nelems(), and PLearn::UnaryVariable::resizeRValue().

void PLearn::AbsVariable::symbolicBprop  )  [virtual]
 

compute a piece of new Var graph that represents the symbolic derivative of this Var

Reimplemented from PLearn::Variable.

Definition at line 94 of file AbsVariable.cc.

References PLearn::ifThenElse().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:24:36 2004 for PLearn by doxygen 1.3.7