#include <InterleaveVMatrix.h>
Inheritance diagram for PLearn::InterleaveVMatrix:
Public Member Functions | |
InterleaveVMatrix () | |
default constructor (for automatic deserialization) | |
InterleaveVMatrix (Array< VMat > distributions) | |
The field names are copied from the first VMat in the array. | |
InterleaveVMatrix (VMat d1, VMat d2) | |
The field names are copied from the first VMat d1. | |
PLEARN_DECLARE_OBJECT (InterleaveVMatrix) | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
virtual real | get (int i, int j) const |
returns element (i,j) | |
virtual void | getSubRow (int i, int j, Vec v) const |
fills v with the subrow i lying between columns j (inclusive) and j+v.length() (exclusive) | |
virtual void | reset_dimensions () |
in case the dimensions of an underlying vmat has changed, recompute it | |
Static Public Member Functions | |
void | declareOptions (OptionList &ol) |
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) | |
Protected Attributes | |
Array< VMat > | vm |
Private Types | |
typedef VMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
Definition at line 64 of file InterleaveVMatrix.h.
|
Reimplemented from PLearn::VMatrix. Definition at line 66 of file InterleaveVMatrix.h. |
|
default constructor (for automatic deserialization)
Definition at line 51 of file InterleaveVMatrix.cc. |
|
The field names are copied from the first VMat in the array.
Definition at line 55 of file InterleaveVMatrix.cc. References build(). |
|
The field names are copied from the first VMat d1.
Definition at line 61 of file InterleaveVMatrix.cc. References build(). |
|
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::VMatrix. Definition at line 68 of file InterleaveVMatrix.cc. References build_(). Referenced by InterleaveVMatrix(). |
|
This does the actual building.
Reimplemented from PLearn::VMatrix. Definition at line 75 of file InterleaveVMatrix.cc. References PLERROR, PLearn::TVec< VMat >::size(), vm, and PLearn::VMatrix::width(). Referenced by build(). |
|
redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down) ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); } Reimplemented from PLearn::VMatrix. Definition at line 99 of file InterleaveVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
returns element (i,j)
Reimplemented from PLearn::VMatrix. Definition at line 105 of file InterleaveVMatrix.cc. References PLearn::TVec< VMat >::length(), PLearn::VMatrix::length(), PLERROR, PLearn::TVec< VMat >::size(), vm, and PLearn::VMatrix::width(). |
|
fills v with the subrow i lying between columns j (inclusive) and j+v.length() (exclusive)
Reimplemented from PLearn::VMatrix. Definition at line 117 of file InterleaveVMatrix.cc. References PLearn::TVec< VMat >::length(), PLearn::TVec< T >::length(), PLearn::VMatrix::length(), PLERROR, PLearn::TVec< VMat >::size(), PLearn::Vec, vm, and PLearn::VMatrix::width(). |
|
|
|
in case the dimensions of an underlying vmat has changed, recompute it
Reimplemented from PLearn::VMatrix. Definition at line 90 of file InterleaveVMatrix.h. References PLERROR, PLearn::TVec< VMat >::size(), vm, and PLearn::VMatrix::width(). |
|
Definition at line 69 of file InterleaveVMatrix.h. Referenced by build_(), get(), getSubRow(), and reset_dimensions(). |