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

#include <RowBufferedVMatrix.h>

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

List of all members.

Public Member Functions

 RowBufferedVMatrix (bool call_build_=false)
 RowBufferedVMatrix (int the_length, int the_width, bool call_build_=false)
virtual real get (int i, int j) const
 These methods are implemented by buffering calls to getNewRow.
virtual void getRow (int i, Vec v) const
 These methods do not usually need to be overridden in subclasses (default versions call getSubRow, which should do just fine)
virtual void getSubRow (int i, int j, Vec v) const
 fills v with the subrow i laying between columns j (inclusive) and j+v.length() (exclusive)
virtual real dot (int i1, int i2, int inputsize) const
 Returns the dot product between row i1 and row i2 (considering only the inputsize first elements).
virtual real dot (int i, const Vec &v) const
 Returns the result of the dot product between row i and the given vec (only v.length() first elements of row i are considered).
virtual void makeDeepCopyFromShallowCopy (CopiesMap &copies)
 Transforms a shallow copy into a deep copy.
virtual RowBufferedVMatrixdeepCopy (CopiesMap &copies) const

Static Public Member Functions

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

Static Public Attributes

static StaticInitializer _static_initializer_

Protected Member Functions

virtual void getNewRow (int i, const Vec &v) const =0
 This is the only method requiring implementation in subclasses.
virtual void invalidateBuffer () const
 This method must be called when you modify the VMatrix: mark the buffer as invalid so the next call to one of the get* methods will not attempt to use it.

Protected Attributes

int current_row_index
Vec current_row
int other_row_index
 used by dot
Vec other_row

Private Types

typedef VMatrix inherited

Detailed Description

Definition at line 55 of file RowBufferedVMatrix.h.


Member Typedef Documentation

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::SDBVMatrix, PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::ThresholdVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 60 of file RowBufferedVMatrix.h.


Constructor & Destructor Documentation

PLearn::RowBufferedVMatrix::RowBufferedVMatrix ( bool  call_build_ = false)

Definition at line 66 of file RowBufferedVMatrix.cc.

                                                      :
    inherited        (call_build_),
    current_row_index(-1),
    other_row_index  (-1)
{
    // Never calling build_() since it is not overridden for this class.
}
PLearn::RowBufferedVMatrix::RowBufferedVMatrix ( int  the_length,
int  the_width,
bool  call_build_ = false 
)

Definition at line 55 of file RowBufferedVMatrix.cc.

                                                        :
    inherited           (the_length, the_width, call_build_),
    current_row_index   (-1),
    current_row         (the_width),
    other_row_index     (-1),
    other_row           (the_width)
{
    // Never calling build_() since it is not overridden for this class.
}

Member Function Documentation

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

RowBufferedVMatrix.

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 53 of file RowBufferedVMatrix.cc.

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

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 53 of file RowBufferedVMatrix.cc.

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

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 53 of file RowBufferedVMatrix.cc.

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

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 53 of file RowBufferedVMatrix.cc.

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

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 53 of file RowBufferedVMatrix.cc.

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

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 92 of file RowBufferedVMatrix.h.

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

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 53 of file RowBufferedVMatrix.cc.

real PLearn::RowBufferedVMatrix::dot ( int  i1,
int  i2,
int  inputsize 
) const [virtual]

Returns the dot product between row i1 and row i2 (considering only the inputsize first elements).

The default version in VMatrix is somewhat inefficient, as it repeatedly calls get(i,j) The default version in RowBufferedVMatrix is a little better as it buffers the 2 Vecs between calls in case one of them is needed again. But the real strength of this method is for specialised and efficient versions in subbclasses. This method is typically used by SmartKernels so that they can compute kernel values between input samples efficiently.

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::CompactVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::OneHotVMatrix, PLearn::SelectRowsVMatrix, PLearn::SparseVMatrix, PLearn::SubVMatrix, and PLearn::TemporalHorizonVMatrix.

Definition at line 132 of file RowBufferedVMatrix.cc.

References current_row, current_row_index, getNewRow(), PLearn::VMatrix::length(), PLearn::VMatrix::length_, other_row, other_row_index, PLERROR, PLearn::pownorm(), PLearn::TVec< T >::resize(), PLearn::TVec< T >::subVec(), w, and PLearn::VMatrix::width_.

Referenced by PLearn::SubVMatrix::dot(), and dot().

{
#ifdef BOUNDCHECK
    if (i1 < 0 || (i1 >= length() && length() >= 0))
        PLERROR("In RowBufferedVMatrix::dot: first row index (%d) outside valid range [%d,%d]", i1, 0, length_-1);
    if (i2 < 0 || (i2 >= length() && length() >= 0))
        PLERROR("In RowBufferedVMatrix::dot: second row index (%d) outside valid range [%d,%d]", i2, 0, length_-1);
#endif
    int w = width_;
    current_row.resize(w);
    other_row.resize(w);

    if(i1==current_row_index)
    {
        if(i2==i1)
            return pownorm(current_row.subVec(0,inputsize));
        if(i2!=other_row_index)
        {
            getNewRow(i2,other_row);
            other_row_index = i2;
        }
    }
    else if(i1==other_row_index)
    {
        if(i2==i1)
            return pownorm(other_row.subVec(0,inputsize));
        if(i2!=current_row_index)
        {
            getNewRow(i2,current_row);
            current_row_index = i2;
        }
    }
    else // i1 not cached
    {
        if(i2==current_row_index)
        {
            getNewRow(i1,other_row);
            other_row_index = i1;
        }
        else if(i2==other_row_index)
        {
            getNewRow(i1,current_row);
            current_row_index = i1;
        }
        else // neither i1 nor i2 are cached
        {
            getNewRow(i1,current_row);
            getNewRow(i2,other_row);
            current_row_index = i1;
            other_row_index = i2;
        }
    }
    return PLearn::dot(current_row.subVec(0,inputsize), other_row.subVec(0,inputsize));
}

Here is the call graph for this function:

Here is the caller graph for this function:

real PLearn::RowBufferedVMatrix::dot ( int  i,
const Vec v 
) const [virtual]

Returns the result of the dot product between row i and the given vec (only v.length() first elements of row i are considered).

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::CompactVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::OneHotVMatrix, PLearn::SelectRowsVMatrix, PLearn::SparseVMatrix, PLearn::SubVMatrix, and PLearn::TemporalHorizonVMatrix.

Definition at line 190 of file RowBufferedVMatrix.cc.

References current_row, current_row_index, dot(), getNewRow(), i, PLearn::TVec< T >::length(), PLearn::VMatrix::length(), PLearn::VMatrix::length_, PLERROR, PLearn::TVec< T >::resize(), PLearn::TVec< T >::subVec(), and PLearn::VMatrix::width_.

{
    if(i!=current_row_index)
    {
#ifdef BOUNDCHECK
        if (i < 0 || i >= length())
            PLERROR("In RowBufferedVMatrix::dot: row index (%d) outside valid range [%d,%d]", i, 0, length_-1);
#endif
        current_row.resize(width_);
        getNewRow(i,current_row);
        current_row_index = i;
    }
    return PLearn::dot(current_row.subVec(0,v.length()),v);
}

Here is the call graph for this function:

real PLearn::RowBufferedVMatrix::get ( int  i,
int  j 
) const [virtual]

These methods are implemented by buffering calls to getNewRow.

returns element (i,j)

Implements PLearn::VMatrix.

Reimplemented in PLearn::ClassSubsetVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsVMatrix, PLearn::SubVMatrix, and PLearn::TemporalHorizonVMatrix.

Definition at line 80 of file RowBufferedVMatrix.cc.

References current_row, current_row_index, getNewRow(), i, j, PLearn::VMatrix::length(), PLearn::VMatrix::length_, PLERROR, PLearn::TVec< T >::resize(), PLearn::VMatrix::width(), and PLearn::VMatrix::width_.

{
    if(current_row_index!=i)
    {
#ifdef BOUNDCHECK
        if (i < 0 || (i >= length() && length() >= 0))
            PLERROR("In RowBufferedVMatrix::get: row index (%d) outside valid range [%d,%d]", i, 0, length_-1);
        if (j < 0 || j >= width())
            PLERROR("In RowBufferedVMatrix::get: column index (%d) outside valid range [%d,%d]", j, 0, width_-1);
#endif
        current_row.resize(width_);
        getNewRow(i, current_row);
        current_row_index = i;
    }
    return current_row[j];
}

Here is the call graph for this function:

virtual void PLearn::RowBufferedVMatrix::getNewRow ( int  i,
const Vec v 
) const [protected, pure virtual]

This is the only method requiring implementation in subclasses.

Implemented in PLearn::AutoSDBVMatrix, PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::CenteredVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RepeatVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::ThresholdVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Referenced by dot(), get(), getRow(), and getSubRow().

Here is the caller graph for this function:

void PLearn::RowBufferedVMatrix::getRow ( int  i,
Vec  v 
) const [virtual]

These methods do not usually need to be overridden in subclasses (default versions call getSubRow, which should do just fine)

Copies row i into v (which must have appropriate length equal to the VMat's width).

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::SDBVMatrix, and PLearn::IntStreamVMatrix.

Definition at line 98 of file RowBufferedVMatrix.cc.

References PLearn::TVec< T >::copyFrom(), current_row, current_row_index, PLearn::TVec< T >::data(), getNewRow(), i, PLearn::VMatrix::length(), PLearn::VMatrix::length_, PLERROR, PLearn::TVec< T >::resize(), and PLearn::VMatrix::width_.

Referenced by PLearn::CompactVMatrix::append(), PLearn::TextFilesVMatrix::autoBuildMappings(), PLearn::CompactVMatrix::dot(), and PLearn::FileVMatrixTest::perform().

                                                  {
    if (current_row_index != i) {
#ifdef BOUNDCHECK
        if (i < 0 || (i >= length() && length() >= 0))
            PLERROR("In RowBufferedVMatrix::getRow: row index (%d) outside valid range [%d,%d]", i, 0, length_-1);
#endif
        current_row.resize(width_);
        getNewRow(i, current_row);
        current_row_index = i;
    }
    if (width_ > 0)
        v.copyFrom(current_row.data(), width_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void PLearn::RowBufferedVMatrix::getSubRow ( int  i,
int  j,
Vec  v 
) const [virtual]

fills v with the subrow i laying between columns j (inclusive) and j+v.length() (exclusive)

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::ClassSubsetVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsVMatrix, and PLearn::SubVMatrix.

Definition at line 113 of file RowBufferedVMatrix.cc.

References PLearn::TVec< T >::copyFrom(), current_row, current_row_index, PLearn::TVec< T >::data(), getNewRow(), i, j, PLearn::VMatrix::length(), PLearn::TVec< T >::length(), PLearn::VMatrix::length_, PLERROR, PLearn::TVec< T >::resize(), PLearn::VMatrix::width(), and PLearn::VMatrix::width_.

{
    if(current_row_index!=i)
    {
#ifdef BOUNDCHECK
        if ((i < 0 || i >= length()) && length() >= 0)
            PLERROR("In RowBufferedVMatrix::getSubRow: row index (%d) outside valid range [%d,%d]", i, 0, length_-1);
        if ((j < 0 || j >= width()) && width() >= 0)
            PLERROR("In RowBufferedVMatrix::getSubRow: column index (%d) outside valid range [%d,%d]", i, 0, width_-1);
#endif
        current_row.resize(width_);
        getNewRow(i,current_row);
        current_row_index = i;
    }
    if (v.length() > 0)
        v.copyFrom(current_row.data()+j, v.length());
}

Here is the call graph for this function:

void PLearn::RowBufferedVMatrix::invalidateBuffer ( ) const [protected, virtual]

This method must be called when you modify the VMatrix: mark the buffer as invalid so the next call to one of the get* methods will not attempt to use it.

Definition at line 74 of file RowBufferedVMatrix.cc.

References current_row_index, and other_row_index.

Referenced by PLearn::CompactVMatrix::encodeAndPutRow(), PLearn::FileVMatrix::put(), PLearn::CompactVMatrix::putSubRow(), and PLearn::FileVMatrix::putSubRow().

Here is the caller graph for this function:

void PLearn::RowBufferedVMatrix::makeDeepCopyFromShallowCopy ( CopiesMap copies) [virtual]

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::ViewSplitterVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 208 of file RowBufferedVMatrix.cc.

References current_row, PLearn::deepCopyField(), PLearn::VMatrix::makeDeepCopyFromShallowCopy(), and other_row.

Referenced by PLearn::TextSenseSequenceVMatrix::makeDeepCopyFromShallowCopy(), PLearn::TextFilesVMatrix::makeDeepCopyFromShallowCopy(), PLearn::SplitWiseValidationVMatrix::makeDeepCopyFromShallowCopy(), PLearn::SourceVMatrix::makeDeepCopyFromShallowCopy(), PLearn::RegularGridVMatrix::makeDeepCopyFromShallowCopy(), PLearn::RandomSamplesFromVMatrix::makeDeepCopyFromShallowCopy(), PLearn::PythonTableVMatrix::makeDeepCopyFromShallowCopy(), PLearn::MultiInstanceVMatrix::makeDeepCopyFromShallowCopy(), PLearn::MixtureVMatrix::makeDeepCopyFromShallowCopy(), PLearn::LIBSVMSparseVMatrix::makeDeepCopyFromShallowCopy(), PLearn::LearnerProcessedVMatrix::makeDeepCopyFromShallowCopy(), PLearn::InfiniteMNISTVMatrix::makeDeepCopyFromShallowCopy(), PLearn::FileVMatrix::makeDeepCopyFromShallowCopy(), PLearn::ExtractNNetParamsVMatrix::makeDeepCopyFromShallowCopy(), PLearn::DiskVMatrix::makeDeepCopyFromShallowCopy(), PLearn::DictionaryVMatrix::makeDeepCopyFromShallowCopy(), PLearn::DatedJoinVMatrix::makeDeepCopyFromShallowCopy(), PLearn::ConcatColumnsVMatrix::makeDeepCopyFromShallowCopy(), PLearn::CompactFileVMatrix::makeDeepCopyFromShallowCopy(), PLearn::BinaryOpVMatrix::makeDeepCopyFromShallowCopy(), and PLearn::BinaryNumbersVMatrix::makeDeepCopyFromShallowCopy().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from PLearn::VMatrix.

Reimplemented in PLearn::PythonProcessedVMatrix, PLearn::AddBagInformationVMatrix, PLearn::AddMissingVMatrix, PLearn::AppendNeighborsVMatrix, PLearn::AsciiVMatrix, PLearn::BinaryNumbersVMatrix, PLearn::BinaryOpVMatrix, PLearn::BootstrapVMatrix, PLearn::CenteredVMatrix, PLearn::ClassSubsetVMatrix, PLearn::CompactFileVMatrix, PLearn::CompactVMatrix, PLearn::CompressedVMatrix, PLearn::ConcatColumnsVMatrix, PLearn::ConcatRowsSubVMatrix, PLearn::CumVMatrix, PLearn::DatedJoinVMatrix, PLearn::LearnerProcessedVMatrix, PLearn::DichotomizeVMatrix, PLearn::DictionaryVMatrix, PLearn::DiskVMatrix, PLearn::DisregardRowsVMatrix, PLearn::EncodedVMatrix, PLearn::ExtendedVMatrix, PLearn::ExtractNNetParamsVMatrix, PLearn::FileVMatrix, PLearn::FilteredVMatrix, PLearn::FinancePreprocVMatrix, PLearn::GaussianizeVMatrix, PLearn::GeneralizedOneHotVMatrix, PLearn::GetInputVMatrix, PLearn::IndexedVMatrix, PLearn::InfiniteMNISTVMatrix, PLearn::JoinVMatrix, PLearn::JulianizeVMatrix, PLearn::KNNImputationVMatrix, PLearn::KNNVMatrix, PLearn::LemmatizeVMatrix, PLearn::LIBSVMSparseVMatrix, PLearn::LocallyPrecomputedVMatrix, PLearn::LocalNeighborsDifferencesVMatrix, PLearn::MeanImputationVMatrix, PLearn::MissingInstructionVMatrix, PLearn::MixtureVMatrix, PLearn::MixUnlabeledNeighbourVMatrix, PLearn::MovingAverageVMatrix, PLearn::MultiInstanceVMatrix, PLearn::MultiTargetOneHotVMatrix, PLearn::MultiToUniInstanceSelectRandomVMatrix, PLearn::OneHotVMatrix, PLearn::OneVsAllVMatrix, PLearn::PairsVMatrix, PLearn::PLearnerOutputVMatrix, PLearn::PrecomputedVMatrix, PLearn::ProcessingVMatrix, PLearn::ProcessSymbolicSequenceVMatrix, PLearn::PutSubVMatrix, PLearn::PythonTableVMatrix, PLearn::RandomNeighborsDifferencesVMatrix, PLearn::RandomSamplesFromVMatrix, PLearn::RandomSamplesVMatrix, PLearn::RankedVMatrix, PLearn::RealFunctionsProcessedVMatrix, PLearn::RegularGridVMatrix, PLearn::ReIndexedTargetVMatrix, PLearn::RemapLastColumnVMatrix, PLearn::RemoveDuplicateVMatrix, PLearn::ReorderByMissingVMatrix, PLearn::RepeatVMatrix, PLearn::ReplicateSamplesVMatrix, PLearn::RowsSubVMatrix, PLearn::SelectColumnsVMatrix, PLearn::SelectRowsMultiInstanceVMatrix, PLearn::SelectRowsVMatrix, PLearn::SeparateInputVMatrix, PLearn::ShiftAndRescaleVMatrix, PLearn::ShuffleColumnsVMatrix, PLearn::SortRowsVMatrix, PLearn::SourceVMatrix, PLearn::SparseVMatrix, PLearn::SplitWiseValidationVMatrix, PLearn::StochasticBinarizeVMatrix, PLearn::SubInputVMatrix, PLearn::SubVMatrix, PLearn::TemporalHorizonVMatrix, PLearn::TemporaryDiskVMatrix, PLearn::TemporaryFileVMatrix, PLearn::TextFilesVMatrix, PLearn::TextStreamVMatrix, PLearn::TransposeVMatrix, PLearn::UniformizeVMatrix, PLearn::UpsideDownVMatrix, PLearn::ValueSelectRowsVMatrix, PLearn::VariableDeletionVMatrix, PLearn::VecExtendedVMatrix, PLearn::ViewSplitterVMatrix, PLearn::PreprocessingVMatrix, and PLearn::TextSenseSequenceVMatrix.

Definition at line 92 of file RowBufferedVMatrix.h.

used by dot

Definition at line 66 of file RowBufferedVMatrix.h.

Referenced by PLearn::DiskVMatrix::build_(), dot(), and invalidateBuffer().


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