24 #ifndef _GEMA_SPARSE_MATRIX_OPTIONS_H_ 25 #define _GEMA_SPARSE_MATRIX_OPTIONS_H_ 51 #define GM_MATRIX_OPTIONS_DEF_RESIZE_FACTOR 2.0 67 const char*
modeStr()
const {
return matrixModeToStr(_mode); }
86 if(_tripletSortStrategy < 0)
95 size_t reserve()
const {
return _reserve; }
110 void setNumThreads(
int nthreads);
124 static int strToMatrixMode(
const QString& str);
131 int _tripletSortStrategy;
void setMode(GmSparseMatrixLayoutMode mode)
Updates the sparse matrix building mode.
Definition: gmSparseMatrixOptions.h:113
GmSparseMatrixLayoutMode mode() const
Returns the mode for building the sparse matrix.
Definition: gmSparseMatrixOptions.h:64
int _nthreads
The maximum number of threads that should be used by sparse matrix.
Definition: gmSparseMatrixOptions.h:130
Batch mode with a (per thread) triplet list.
Definition: gmSparseMatrixOptions.h:37
GmSparseMatrixTripletBufferSortStrategy tripletSortStrategy() const
Returns the sorting strategy used to process triplet lists. If the user didn't specified a value,...
Definition: gmSparseMatrixOptions.h:84
Declaration of usefull configuration definitions for the Core library.
void setLowMemory(bool mode)
Updates the sparse matrix low memory control (used by tests code only)
Definition: gmSparseMatrixOptions.h:116
Set of configuration options for Sparse matrices.
Definition: gmSparseMatrixOptions.h:54
Auxiliar class used to store the complete set of simulation data.
Definition: gmSimulationData.h:51
GmSparseMatrixLayoutMode
Supported modes for building the sparse matrix.
Definition: gmSparseMatrixOptions.h:35
double _resizeFactor
A user given metric for resizing data structures. If 0, will be estimated by GeMA.
Definition: gmSparseMatrixOptions.h:129
void setTripletSortStrategy(GmSparseMatrixTripletBufferSortStrategy st)
Updates the trilet sort strategy control (used by tests code only)
Definition: gmSparseMatrixOptions.h:119
GmSparseMatrixLayoutMode _mode
The mode for building the sparse matrix.
Definition: gmSparseMatrixOptions.h:126
double resizeFactor() const
Returns the user given metric for resizing data structures. Returns 0.0 if the value should be estima...
Definition: gmSparseMatrixOptions.h:100
Declaration of the GmSparseMatrixTripletData and GmSparseMatrixTripletBuffer template classes.
bool lowMemory() const
Returns true if the matrix should favour low memory strategies, false otherwise. If the user didn't s...
Definition: gmSparseMatrixOptions.h:77
Vectors are concatenated and then parallel copy sorted. Faster when there is plenty of memory.
Definition: gmSparseMatrixTripletData.h:111
Layout mode with a vector based structure.
Definition: gmSparseMatrixOptions.h:39
size_t _reserve
A user given estimate of the expected number of triplets / layout entries. If 0, will be estimated by...
Definition: gmSparseMatrixOptions.h:128
#define GMC_API_EXPORT
Macro for controling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_LI...
Definition: gmCoreConfig.h:35
GmSparseMatrixTripletBufferSortStrategy
The strategy used by the GmSparseMatrixTripletBuffer<T>::sortedData() methods.
Definition: gmSparseMatrixTripletData.h:109
Vectors are parallel inplace sorted, followed by a merge operation to the destination vector.
Definition: gmSparseMatrixTripletData.h:112
bool _lowMemory
User given setting to favour low memory strategies.
Definition: gmSparseMatrixOptions.h:127
const char * modeStr() const
Returns the mode for building the sparse matrix as a string.
Definition: gmSparseMatrixOptions.h:67
int numThreads() const
The number of threads that should be used by sparse matrix building code. A value of -1 means the max...
Definition: gmSparseMatrixOptions.h:108
Definition: gmSparseMatrixOptions.h:48
size_t reserve() const
Returns the user given estimate of the expected number of triplets / layout entries....
Definition: gmSparseMatrixOptions.h:95
Layout mode with a hash table.
Definition: gmSparseMatrixOptions.h:38