aimsdata  4.7.0
Neuroimaging data handling
aims::SparseOrDenseMatrix::MatrixLazyReader Class Reference

MatrixLazyReader allows to read a row or a column from file, on demand. More...

#include <aims/sparsematrix/sparseordensematrix.h>

Public Member Functions

 MatrixLazyReader ()
 
virtual ~MatrixLazyReader ()
 
virtual bool hasRow (int32_t) const
 tells if row s1 has already been read. More...
 
virtual bool hasColumn (int32_t) const
 tells if column s2 has already been read. More...
 
virtual std::vector< double > * readRow (int32_t, bool store=true)
 
virtual std::vector< double > * readColumn (int32_t, bool store=true)
 
virtual void freeRow (int32_t)
 
virtual void freeColumn (int32_t)
 
virtual void selectDimension (const std::vector< int32_t > &)
 
void setInfFiltering (bool keep_inf, bool keep_nan)
 
bool keepsInf () const
 
bool keepsNan () const
 

Detailed Description

MatrixLazyReader allows to read a row or a column from file, on demand.

It is useful to read partially very large matrices.

The default implementation does just nothing.

Definition at line 55 of file sparseordensematrix.h.

Constructor & Destructor Documentation

◆ MatrixLazyReader()

aims::SparseOrDenseMatrix::MatrixLazyReader::MatrixLazyReader ( )
inline

Definition at line 58 of file sparseordensematrix.h.

◆ ~MatrixLazyReader()

virtual aims::SparseOrDenseMatrix::MatrixLazyReader::~MatrixLazyReader ( )
inlinevirtual

Definition at line 59 of file sparseordensematrix.h.

Member Function Documentation

◆ freeColumn()

virtual void aims::SparseOrDenseMatrix::MatrixLazyReader::freeColumn ( int32_t  )
inlinevirtual

Definition at line 74 of file sparseordensematrix.h.

◆ freeRow()

virtual void aims::SparseOrDenseMatrix::MatrixLazyReader::freeRow ( int32_t  )
inlinevirtual

Definition at line 73 of file sparseordensematrix.h.

◆ hasColumn()

virtual bool aims::SparseOrDenseMatrix::MatrixLazyReader::hasColumn ( int32_t  ) const
inlinevirtual

tells if column s2 has already been read.

If so, SparseOrDenseMatrix::readColumn will not read it again.

Definition at line 67 of file sparseordensematrix.h.

◆ hasRow()

virtual bool aims::SparseOrDenseMatrix::MatrixLazyReader::hasRow ( int32_t  ) const
inlinevirtual

tells if row s1 has already been read.

If so, SparseOrDenseMatrix::readRow will not read it again.

Definition at line 63 of file sparseordensematrix.h.

◆ keepsInf()

bool aims::SparseOrDenseMatrix::MatrixLazyReader::keepsInf ( ) const
inline

Definition at line 78 of file sparseordensematrix.h.

◆ keepsNan()

bool aims::SparseOrDenseMatrix::MatrixLazyReader::keepsNan ( ) const
inline

Definition at line 79 of file sparseordensematrix.h.

◆ readColumn()

virtual std::vector<double>* aims::SparseOrDenseMatrix::MatrixLazyReader::readColumn ( int32_t  ,
bool  store = true 
)
inlinevirtual

Definition at line 70 of file sparseordensematrix.h.

◆ readRow()

virtual std::vector<double>* aims::SparseOrDenseMatrix::MatrixLazyReader::readRow ( int32_t  ,
bool  store = true 
)
inlinevirtual

Definition at line 68 of file sparseordensematrix.h.

◆ selectDimension()

virtual void aims::SparseOrDenseMatrix::MatrixLazyReader::selectDimension ( const std::vector< int32_t > &  )
inlinevirtual

Definition at line 75 of file sparseordensematrix.h.

◆ setInfFiltering()

void aims::SparseOrDenseMatrix::MatrixLazyReader::setInfFiltering ( bool  keep_inf,
bool  keep_nan 
)
inline

Definition at line 76 of file sparseordensematrix.h.


The documentation for this class was generated from the following file: