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

PLearn::SquareRootVariable Class Reference

#include <SquareRootVariable.h>

Inheritance diagram for PLearn::SquareRootVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SquareRootVariable ()
 Default constructor for persistence.

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

Private Types

typedef UnaryVariable inherited

Member Typedef Documentation

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 55 of file SquareRootVariable.h.

Referenced by SquareRootVariable().


Constructor & Destructor Documentation

PLearn::SquareRootVariable::SquareRootVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 59 of file SquareRootVariable.h.

PLearn::SquareRootVariable::SquareRootVariable Variable input  ) 
 

Definition at line 56 of file SquareRootVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 78 of file SquareRootVariable.cc.

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

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

compute output given input

Implements PLearn::Variable.

Definition at line 69 of file SquareRootVariable.cc.

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

PLearn::SquareRootVariable::PLEARN_DECLARE_OBJECT SquareRootVariable   ) 
 

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

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


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