matrix.h
来自「该程序包实现了几个常用的模式识别分类器算法」· C头文件 代码 · 共 39 行
H
39 行
#ifndef _MATRIX_H
#define _MATRIX_H 1
class CMatrix2
{
void Householder( float**, int, float** );
int reflection( float*, int, int, float* );
void updateMat( float**, float*, int, int );
int QLdecomp( float**, int, int, float** );
float shiftQL( float**, int, int, float** );
public:
float** allocMat( int );
void freeMat( float**, int );
void identiMat( float**, int ); // set identity matrix
// Elementary matrix and vector compuations
void outProduct( float*, float*, int, float** ); // outer product
float innProduct( float*, float*, int ); // inner product
void matXvec( float**, float*, int, float* ); // multiplication
void matXmat( float**, float**, int, float** );
void matXmat( float**, float**, int );
void transpose( float**, int, float** );
// Diagonalization (K-L transform)
void diagonalize( float**, int, float** );
float KLT( float**, int, float*, float* );
// Check the orthonormality and characteristic equation
float characteristic( float**, int, float*, float*, int );
CMatrix2();
~CMatrix2();
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?