GemaCoreLib
The GeMA Core library
Classes | Enumerations | Functions
gmSparseMatrixTripletData.h File Reference

Declaration of the GmSparseMatrixTripletData and GmSparseMatrixTripletBuffer template classes. More...

#include "gmCoreConfig.h"
#include "gmSparseMatrixLayout.h"
#include "gmAppendBuffer.h"
Include dependency graph for gmSparseMatrixTripletData.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GmSparseMatrixTripletData< T >
 Aux structure used when building sparse matrices with the help of a triplet list. The tripet structure stores 2 ints. More...
 
class  GmSparseMatrixTripletBuffer< T >
 An especialization of GmAppendBufffer for triplet data with an extra method for returning the buffer already sorted. More...
 
class  GmSparseMatrixSingleTripletBuffer< T >
 Especialization of the GmSingleAppendBuffer class using the GmSparseMatrixTripletBuffer interface. More...
 
class  GmSparseMatrixPerThreadTripletBuffer< T >
 Especialization of the GmPerThreadAppendBuffer class using the GmSparseMatrixTripletBuffer interface. More...
 

Enumerations

enum  GmSparseMatrixTripletBufferSortStrategy { GM_TRIBUF_SS_CONCAT_PCSORT, GM_TRIBUF_SS_ISORT_MERGE }
 The strategy used by the GmSparseMatrixTripletBuffer<T>::sortedData() methods. More...
 

Functions

 Q_DECLARE_TYPEINFO (GmSparseMatrixTripletData< GM_CSC_SPARSE_FORMAT >, Q_PRIMITIVE_TYPE)
 
 Q_DECLARE_TYPEINFO (GmSparseMatrixTripletData< GM_CSR_SPARSE_FORMAT >, Q_PRIMITIVE_TYPE)
 

Detailed Description

Declaration of the GmSparseMatrixTripletData and GmSparseMatrixTripletBuffer template classes.

Author
Carlos A. T. Mendes
Date
january, 2019

Enumeration Type Documentation

◆ GmSparseMatrixTripletBufferSortStrategy

The strategy used by the GmSparseMatrixTripletBuffer<T>::sortedData() methods.

Enumerator
GM_TRIBUF_SS_CONCAT_PCSORT 

Vectors are concatenated and then parallel copy sorted. Faster when there is plenty of memory.

GM_TRIBUF_SS_ISORT_MERGE 

Vectors are parallel inplace sorted, followed by a merge operation to the destination vector.