文件名称:matrix
介绍说明--下载内容均来自于网络,请自行研究使用
//--显示矩阵,形参m为行,n为列
void MatrixDisplay(double *A,int m,int n)
//--求矩阵转置,形参m为行,n为列,A转置后存为B
void MatrixInverse(double *A,double *B, int m,int n)
//--求矩阵相乘,A矩阵为[m,p],B矩阵为[p,n],C为[m,n]
void MatrixMultiply(double *A,double *B,double *C ,int m,int p,int n)
//--求矩阵行列式
double MatrixDet(double *A,int m)
//--求矩阵逆,求A的逆矩阵C
void MatrixInv(double *A,double *C, int m)
//--求矩阵相加,A矩阵为[m,n],B矩阵为[m,n],C为[m,n]
void Maxtrix_add(double *A, double *B, double *C, int m, int n)
//--求矩阵相减,A矩阵为[m,n],B矩阵为[m,n],C为[m,n]
void Maxtrix_sub(double *A, double *B, double *C, int m, int n)
-/ /- Display matrix, the parameter m for the line, n is the column void MatrixDisplay (double* A, int m, int n) //- transpose a matrix, the row parameter m, n for the column, A transposed after the save B void MatrixInverse (double* A, double* B, int m, int n) //- Matrix multiplication, A matrix [m, p], B matrix [p, n] , C is [m, n] void MatrixMultiply (double* A, double* B, double* C, int m, int p, int n) //- Matrix determinant double MatrixDet (double* A, int m ) //- For the matrix inverse, find the inverse matrix of A, C void MatrixInv (double* A, double* C, int m) //- add a matrix, A matrix [m, n], B matrix [m, n], C is [m, n] void Maxtrix_add (double* A, double* B, double* C, int m, int n) //- Matrix subtraction, A matrix is [ m, n], B matrix [m, n], C is [m, n] void Maxtrix_sub (double* A, double* B, double* C, int m, int n)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文件夹\matrix.cpp
..........\matrix.h
新建文件夹
..........\matrix.h
新建文件夹