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

PLearn::ColumnSumVariable Class Reference

result is a single row that contains the sum of each column of the input More...

#include <ColumnSumVariable.h>

Inheritance diagram for PLearn::ColumnSumVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ColumnSumVariable (Variable *input)
 ColumnSumVariable *.

 PLEARN_DECLARE_OBJECT (ColumnSumVariable)
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


Protected Types

typedef UnaryVariable inherited

Protected Member Functions

 ColumnSumVariable ()
 Default constructor for persistence.


Detailed Description

result is a single row that contains the sum of each column of the input

Definition at line 53 of file ColumnSumVariable.h.


Member Typedef Documentation

typedef UnaryVariable PLearn::ColumnSumVariable::inherited [protected]
 

Reimplemented from PLearn::UnaryVariable.

Definition at line 56 of file ColumnSumVariable.h.


Constructor & Destructor Documentation

PLearn::ColumnSumVariable::ColumnSumVariable  )  [inline, protected]
 

Default constructor for persistence.

Definition at line 58 of file ColumnSumVariable.h.

PLearn::ColumnSumVariable::ColumnSumVariable Variable input  ) 
 

ColumnSumVariable *.

Definition at line 51 of file ColumnSumVariable.cc.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 77 of file ColumnSumVariable.cc.

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

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

compute output given input

Implements PLearn::Variable.

Definition at line 67 of file ColumnSumVariable.cc.

References PLearn::TVec< T >::clear(), k, PLearn::Var::length(), and PLearn::Var::width().

PLearn::ColumnSumVariable::PLEARN_DECLARE_OBJECT ColumnSumVariable   ) 
 

void PLearn::ColumnSumVariable::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 57 of file ColumnSumVariable.cc.

References PLearn::Var::width().

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

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

Reimplemented from PLearn::Variable.

Definition at line 86 of file ColumnSumVariable.cc.


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