suanPan
SectionNM.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2017-2022 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
{
37
vec
initial_history
;
38
vec
current_history
;
39
vec
trial_history
;
40
};
41
42
class
SectionNM
:
protected
DataSectionNM
,
public
Section
{
43
protected
:
44
static
constexpr
double
tolerance = 1
E
-12;
45
46
public
:
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
DataSectionNM::current_history
vec current_history
Definition:
SectionNM.h:38
Section
A Section class.
Definition:
Section.h:73
Section.h
Section::Section
Section(unsigned=0, SectionType=SectionType::D0, unsigned=0, double=0., vec &&={0., 0.})
Definition:
Section.cpp:23
DataSectionNM::initial_history
vec initial_history
Definition:
SectionNM.h:37
DataSectionNM::trial_history
vec trial_history
Definition:
SectionNM.h:39
PlaneType::E
suanpan::vector
std::vector< T > vector
Definition:
container.h:53
SectionNM
A SectionNM class.
Definition:
SectionNM.h:42
DataSectionNM
Definition:
SectionNM.h:36
Section
SectionNM
SectionNM.h
Generated by
1.8.13