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_example2_fixed.cpp
blob
d9117527391a7e167511513f864f9658432a764d
1
#include <iostream>
2
#include <Eigen/Dense>
3
4
using namespace
Eigen
;
5
using namespace
std
;
6
7
int
main
()
8
{
9
Matrix3d m
=
Matrix3d
::
Random
();
10
m
= (
m
+
Matrix3d
::
Constant
(
1.2
)) *
50
;
11
cout
<<
"m ="
<<
endl
<<
m
<<
endl
;
12
Vector3d
v
(
1
,
2
,
3
);
13
14
cout
<<
"m * v ="
<<
endl
<<
m
*
v
<<
endl
;
15
}