PLearn 0.1
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types
PLearn::MatrixInverseVariable Class Reference

#include <MatrixInverseVariable.h>

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

List of all members.

Public Member Functions

 MatrixInverseVariable ()
 Default constructor for persistence.
 MatrixInverseVariable (Variable *input)
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual MatrixInverseVariabledeepCopy (CopiesMap &copies) const
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 ()
 Nothing to do by default.
virtual void bprop ()
 Nothing to do by default.
virtual void symbolicBprop ()
 compute a piece of new Var graph that represents the symbolic derivative of this Var

Static Public Member Functions

static string _classname_ ()
 MatrixInverseVariable.
static OptionList_getOptionList_ ()
static RemoteMethodMap_getRemoteMethodMap_ ()
static Object_new_instance_for_typemap_ ()
static bool _isa_ (const Object *o)
static void _static_initialize_ ()
static const PPathdeclaringFile ()

Static Public Attributes

static StaticInitializer _static_initializer_

Private Types

typedef UnaryVariable inherited

Detailed Description

* Matrix inversions... *

Definition at line 54 of file MatrixInverseVariable.h.


Member Typedef Documentation

Reimplemented from PLearn::UnaryVariable.

Definition at line 56 of file MatrixInverseVariable.h.


Constructor & Destructor Documentation

PLearn::MatrixInverseVariable::MatrixInverseVariable ( ) [inline]

Default constructor for persistence.

Definition at line 60 of file MatrixInverseVariable.h.

{}
PLearn::MatrixInverseVariable::MatrixInverseVariable ( Variable input)

Definition at line 55 of file MatrixInverseVariable.cc.

    : inherited(input, input->length(), input->width()) 
{}

Member Function Documentation

string PLearn::MatrixInverseVariable::_classname_ ( ) [static]

MatrixInverseVariable.

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

OptionList & PLearn::MatrixInverseVariable::_getOptionList_ ( ) [static]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

RemoteMethodMap & PLearn::MatrixInverseVariable::_getRemoteMethodMap_ ( ) [static]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

bool PLearn::MatrixInverseVariable::_isa_ ( const Object o) [static]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

Object * PLearn::MatrixInverseVariable::_new_instance_for_typemap_ ( ) [static]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

StaticInitializer MatrixInverseVariable::_static_initializer_ & PLearn::MatrixInverseVariable::_static_initialize_ ( ) [static]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

void PLearn::MatrixInverseVariable::bprop ( ) [virtual]

Nothing to do by default.

Reimplemented from PLearn::UnaryVariable.

Definition at line 74 of file MatrixInverseVariable.cc.

References PLERROR.

{
    PLERROR("MatrixInverseVariable: bprop not implemented yet");
}
string PLearn::MatrixInverseVariable::classname ( ) const [virtual]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

static const PPath& PLearn::MatrixInverseVariable::declaringFile ( ) [inline, static]

Reimplemented from PLearn::UnaryVariable.

Definition at line 63 of file MatrixInverseVariable.h.

{
MatrixInverseVariable * PLearn::MatrixInverseVariable::deepCopy ( CopiesMap copies) const [virtual]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

void PLearn::MatrixInverseVariable::fprop ( ) [virtual]

Nothing to do by default.

Reimplemented from PLearn::UnaryVariable.

Definition at line 68 of file MatrixInverseVariable.cc.

References PLearn::UnaryVariable::input, PLearn::inverse(), and PLearn::Variable::matValue.

{
    inverse(input->matValue,matValue);
}

Here is the call graph for this function:

OptionList & PLearn::MatrixInverseVariable::getOptionList ( ) const [virtual]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

OptionMap & PLearn::MatrixInverseVariable::getOptionMap ( ) const [virtual]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

RemoteMethodMap & PLearn::MatrixInverseVariable::getRemoteMethodMap ( ) const [virtual]

Reimplemented from PLearn::UnaryVariable.

Definition at line 53 of file MatrixInverseVariable.cc.

void PLearn::MatrixInverseVariable::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 59 of file MatrixInverseVariable.cc.

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

{
    if (input) {
        l = input->length();
        w = input->width();
    } else
        l = w = 0;
}

Here is the call graph for this function:

void PLearn::MatrixInverseVariable::symbolicBprop ( ) [virtual]

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

Reimplemented from PLearn::Variable.

Definition at line 80 of file MatrixInverseVariable.cc.

References PLERROR.

{
    PLERROR("MatrixInverseVariable: symbolicBprop not implemented yet");
}

Member Data Documentation

Reimplemented from PLearn::UnaryVariable.

Definition at line 63 of file MatrixInverseVariable.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines