There are some mathematical algorithms.
更多...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
|
| int | rinv (double a[], const int n) |
| | A function to caculate the inverse of the input square matrix. 更多...
|
| |
There are some mathematical algorithms.
◆ rinv()
| int rinv |
( |
double |
a[], |
|
|
const int |
n |
|
) |
| |
A function to caculate the inverse of the input square matrix.
- 参数
-
| [in,out] | a | The pointer of the input/output square matrix. |
| [in] | n | The order of the input/output square matrix. |
- 返回
- Matrix is invertible or not.
- 返回值
-
| 0 | No inverse matrix |
| 1 | Invertible matrix |