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

PLearn::SumAbsVariable Class Reference

#include <SumAbsVariable.h>

Inheritance diagram for PLearn::SumAbsVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SumAbsVariable ()
 Default constructor for persistence.

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

Member Typedef Documentation

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file SumAbsVariable.h.

Referenced by SumAbsVariable().


Constructor & Destructor Documentation

PLearn::SumAbsVariable::SumAbsVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 58 of file SumAbsVariable.h.

PLearn::SumAbsVariable::SumAbsVariable Variable input  ) 
 

Definition at line 58 of file SumAbsVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 73 of file SumAbsVariable.cc.

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

compute output given input

Implements PLearn::Variable.

Definition at line 64 of file SumAbsVariable.cc.

PLearn::SumAbsVariable::PLEARN_DECLARE_OBJECT SumAbsVariable   ) 
 

void PLearn::SumAbsVariable::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 61 of file SumAbsVariable.cc.

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

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

Reimplemented from PLearn::Variable.

Definition at line 84 of file SumAbsVariable.cc.

References PLearn::abs().


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