gramschmidtopt.h

来自「件主要用于帮助计算机爱好者学习蚁群算法时做有关蚁群算法的试验。蚁群算法作为一种优」· C头文件 代码 · 共 26 行

H
26
字号
#ifndef CLASS_GRAMSCHMIDT#define CLASS_GRAMSCHMIDT#include "Common.h"class GramSchmidtOpt {private:	double* orthVectors;	int gsSize, numRows;public:	GramSchmidtOpt(int size) : gsSize(size) {		numRows = 0;		orthVectors = (double*)malloc(sizeof(double) * gsSize * gsSize);	}	int addVector(double* inVector);	double* returnOrth(int* retRows);	~GramSchmidtOpt() {		free(orthVectors);	}};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?