#include <PrecomputedVMatrix.h>
Inheritance diagram for PLearn::PrecomputedVMatrix:
Public Member Functions | |
PrecomputedVMatrix () | |
virtual void | setMetaDataDir (const string &the_metadatadir) |
Also sets the source's meta-data dir if it's not already set. | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
Transforms a shallow copy into a deep copy. | |
PLEARN_DECLARE_OBJECT (PrecomputedVMatrix) | |
Declares name and deepCopy methods. | |
Public Attributes | |
string | precomp_type |
Protected Member Functions | |
virtual void | getNewRow (int i, const Vec &v) const |
This is the only method requiring implementation. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Protected Attributes | |
VMat | precomp_source |
Private Types | |
typedef SourceVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. | |
void | usePrecomputed () |
|
Reimplemented from PLearn::SourceVMatrix. Definition at line 54 of file PrecomputedVMatrix.h. |
|
Definition at line 52 of file PrecomputedVMatrix.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::SourceVMatrix. Definition at line 145 of file PrecomputedVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::SourceVMatrix. Definition at line 139 of file PrecomputedVMatrix.cc. References PLearn::SourceVMatrix::setMetaInfoFromSource(). Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::SourceVMatrix. Definition at line 70 of file PrecomputedVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
This is the only method requiring implementation.
Reimplemented from PLearn::SourceVMatrix. Definition at line 63 of file PrecomputedVMatrix.cc. References PLearn::PP< VMatrix >::isNull(), PLERROR, precomp_source, and PLearn::Vec. |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::SourceVMatrix. Definition at line 151 of file PrecomputedVMatrix.cc. References PLearn::deepCopyField(), and precomp_source. |
|
Declares name and deepCopy methods.
|
|
Also sets the source's meta-data dir if it's not already set. If there are fields that have no corresponding .smap .notes or .binning info files but the source has those files for a field with the same name, then those of the source will be set also for this vmatrix. Reimplemented from PLearn::SourceVMatrix. Definition at line 88 of file PrecomputedVMatrix.cc. References PLearn::VMatrix::hasMetaDataDir(), and usePrecomputed(). |
|
Definition at line 95 of file PrecomputedVMatrix.cc. References PLearn::append_slash(), PLearn::force_rmdir(), PLearn::VMatrix::getMetaDataDir(), PLearn::isdir(), PLearn::isfile(), PLearn::VMat::length(), PLERROR, precomp_source, precomp_type, and PLearn::rm(). Referenced by setMetaDataDir(). |
|
Definition at line 57 of file PrecomputedVMatrix.h. Referenced by getNewRow(), makeDeepCopyFromShallowCopy(), and usePrecomputed(). |
|
Definition at line 64 of file PrecomputedVMatrix.h. Referenced by usePrecomputed(). |