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

PLearn::SquareVariable Class Reference

#include <SquareVariable.h>

Inheritance diagram for PLearn::SquareVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SquareVariable ()
 Default constructor for persistence.

 SquareVariable (Variable *input)
 PLEARN_DECLARE_OBJECT (SquareVariable)
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 bbprop ()
 here don't approximate, do d2C/dx^2 = 4 x^2 d2C/dy^2 + 2 dC/dy

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::SquareVariable::inherited [private]
 

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file SquareVariable.h.

Referenced by SquareVariable().


Constructor & Destructor Documentation

PLearn::SquareVariable::SquareVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 58 of file SquareVariable.h.

PLearn::SquareVariable::SquareVariable Variable input  ) 
 

Definition at line 57 of file SquareVariable.cc.

References inherited.


Member Function Documentation

void PLearn::SquareVariable::bbprop  )  [virtual]
 

here don't approximate, do d2C/dx^2 = 4 x^2 d2C/dy^2 + 2 dC/dy

Reimplemented from PLearn::Variable.

Definition at line 87 of file SquareVariable.cc.

References PLearn::Var::length(), and PLearn::Variable::nelems().

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

Implements PLearn::Variable.

Definition at line 79 of file SquareVariable.cc.

References PLearn::Variable::nelems().

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

compute output given input

Implements PLearn::Variable.

Definition at line 71 of file SquareVariable.cc.

References PLearn::Variable::nelems().

PLearn::SquareVariable::PLEARN_DECLARE_OBJECT SquareVariable   ) 
 

void PLearn::SquareVariable::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 SquareVariable.cc.

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

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

Reimplemented from PLearn::Variable.

Definition at line 107 of file SquareVariable.cc.

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

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

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

Reimplemented from PLearn::Variable.

Definition at line 101 of file SquareVariable.cc.


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