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

PLearn::SumVariable Class Reference

#include <SumVariable.h>

Inheritance diagram for PLearn::SumVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SumVariable ()
 Default constructor for persistence.

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

Detailed Description

* Sum reductions... *

Definition at line 55 of file SumVariable.h.


Member Typedef Documentation

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 57 of file SumVariable.h.

Referenced by SumVariable().


Constructor & Destructor Documentation

PLearn::SumVariable::SumVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 61 of file SumVariable.h.

PLearn::SumVariable::SumVariable Variable input  ) 
 

Definition at line 56 of file SumVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 72 of file SumVariable.cc.

References k.

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

compute output given input

Implements PLearn::Variable.

Definition at line 63 of file SumVariable.cc.

References k, and PLearn::sum().

PLearn::SumVariable::PLEARN_DECLARE_OBJECT SumVariable   ) 
 

void PLearn::SumVariable::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 60 of file SumVariable.cc.

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

Reimplemented from PLearn::Variable.

Definition at line 87 of file SumVariable.cc.

References k, PLearn::TVec< T >::length(), PLearn::UnaryVariable::resizeRValue(), and PLearn::sum().

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

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

Reimplemented from PLearn::Variable.

Definition at line 80 of file SumVariable.cc.


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