File matrix_lil.hpp

Typedefs

template<typename Matrix>
using LilMatrixDecorator = IterableListOfListsDecorator<MatrixDecorator<Matrix>>

Provides row-wise read and write access via iterators to the values stored in a sparse matrix in the list of lists (LIL) format.

Template Parameters:

Matrix – The type of the matrix

template<typename T>
class LilMatrix : public IterableListOfListsDecorator<AllocatedListOfLists<IndexedValue<T>>>
#include <matrix_lil.hpp>

A two-dimensional matrix that provides row-wise read and write access to values that are stored in a newly allocated sparse matrix in the list of lists (LIL) format.

Public Functions

inline LilMatrix(uint32 numRows, uint32 numCols)
Parameters:
  • numRows – The number of rows in the matrix

  • numCols – The number of columns in the matrix