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
HouseholderQR_solve.cpp
Go to the documentation of this file.
1
typedef
Matrix<float,3,3>
Matrix3x3
;
2
Matrix3x3
m
= Matrix3x3::Random();
3
Matrix3f
y
= Matrix3f::Random();
4
cout <<
"Here is the matrix m:"
<< endl <<
m
<< endl;
5
cout <<
"Here is the matrix y:"
<< endl <<
y
<< endl;
6
Matrix3f
x
;
7
x
=
m
.householderQr().solve(
y
);
8
assert(
y
.isApprox(
m
*
x
));
9
cout <<
"Here is a solution x to the equation mx=y:"
<< endl <<
x
<< endl;
x
x
Definition:
BiCGSTAB_simple.cpp:7
y
Matrix3f y
Definition:
HouseholderQR_solve.cpp:3
Matrix3x3
Matrix< float, 3, 3 > Matrix3x3
Definition:
HouseholderQR_solve.cpp:1
m
Matrix3x3 m
Definition:
HouseholderQR_solve.cpp:2
Eigen::Matrix3f
Matrix< float, 3, 3 > Matrix3f
3×3 matrix of type float.
Definition:
Matrix.h:501
Code