版本比较
double gaussian
正文
增加 4 行删除 4 行
2 行未改动3456778910111212131415161718192021212223242582 行未改动1081091101111121121131141151162 行未改动2 行未改动{ using std::swap; using std::endl; using std::ostream;
inline const bool equal(const double& __x, const double& __y) { return fabs(__x-__y) < 1e-9; }
class gaussian { private: int _row; int _col; double** _LHS; double* _RHS; int _statue;
public: gaussian(int __row, int __col) : _row(__row), _col(__col) {82 行未改动 while (__nw < _row) if (!equal(_RHS[__nw++], 0)) return _statue = -1; return _statue = INT_MAX; }
inline const int& statue(void) const { return _statue; } };2 行未改动