SparseLibrary  Version 1.6.0
Static Public Member Functions | Static Protected Member Functions | List of all members
CBICRS_factory< _t_value > Class Template Reference

Factory for the Compressed Bi-directional Incremental Compressed Row Storage scheme. More...

#include <CBICRS.hpp>

Static Public Member Functions

static Matrix< _t_value > * getCBICRS (std::string file, _t_value zero=0)
 Factory function for row-based compressed BICRS functions, file-based. More...
 
static Matrix< _t_value > * getCBICCS (std::string file, _t_value zero=0)
 Factory function for column-based compressed BICRS functions, file-based. More...
 
static Matrix< _t_value > * getCBICRS (std::vector< Triplet< _t_value > > &triplets, unsigned long int m, unsigned long int n, _t_value zero=0)
 Factory function for row-based compressed BICRS functions, Triplet-based. More...
 
static Matrix< _t_value > * getCBICCS (std::vector< Triplet< _t_value > > &triplets, unsigned long int m, unsigned long int n, _t_value zero=0)
 Factory function for row-based compressed BICRS functions, Triplet-based. More...
 

Static Protected Member Functions

template<typename _master_i_value , typename _master_j_value , typename _i_value , typename _j_value >
static void investigateCCS (const std::string tn, std::vector< Triplet< _t_value > > input, unsigned long int m, unsigned long int n, unsigned long int &usage, unsigned long int &zle_usage)
 Used for auto-tunes the index type.
 
template<typename _master_i_value , typename _master_j_value , typename _i_value , typename _j_value >
static void investigate (const std::string tn, std::vector< Triplet< _t_value > > triplets, ULI m, ULI n, unsigned long int &usage, unsigned long int &zle_usage)
 Used for auto-tuning of the index type.
 

Detailed Description

template<typename _t_value>
class CBICRS_factory< _t_value >

Factory for the Compressed Bi-directional Incremental Compressed Row Storage scheme.

Auto-tunes index type (signed char, short int, int or long int). May revert back to a plain BICRS implementation.

Warning: assertions may be used! For optimal performance, define the NDEBUG flag (pass -DNDEBUG as a compiler flag).

Member Function Documentation

template<typename _t_value >
static Matrix< _t_value >* CBICRS_factory< _t_value >::getCBICCS ( std::string  file,
_t_value  zero = 0 
)
inlinestatic

Factory function for column-based compressed BICRS functions, file-based.

Parameters
fileInput file path.
zeroWhat is considered zero for the resulting sparse matrix.
Returns
A compressed sparse matrix representation.

References FileToVT::parse().

template<typename _t_value >
static Matrix< _t_value >* CBICRS_factory< _t_value >::getCBICCS ( std::vector< Triplet< _t_value > > &  triplets,
unsigned long int  m,
unsigned long int  n,
_t_value  zero = 0 
)
inlinestatic

Factory function for row-based compressed BICRS functions, Triplet-based.

Parameters
tripletsTriplet-based input matrix.
mThe number of rows in the input matrix.
nThe number of columns in the input matrix.
zeroWhat is considered zero for the resulting sparse matrix.
Returns
A compressed sparse matrix representation.
template<typename _t_value >
static Matrix< _t_value >* CBICRS_factory< _t_value >::getCBICRS ( std::string  file,
_t_value  zero = 0 
)
inlinestatic

Factory function for row-based compressed BICRS functions, file-based.

Parameters
fileInput file path.
zeroWhat is considered zero for the resulting sparse matrix.
Returns
A compressed sparse matrix representation.

References FileToVT::parse().

Referenced by Hilbert< T >::getDataStructure().

template<typename _t_value >
static Matrix< _t_value >* CBICRS_factory< _t_value >::getCBICRS ( std::vector< Triplet< _t_value > > &  triplets,
unsigned long int  m,
unsigned long int  n,
_t_value  zero = 0 
)
inlinestatic

Factory function for row-based compressed BICRS functions, Triplet-based.

Parameters
tripletsTriplet-based input matrix.
mThe number of rows in the input matrix.
nThe number of columns in the input matrix.
zeroWhat is considered zero for the resulting sparse matrix.
Returns
A compressed sparse matrix representation.

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