📄 helpers.h
字号:
#ifndef HELPERS#define HELPERSinline void multiply(double *eq, double *A, int *multiplicationMap, int mapSize, int destRow, int m, int n) { for(int j = 0; j < mapSize; j++) { A[m * (multiplicationMap[j] - 1) + destRow] = // subtract by 1 to comply with matlab indices. eq[n - mapSize + j]; }};inline void divide(double *eq, double *A, int *multiplicationMap, int mapSize, int destRow, int m, int n) { for(int j = 0; j < mapSize; j++) { A[m * (n - mapSize + j) + destRow] = eq[multiplicationMap[j] - 1]; // subtract by 1 to comply with matlab indices. }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -