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

Linked-list representation of a matrix with 8-bit integer values. More...

#include <listmatrix.h>

Public Attributes

size_t memRows
 Memory for rows. More...
 
size_t numRows
 Number of rows. More...
 
ListMat8ElementrowElements
 Row data. More...
 
size_t memColumns
 Memory for columns. More...
 
size_t numColumns
 Number of columns. More...
 
ListMat8ElementcolumnElements
 Column data. More...
 
size_t numNonzeros
 
ListMat8Nonzero anchor
 Anchor for nonzeros. More...
 
size_t memNonzeros
 Amount of memory for nonzeros. More...
 
ListMat8Nonzerononzeros
 Raw nonzero data. More...
 
ListMat8NonzerofirstFreeNonzero
 Beginning of free list; uses right pointers. More...
 

Detailed Description

Linked-list representation of a matrix with 8-bit integer values.

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 ListMat8Nonzero 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

ListMat8Nonzero ListMat8::anchor

Anchor for nonzeros.

◆ columnElements

ListMat8Element* ListMat8::columnElements

Column data.

◆ firstFreeNonzero

ListMat8Nonzero* ListMat8::firstFreeNonzero

Beginning of free list; uses right pointers.

◆ memColumns

size_t ListMat8::memColumns

Memory for columns.

◆ memNonzeros

size_t ListMat8::memNonzeros

Amount of memory for nonzeros.

◆ memRows

size_t ListMat8::memRows

Memory for rows.

◆ nonzeros

ListMat8Nonzero* ListMat8::nonzeros

Raw nonzero data.

◆ numColumns

size_t ListMat8::numColumns

Number of columns.

◆ numNonzeros

size_t ListMat8::numNonzeros

◆ numRows

size_t ListMat8::numRows

Number of rows.

◆ rowElements

ListMat8Element* ListMat8::rowElements

Row data.


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