Poplar and PopLibs
popsparse::COOMatrix< T > Struct Template Reference

Block Sparse matrix stored as coordinate (COO) or triplets format. More...

#include <SparseStorageFormats.hpp>

Inherits popsparse::Block.

Public Member Functions

 COOMatrix (std::size_t numNZValues, const std::array< std::size_t, 2 > &blockDimensions_={1, 1})
 Constructor to allocate memory.
 

Public Attributes

std::vector< T > nzValues
 The non-zero values of the sparse matrix.
 
std::vector< std::size_t > columnIndices
 Corresponding column indices for the non-zero values.
 
std::vector< std::size_t > rowIndices
 Corresponding row indices for the non-zero values.
 

Detailed Description

template<typename T>
struct popsparse::COOMatrix< T >

Block Sparse matrix stored as coordinate (COO) or triplets format.

The case of element sparsity is treated as a special case with block size equal to {number of rows in block, number of columns in block} = {1, 1}.


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