H2Lib
3.0
|
Representation of the sparsity pattern of a matrix. More...
Data Structures | |
struct | _sparsepattern |
Representation of the sparsity pattern of a matrix. More... | |
struct | _patentry |
Representation of one non-zero entry in a sparsepattern. More... | |
Typedefs | |
typedef struct _sparsepattern | sparsepattern |
Representation of the sparsity pattern of a matrix. | |
typedef sparsepattern * | psparsepattern |
Pointer to sparsepattern object. | |
typedef const sparsepattern * | pcsparsepattern |
Pointer to constant sparsepattern object. | |
typedef struct _patentry | patentry |
Representation of one non-zero entry in a sparsepattern. | |
typedef patentry * | ppatentry |
Pointer to patentry. | |
typedef const patentry * | pcpatentry |
Pointer to constant patentry. | |
Functions | |
psparsepattern | new_sparsepattern (uint rows, uint cols) |
Create an empty sparsepattern object. More... | |
void | del_sparsepattern (psparsepattern sp) |
Delete a sparsepattern object. More... | |
void | clear_sparsepattern (psparsepattern sp) |
Remove all non-zero entries from a sparsepattern object. More... | |
void | addnz_sparsepattern (psparsepattern sp, uint row, uint col) |
Add a non-zero entry to a sparsepattern object, unless it already exists. More... | |
void | print_sparsepattern (pcsparsepattern sp) |
Print a sparsity pattern. More... | |
Representation of the sparsity pattern of a matrix.
void addnz_sparsepattern | ( | psparsepattern | sp, |
uint | row, | ||
uint | col | ||
) |
Add a non-zero entry to a sparsepattern object, unless it already exists.
sp | Target sparsepattern object. |
row | Row of the non-zero entry. |
col | Column of the non-zero entry. |
void clear_sparsepattern | ( | psparsepattern | sp | ) |
Remove all non-zero entries from a sparsepattern object.
sp | Object to be cleared. |
void del_sparsepattern | ( | psparsepattern | sp | ) |
Delete a sparsepattern object.
Releases the storage corresponding to this object.
sp | Object to be deleted. |
psparsepattern new_sparsepattern | ( | uint | rows, |
uint | cols | ||
) |
Create an empty sparsepattern object.
rows | Number of rows of the sparse matrix. |
cols | Number of columns of the sparse matrix. |
void print_sparsepattern | ( | pcsparsepattern | sp | ) |
Print a sparsity pattern.
sp | Source sparsity pattern. |