Loading [MathJax]/extensions/tex2jax.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
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
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.5-159-gc869cdd2 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
►
Nonlinear
►
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
FormattingUtils.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <spdlog/fmt/ostr.h>
14
#include <spdlog/fmt/ranges.h>
15
16
#include <Eigen/Core>
17
#include <concepts>
18
19
#include "
mathlib_export.h
"
20
21
namespace
MathLib
22
{
23
struct
EigenIOFormat
24
{
25
static
MATHLIB_EXPORT
const
Eigen::IOFormat
full_precision
;
26
};
23
struct
EigenIOFormat
{
…
};
27
}
// namespace MathLib
28
29
// disable fmt's range formatting for Eigen types
30
template
<
typename
T>
31
requires
std::derived_from<T, Eigen::DenseBase<T>>
32
struct
fmt::is_range<T, char> : std::false_type
33
{
34
};
32
struct
fmt::is_range<T, char> : std::false_type {
…
};
35
36
template
<
typename
T>
37
requires
std::derived_from<T, Eigen::DenseBase<T>>
38
struct
fmt::formatter<T> : fmt::ostream_formatter
39
{
40
auto
format
(T
const
& value, fmt::format_context& ctx)
const
41
{
42
return
fmt::ostream_formatter::format(
43
value.format(
MathLib::EigenIOFormat::full_precision
), ctx);
44
}
40
auto
format
(T
const
& value, fmt::format_context& ctx)
const
{
…
}
45
};
38
struct
fmt::formatter<T> : fmt::ostream_formatter {
…
};
mathlib_export.h
MATHLIB_EXPORT
#define MATHLIB_EXPORT
Definition
mathlib_export.h:15
MathLib
Definition
CreateComponent.h:32
MathLib::EigenIOFormat
Definition
FormattingUtils.h:24
MathLib::EigenIOFormat::full_precision
static MATHLIB_EXPORT const Eigen::IOFormat full_precision
Definition
FormattingUtils.h:25
fmt::formatter< T >::format
auto format(T const &value, fmt::format_context &ctx) const
Definition
FormattingUtils.h:40
MathLib
FormattingUtils.h
Generated by
1.12.0