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-323-g4f540a32 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
►
EigenLinearSolver.cpp
►
EigenLinearSolver.h
►
EigenMapTools.h
EigenMatrix.cpp
►
EigenMatrix.h
EigenOption.cpp
►
EigenOption.h
►
EigenTools.cpp
►
EigenTools.h
EigenVector.cpp
►
EigenVector.h
LinearSolverOptionsParser.cpp
►
LinearSolverOptionsParser.h
►
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
EigenVector.cpp
Go to the documentation of this file.
1
11
#include "
EigenVector.h
"
12
13
#include "
EigenMapTools.h
"
14
15
#ifndef NDEBUG
16
#include <fstream>
17
#endif
18
19
namespace
MathLib
20
{
21
void
EigenVector::copyValues
(std::vector<double>&
u
)
const
22
{
23
u
.resize(
size
());
24
toVector
(
u
) =
vec_
;
25
}
21
void
EigenVector::copyValues
(std::vector<double>&
u
)
const
{
…
}
26
27
#ifndef NDEBUG
28
void
EigenVector::write
(
const
std::string& filename)
const
29
{
30
std::ofstream os(filename);
31
os <<
vec_
;
32
}
28
void
EigenVector::write
(
const
std::string& filename)
const
{
…
}
33
#endif
34
35
}
// namespace MathLib
EigenMapTools.h
EigenVector.h
MathLib::EigenVector::copyValues
void copyValues(std::vector< double > &u) const
Definition
EigenVector.cpp:21
MathLib::EigenVector::vec_
RawVectorType vec_
Definition
EigenVector.h:117
MathLib::EigenVector::size
IndexType size() const
return a vector length
Definition
EigenVector.h:42
MathLib::EigenVector::write
void write(const std::string &filename) const
write this vector to a file for debugging
Definition
EigenVector.cpp:28
MathLib
Definition
CreateComponent.h:32
MathLib::toVector
Eigen::Map< const Vector > toVector(std::vector< double > const &data, Eigen::VectorXd::Index size)
Creates an Eigen mapped vector from the given data vector.
Definition
EigenMapTools.h:167
MathLib::u
static const double u
Definition
GaussLegendreTet.cpp:104
MathLib
LinAlg
Eigen
EigenVector.cpp
Generated by
1.12.0