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

#include <LeftPseudoInverseVariable.h>

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

List of all members.

Public Member Functions

 LeftPseudoInverseVariable ()
 Default constructor for persistence.
 LeftPseudoInverseVariable (Variable *input)
virtual string classname () const
virtual OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual LeftPseudoInverseVariabledeepCopy (CopiesMap &copies) const
virtual void build ()
 Post-constructor.
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_ ()
 LeftPseudoInverseVariable.
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_

Protected Member Functions

void build_ ()
 Object-specific post-constructor.

Private Types

typedef UnaryVariable inherited

Detailed Description

Definition at line 52 of file LeftPseudoInverseVariable.h.


Member Typedef Documentation

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.h.


Constructor & Destructor Documentation

PLearn::LeftPseudoInverseVariable::LeftPseudoInverseVariable ( ) [inline]

Default constructor for persistence.

Definition at line 58 of file LeftPseudoInverseVariable.h.

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

Definition at line 56 of file LeftPseudoInverseVariable.cc.

References build_().

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

Here is the call graph for this function:


Member Function Documentation

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

LeftPseudoInverseVariable.

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Nothing to do by default.

Reimplemented from PLearn::UnaryVariable.

Definition at line 94 of file LeftPseudoInverseVariable.cc.

References PLERROR.

{
    PLERROR("LeftPseudoInverseVariable: bprop not implemented yet");
}
void PLearn::LeftPseudoInverseVariable::build ( ) [virtual]

Post-constructor.

The normal implementation should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::UnaryVariable.

Definition at line 63 of file LeftPseudoInverseVariable.cc.

References PLearn::UnaryVariable::build(), and build_().

Here is the call graph for this function:

void PLearn::LeftPseudoInverseVariable::build_ ( ) [protected]

Object-specific post-constructor.

This method should be redefined in subclasses and do the actual building of the object according to previously set option fields. Constructors can just set option fields, and then call build_. This method is NOT virtual, and will typically be called only from three places: a constructor, the public virtual build() method, and possibly the public virtual read method (which calls its parent's read). build_() can assume that its parent's build_() has already been called.

Reimplemented from PLearn::UnaryVariable.

Definition at line 70 of file LeftPseudoInverseVariable.cc.

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

Referenced by build(), and LeftPseudoInverseVariable().

{
    if (input) {
        if (input->width() < input->length())
            PLERROR("LeftPseudoInverseVariable(Var): input width_(%d) < length_(%d)",
                    input->width(), input->length());
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

string PLearn::LeftPseudoInverseVariable::classname ( ) const [virtual]

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 61 of file LeftPseudoInverseVariable.h.

:
    void build_();
LeftPseudoInverseVariable * PLearn::LeftPseudoInverseVariable::deepCopy ( CopiesMap copies) const [virtual]

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Nothing to do by default.

Reimplemented from PLearn::UnaryVariable.

Definition at line 88 of file LeftPseudoInverseVariable.cc.

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

Here is the call graph for this function:

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

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

Reimplemented from PLearn::UnaryVariable.

Definition at line 54 of file LeftPseudoInverseVariable.cc.

void PLearn::LeftPseudoInverseVariable::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 79 of file LeftPseudoInverseVariable.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::LeftPseudoInverseVariable::symbolicBprop ( ) [virtual]

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

Reimplemented from PLearn::Variable.

Definition at line 100 of file LeftPseudoInverseVariable.cc.

References PLERROR.

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

Member Data Documentation

Reimplemented from PLearn::UnaryVariable.

Definition at line 61 of file LeftPseudoInverseVariable.h.


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