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

PLearn::VarColumnsVariable Class Reference

#include <VarColumnsVariable.h>

Inheritance diagram for PLearn::VarColumnsVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VarColumnsVariable ()
 Default constructor for persistence.

 VarColumnsVariable (Variable *input1, Variable *input2)
 PLEARN_DECLARE_OBJECT (VarColumnsVariable)
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 BinaryVariable inherited

Detailed Description

Variable that is a subset of a matrix's columns input1 : matrix from which columns are selected input2 : vector whose elements are row indices in input1

Definition at line 56 of file VarColumnsVariable.h.


Member Typedef Documentation

typedef BinaryVariable PLearn::VarColumnsVariable::inherited [private]
 

Reimplemented from PLearn::BinaryVariable.

Definition at line 58 of file VarColumnsVariable.h.

Referenced by VarColumnsVariable().


Constructor & Destructor Documentation

PLearn::VarColumnsVariable::VarColumnsVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 62 of file VarColumnsVariable.h.

PLearn::VarColumnsVariable::VarColumnsVariable Variable input1,
Variable input2
 

Definition at line 53 of file VarColumnsVariable.cc.

References inherited.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 76 of file VarColumnsVariable.cc.

References PLearn::TMat< T >::column(), PLearn::Var::column(), and PLearn::Var::length().

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

compute output given input

Implements PLearn::Variable.

Definition at line 70 of file VarColumnsVariable.cc.

PLearn::VarColumnsVariable::PLEARN_DECLARE_OBJECT VarColumnsVariable   ) 
 

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

References PLearn::Var::length().

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

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

Reimplemented from PLearn::Variable.

Definition at line 83 of file VarColumnsVariable.cc.

References PLERROR.


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