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
examples
tut_arithmetic_redux_basic.cpp
Go to the documentation of this file.
1
#include <iostream>
2
#include <
Eigen/Dense
>
3
4
using namespace
std
;
5
int
main
()
6
{
7
Eigen::Matrix2d
mat
;
8
mat
<< 1, 2,
9
3, 4;
10
cout <<
"Here is mat.sum(): "
<<
mat
.sum() << endl;
11
cout <<
"Here is mat.prod(): "
<<
mat
.prod() << endl;
12
cout <<
"Here is mat.mean(): "
<<
mat
.mean() << endl;
13
cout <<
"Here is mat.minCoeff(): "
<<
mat
.minCoeff() << endl;
14
cout <<
"Here is mat.maxCoeff(): "
<<
mat
.maxCoeff() << endl;
15
cout <<
"Here is mat.trace(): "
<<
mat
.trace() << endl;
16
}
Dense
mat
MatrixXf mat
Definition:
Tutorial_AdvancedInitialization_CommaTemporary.cpp:1
Eigen::Matrix
The matrix class, also used for vectors and row-vectors.
Definition:
Matrix.h:182
std
Definition:
BFloat16.h:222
main
int main()
Definition:
tut_arithmetic_redux_basic.cpp:5
Code