LMMC
Lamina Mathematic core
载入中...
搜索中...
未找到
sparse_types.h
浏览该文件的文档.
1
2#ifndef LMMC_SPARSE_TYPES_H
3#define LMMC_SPARSE_TYPES_H
4
5#include <stddef.h>
6#include "lmmc/config.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
17
34typedef struct {
35 size_t rows;
36 size_t cols;
37 size_t nnz;
38 size_t* row_ptr;
39 size_t* col_idx;
44
52
61
70
76typedef struct {
77 size_t rows;
78 size_t cols;
79 size_t nnz;
80 size_t capacity;
81 size_t* row_idx;
82 size_t* col_idx;
85
92typedef struct {
93 size_t rows;
94 size_t cols;
95 size_t block_size;
96 size_t nnz_blocks;
97 size_t* row_ptr;
98 size_t* col_idx;
102
108
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif
LMMC binary real type and arithmetic spelling.
double lmmc_real_t
Public and internal LMMC real type.
增量构造稀疏矩阵的辅助对象(不透明类型)。
稀疏 Cholesky 分解上下文(不透明类型,要求 A 对称正定)。
稀疏 LU 分解上下文(不透明类型)。
lmmc_sparse_sym_half_t half
lmmc_sparse_format_t
稀疏矩阵存储格式。
@ LMMC_SPARSE_CSR
@ LMMC_SPARSE_CSC
lmmc_sparse_sym_half_t
对称半存储选择:上三角或下三角。
@ LMMC_SPARSE_SYM_LOWER
@ LMMC_SPARSE_SYM_UPPER
lmmc_sparse_format_t format
块稀疏行 (BSR) 格式矩阵。
三元组 (COO) 形式的稀疏矩阵临时表示。
通用稀疏矩阵(CSR / CSC 共用同一结构)。
对称半存储 CSR 格式矩阵。