📄 matrix.h
字号:
/**
* File : Matrix.h
* Author : Wind
* Email : zealotwjr@163.com
* Date : 2005-9-30
* Purpose :
* */
#include "../head/Global.h"
#ifndef MATRIX_H_
#define MATRIX_H_
typedef struct {
int col;
int row;
double * array ;
} Matrix;
/**
* @describ Initial Matrix
* @return Status indicating whether matrix initializtion is successful.
* If success return SUCCESS,otherwise return FAIL
* */
Status initialMatrix(Matrix * m,int row,int col);
/**
* @describ Matrix multiply
* @param Matrix * a
* @param Matrix * b
* @param Matrix * c
* @return STATUS
* */
Status matrixMultiply(Matrix * a,Matrix * b ,Matrix * c);
/**
* obtain element address of Matrix * m->array at [row][col]
* */
double * M(Matrix * m ,int row,int col);
void printMatrix(Matrix * m);
Status destroyMatrix(Matrix * m );
Status matrixTranspose(Matrix * m);
#endif /*MATRIX_H_*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -