repo.or.cz
/
librepilot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git]
/
ground
/
gcs
/
src
/
libs
/
eigen
/
doc
/
examples
/
QuickStart_example.cpp
blob
7238c0c43d653f6d36e4b80b66c4f3ef619a31d0
1
#include <iostream>
2
#include <Eigen/Dense>
3
4
using
Eigen
::
MatrixXd
;
5
6
int
main
()
7
{
8
MatrixXd
m
(
2
,
2
);
9
m
(
0
,
0
) =
3
;
10
m
(
1
,
0
) =
2.5
;
11
m
(
0
,
1
) = -
1
;
12
m
(
1
,
1
) =
m
(
1
,
0
) +
m
(
0
,
1
);
13
std
::
cout
<<
m
<<
std
::
endl
;
14
}