OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-394-ge538cec3fb6 source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
►
Applications
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
▼
MathLib
►
Curve
►
Integration
►
InterpolationAlgorithms
▼
LinAlg
►
Eigen
►
EigenLis
►
Lis
►
PETSc
ApplyKnownSolution.h
►
FinalizeMatrixAssembly.h
►
FinalizeVectorAssembly.h
►
GlobalLinearSolverType.h
►
GlobalMatrixVectorTypes.h
►
LinAlg.cpp
►
LinAlg.h
►
LinAlgEnums.cpp
►
LinAlgEnums.h
►
LinearSolverBehaviour.h
►
LinearSolverOptions.cpp
►
LinearSolverOptions.h
LinearSolverOptionsParser.h
►
MatrixSpecifications.h
MatrixVectorTraits.cpp
►
MatrixVectorTraits.h
►
RowColumnIndices.h
►
SetMatrixSparsity.h
►
SparsityPattern.h
►
UnifiedMatrixSetters.cpp
►
UnifiedMatrixSetters.h
►
Nonlinear
►
ODE
►
EigenBlockMatrixView.h
FormattingUtils.cpp
►
FormattingUtils.h
►
GeometricBasics.cpp
►
GeometricBasics.h
►
KahanSum.h
►
KelvinVector-impl.h
►
KelvinVector.cpp
►
KelvinVector.h
►
MathTools.cpp
►
MathTools.h
►
Point3d.cpp
►
Point3d.h
►
Point3dWithID.h
►
VectorizedTensor.cpp
►
VectorizedTensor.h
►
WeightedPoint.cpp
►
WeightedPoint.h
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
LinAlgEnums.cpp
Go to the documentation of this file.
1
13
#include "
LinAlgEnums.h
"
14
15
namespace
MathLib
16
{
17
std::string
convertVecNormTypeToString
(
VecNormType
normType)
18
{
19
switch
(normType)
20
{
21
case
VecNormType::NORM1
:
22
return
"NORM1"
;
23
case
VecNormType::NORM2
:
24
return
"NORM2"
;
25
case
VecNormType::INFINITY_N
:
26
return
"INFINITY_N"
;
27
default
:
28
return
"INVALID"
;
29
}
30
}
17
std::string
convertVecNormTypeToString
(
VecNormType
normType) {
…
}
31
32
VecNormType
convertStringToVecNormType
(
const
std::string& str)
33
{
34
if
(str ==
"NORM1"
)
35
{
36
return
VecNormType::NORM1
;
37
}
38
if
(str ==
"NORM2"
)
39
{
40
return
VecNormType::NORM2
;
41
}
42
if
(str ==
"INFINITY_N"
)
43
{
44
return
VecNormType::INFINITY_N
;
45
}
46
return
VecNormType::INVALID
;
47
}
32
VecNormType
convertStringToVecNormType
(
const
std::string& str) {
…
}
48
49
}
// end namespace MathLib
LinAlgEnums.h
MathLib
Definition
CreateComponent.h:32
MathLib::VecNormType
VecNormType
Definition
LinAlgEnums.h:23
MathLib::VecNormType::NORM2
@ NORM2
MathLib::VecNormType::NORM1
@ NORM1
MathLib::VecNormType::INVALID
@ INVALID
MathLib::VecNormType::INFINITY_N
@ INFINITY_N
MathLib::convertVecNormTypeToString
std::string convertVecNormTypeToString(VecNormType normType)
convert VecNormType to string
Definition
LinAlgEnums.cpp:17
MathLib::convertStringToVecNormType
VecNormType convertStringToVecNormType(const std::string &str)
convert string to VecNormType
Definition
LinAlgEnums.cpp:32
MathLib
LinAlg
LinAlgEnums.cpp
Generated by
1.12.0