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

PLearn::MatrixAffineTransformVariable Class Reference

Affine transformation of a MATRIX variable. More...

#include <MatrixAffineTransformVariable.h>

Inheritance diagram for PLearn::MatrixAffineTransformVariable:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MatrixAffineTransformVariable ()
 Default constructor for persistence.

 MatrixAffineTransformVariable (Variable *mat, Variable *transformation)
 PLEARN_DECLARE_OBJECT (MatrixAffineTransformVariable)
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

Affine transformation of a MATRIX variable.

Should work for both column and row vectors: result vector will be of same kind (row or col) First row of transformation matrix contains bias b, following rows contain linear-transformation T Will compute b + x.T which is equivalent to b +

Definition at line 57 of file MatrixAffineTransformVariable.h.


Member Typedef Documentation

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

Reimplemented from PLearn::BinaryVariable.

Definition at line 59 of file MatrixAffineTransformVariable.h.


Constructor & Destructor Documentation

PLearn::MatrixAffineTransformVariable::MatrixAffineTransformVariable  )  [inline]
 

Default constructor for persistence.

Definition at line 63 of file MatrixAffineTransformVariable.h.

PLearn::MatrixAffineTransformVariable::MatrixAffineTransformVariable Variable mat,
Variable transformation
[inline]
 

Definition at line 64 of file MatrixAffineTransformVariable.h.


Member Function Documentation

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

Implements PLearn::Variable.

Definition at line 76 of file MatrixAffineTransformVariable.cc.

References PLearn::TMat< T >::firstRow(), PLearn::Variable::length(), PLearn::TMat< T >::length(), PLearn::productAcc(), PLearn::productTransposeAcc(), PLearn::TMat< T >::subMatRows(), PLearn::Vec, and PLearn::Variable::width().

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

compute output given input

Implements PLearn::Variable.

Definition at line 66 of file MatrixAffineTransformVariable.cc.

References PLearn::Variable::length(), PLearn::Var::length(), PLearn::Mat, PLearn::transposeProductAcc(), and PLearn::Variable::width().

PLearn::MatrixAffineTransformVariable::PLEARN_DECLARE_OBJECT MatrixAffineTransformVariable   ) 
 

void PLearn::MatrixAffineTransformVariable::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 56 of file MatrixAffineTransformVariable.cc.

References PLearn::Var::width().

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

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

Reimplemented from PLearn::Variable.

Definition at line 97 of file MatrixAffineTransformVariable.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:08 2004 for PLearn by doxygen 1.3.7