suanPan
SectionNM.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (C) 2017-2023 Theodore Chang
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  ******************************************************************************/
29 #ifndef SECTIONNM_H
30 #define SECTIONNM_H
31 
32 #include <Section/Section.h>
33 
34 using std::vector;
35 
36 struct DataSectionNM {
40 };
41 
42 class SectionNM : protected DataSectionNM, public Section {
43 public:
44  const double tolerance = 1E-13;
45 
46  using Section::Section;
47 
48  void initialize_history(unsigned);
49 
50  int clear_status() override;
51  int commit_status() override;
52  int reset_status() override;
53 
54  void print() override;
55 };
56 
57 #endif
58 
A Section class.
Definition: Section.h:73
Section(unsigned=0, SectionType=SectionType::D0, unsigned=0, double=0., vec &&={0., 0.})
Definition: Section.cpp:23
A SectionNM class.
Definition: SectionNM.h:42
int commit_status() override
Definition: SectionNM.cpp:35
void print() override
Definition: SectionNM.cpp:51
const double tolerance
Definition: SectionNM.h:44
int clear_status() override
Definition: SectionNM.cpp:27
int reset_status() override
Definition: SectionNM.cpp:43
void initialize_history(unsigned)
Definition: SectionNM.cpp:20
std::vector< T > vector
Definition: container.h:53
Definition: SectionNM.h:36
vec trial_history
Definition: SectionNM.h:39
vec initial_history
Definition: SectionNM.h:37
vec current_history
Definition: SectionNM.h:38