smatrix.h

来自「稀疏矩阵运算器 稀疏矩阵运算器」· C头文件 代码 · 共 22 行

H
22
字号
#define MAXSIZE 400
#define MAXRC 20
#define OK 1
#define ERROR 0
typedef struct {
	int i,j;
	int e;
	}Tripe;
typedef struct {
	Tripe data[MAXSIZE+1];
	int rpos[MAXRC+1];
	int mu,nu,tu;
	}RLSMatrix;
typedef int Status;

Status CreateRLSMatrix(RLSMatrix * sm);
Status AddRLSMatrix(RLSMatrix * sm_a,RLSMatrix * sm_b);
Status SubRLSMatrix(RLSMatrix * sm_a,RLSMatrix * sm_b);
Status MultRLSMatrix(RLSMatrix * sm_a,RLSMatrix * sm_b);
Status PrintRLSMatrix(RLSMatrix * sm);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?