Loading [MathJax]/extensions/MathMenu.js
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-178-g76065a3f85 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
EigenMatrix.cpp
Go to the documentation of this file.
1
11
#include "
EigenMatrix.h
"
12
13
#include <fstream>
14
15
namespace
MathLib
16
{
17
19
void
EigenMatrix::write
(
const
std::string& filename)
const
20
{
21
std::ofstream of(filename);
22
if
(of)
23
{
24
write
(of);
25
}
26
}
19
void
EigenMatrix::write
(
const
std::string& filename)
const
{
…
}
27
29
void
EigenMatrix::write
(std::ostream& os)
const
30
{
31
for
(
int
k = 0; k <
mat_
.outerSize(); ++k)
32
{
33
for
(RawMatrixType::InnerIterator it(
mat_
, k); it; ++it)
34
{
35
os << it.row() <<
" "
<< it.col() <<
" "
<< it.value() <<
"\n"
;
36
}
37
}
38
os << std::endl;
39
}
29
void
EigenMatrix::write
(std::ostream& os)
const
{
…
}
40
}
// namespace MathLib
EigenMatrix.h
MathLib::EigenMatrix::write
void write(const std::string &filename) const
printout this matrix for debugging
Definition
EigenMatrix.cpp:19
MathLib::EigenMatrix::mat_
RawMatrixType mat_
Definition
EigenMatrix.h:149
MathLib
Definition
CreateComponent.h:32
MathLib
LinAlg
Eigen
EigenMatrix.cpp
Generated by
1.12.0