CMR  1.3.0
Public Attributes | List of all members
ChrListMat Struct Reference

Linked-list representation of a matrix. More...

#include <listmatrix.h>

Public Attributes

size_t memRows
 Memory for rows. More...
 
size_t numRows
 Number of rows. More...
 
ChrListMatElementrowElements
 Row data. More...
 
size_t memColumns
 Memory for columns. More...
 
size_t numColumns
 Number of columns. More...
 
ChrListMatElementcolumnElements
 Column data. More...
 
size_t numNonzeros
 
ChrListMatNonzero anchor
 Anchor for nonzeros. More...
 
size_t memNonzeros
 Amount of memory for nonzeros. More...
 
ChrListMatNonzerononzeros
 Raw nonzero data. More...
 
ChrListMatNonzerofirstFreeNonzero
 Beginning of free list. More...
 

Detailed Description

Linked-list representation of a matrix.

The Each nonzero is part of two doubly-linked lists, one for all nonzeros in the same row and one for all the nonzeros in the same column.

Note
If the allocated memory for the rows, columns or nonzeros does not suffice, it is automatically reallocated. However, this means that a pointer to a ListMatrixNonzero struct is only valid if no reallocation occurs. Hence, the user must make sure that sufficient memory is allocated or that no such pointers are used.

Member Data Documentation

◆ anchor

ChrListMatNonzero ChrListMat::anchor

Anchor for nonzeros.

◆ columnElements

ChrListMatElement* ChrListMat::columnElements

Column data.

◆ firstFreeNonzero

ChrListMatNonzero* ChrListMat::firstFreeNonzero

Beginning of free list.

◆ memColumns

size_t ChrListMat::memColumns

Memory for columns.

◆ memNonzeros

size_t ChrListMat::memNonzeros

Amount of memory for nonzeros.

◆ memRows

size_t ChrListMat::memRows

Memory for rows.

◆ nonzeros

ChrListMatNonzero* ChrListMat::nonzeros

Raw nonzero data.

◆ numColumns

size_t ChrListMat::numColumns

Number of columns.

◆ numNonzeros

size_t ChrListMat::numNonzeros

◆ numRows

size_t ChrListMat::numRows

Number of rows.

◆ rowElements

ChrListMatElement* ChrListMat::rowElements

Row data.


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