suanPan
SectionNM.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2024 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
34using std::vector;
35
40};
41
42class SectionNM : protected DataSectionNM, public Section {
43protected:
44 static constexpr double tolerance = 1E-14;
45
46public:
47 using Section::Section;
48
49 void initialize_history(unsigned);
50
51 int clear_status() override;
52 int commit_status() override;
53 int reset_status() override;
54
55 void print() override;
56};
57
58#endif
59
A Section class.
Definition: Section.h:77
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
static constexpr 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