#include <CrossReferenceVMatrix.h>
Inheritance diagram for PLearn::CrossReferenceVMatrix:


| Public Member Functions | |
| CrossReferenceVMatrix () | |
| default constructor (for automatic deserialization) | |
| CrossReferenceVMatrix (VMat v1, int c1, VMat v2) | |
| The column headings are simply the concatenation of the headings in the two vmatrices. | |
| PLEARN_DECLARE_OBJECT (CrossReferenceVMatrix) | |
| virtual void | build () | 
| Should call simply inherited::build(), then this class's build_(). | |
| virtual void | getRow (int i, Vec samplevec) const | 
| copies row i into v (which must have appropriate length equal to the VMat's width) | |
| virtual real | get (int i, int j) const | 
| returns element (i,j) | |
| 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 | |
| VMat | vm1 | 
| int | col1 | 
| VMat | vm2 | 
| Private Types | |
| typedef VMatrix | inherited | 
| Private Member Functions | |
| void | build_ () | 
| This does the actual building. | |
for i=1,vm1.length() vm.row(i) <- vm1.row(i) + vm2.row(vm1(i,col1))
Definition at line 60 of file CrossReferenceVMatrix.h.
| 
 | 
| 
 Reimplemented from PLearn::VMatrix. Definition at line 62 of file CrossReferenceVMatrix.h. Referenced by CrossReferenceVMatrix(). | 
| 
 | 
| default constructor (for automatic deserialization) 
 Definition at line 51 of file CrossReferenceVMatrix.cc. | 
| 
 | ||||||||||||||||
| The column headings are simply the concatenation of the headings in the two vmatrices. 
 Definition at line 56 of file CrossReferenceVMatrix.cc. | 
| 
 | 
| 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 75 of file CrossReferenceVMatrix.cc. References build_(). Referenced by CrossReferenceVMatrix(). | 
| 
 | 
| This does the actual building. 
 Reimplemented from PLearn::VMatrix. Definition at line 82 of file CrossReferenceVMatrix.cc. 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 66 of file CrossReferenceVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. | 
| 
 | ||||||||||||
| returns element (i,j) 
 Reimplemented from PLearn::VMatrix. Definition at line 108 of file CrossReferenceVMatrix.cc. References col1, PLearn::VMatrix::length(), PLERROR, vm1, vm2, PLearn::VMat::width(), and PLearn::VMatrix::width(). | 
| 
 | ||||||||||||
| copies row i into v (which must have appropriate length equal to the VMat's width) 
 Reimplemented from PLearn::VMatrix. Definition at line 90 of file CrossReferenceVMatrix.cc. References col1, PLearn::TVec< T >::length(), PLearn::VMatrix::length(), PLERROR, PLearn::Vec, vm1, vm2, PLearn::VMat::width(), and PLearn::VMatrix::width(). | 
| 
 | 
| 
 | 
| 
 | 
| in case the dimensions of an underlying vmat has changed, recompute it 
 Reimplemented from PLearn::VMatrix. Definition at line 86 of file CrossReferenceVMatrix.h. References PLERROR. | 
| 
 | 
| 
 Definition at line 66 of file CrossReferenceVMatrix.h. | 
| 
 | 
| 
 Definition at line 65 of file CrossReferenceVMatrix.h. | 
| 
 | 
| 
 Definition at line 67 of file CrossReferenceVMatrix.h. | 
 1.3.7
 1.3.7