/*
* Copyright (c) 2009 湖南师范大学数计院 一心飞翔项目组
* All Right Reserved
*
* 文件名:matrix.h
* 摘 要:定义矩阵类,包括矩阵的相关信息和方法
*
* 作 者:刘 庆
*
*/
// GMRES.H 定义FOM类,包含FOM算法有关变量和方法
#include "matrix.h"
using namespace std;
#ifndef _GAUSS_SEIDEL_
#define _GAUSS_SEIDEL_
class GS{
/* 默认权限为private */
public:
Matrix A; // 系数矩阵A
Matrix b; // 右端向量x
Matrix x; // 未知量
void SetMatrixsValue(char* fileName);
Matrix& GSCode(); /* GMRES 算法的具体实现 */
void OpenHFile(char* fileName, FILE** fp,const char* mode);
Matrix& GetE(const long ln)const;
Matrix& ValidateResult();
};
#endif // _MGMRES_