Eigen 3.4.90
Main Page
Related Pages
Modules
Classes
Class List
Class Hierarchy
Class 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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerations
Enumerator
a
b
c
d
e
f
h
i
k
m
n
o
p
q
r
s
t
u
v
Related Functions
o
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
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
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
v
w
x
y
Typedefs
a
b
c
d
e
f
i
l
m
n
r
s
t
u
Macros
_
a
b
c
d
e
f
g
h
l
m
p
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
doc
snippets
IOFormat.cpp
Go to the documentation of this file.
1
std::string
sep
=
"\n----------------------------------------\n"
;
2
Matrix3d
m1
;
3
m1
<< 1.111111, 2, 3.33333, 4, 5, 6, 7, 8.888888, 9;
4
5
IOFormat CommaInitFmt(
StreamPrecision
,
DontAlignCols
,
", "
,
", "
,
""
,
""
,
" << "
,
";"
);
6
IOFormat CleanFmt(4, 0,
", "
,
"\n"
,
"["
,
"]"
);
7
IOFormat OctaveFmt(
StreamPrecision
, 0,
", "
,
";\n"
,
""
,
""
,
"["
,
"]"
);
8
IOFormat HeavyFmt(
FullPrecision
, 0,
", "
,
";\n"
,
"["
,
"]"
,
"["
,
"]"
);
9
10
std::cout <<
m1
<<
sep
;
11
std::cout <<
m1
.format(CommaInitFmt) <<
sep
;
12
std::cout <<
m1
.format(CleanFmt) <<
sep
;
13
std::cout <<
m1
.format(OctaveFmt) <<
sep
;
14
std::cout <<
m1
.format(HeavyFmt) <<
sep
;
m1
Matrix3d m1
Definition:
IOFormat.cpp:2
sep
std::string sep
Definition:
IOFormat.cpp:1
Eigen::Matrix3d
Matrix< double, 3, 3 > Matrix3d
3×3 matrix of type double.
Definition:
Matrix.h:502
Eigen::StreamPrecision
@ StreamPrecision
Definition:
IO.h:19
Eigen::FullPrecision
@ FullPrecision
Definition:
IO.h:20
Eigen::DontAlignCols
@ DontAlignCols
Definition:
IO.h:18
Code