Last change
on this file since 5670 was
5669,
checked in by bensch, 20 years ago
|
orxonox/trunk: eigenvectors ar fuing right now
|
File size:
502 bytes
|
Rev | Line | |
---|
[5666] | 1 | |
---|
| 2 | #include "matrix.h" |
---|
| 3 | |
---|
| 4 | int main (int argc, char** argv) |
---|
| 5 | { |
---|
| 6 | |
---|
[5668] | 7 | Matrix matrix( 0, 1, -1, |
---|
| 8 | 1, 1, 0, |
---|
| 9 | -1, 0, 1); |
---|
| 10 | |
---|
| 11 | Vector eigVc[3]; |
---|
| 12 | |
---|
[5669] | 13 | matrix.debug(); |
---|
[5668] | 14 | // matrix.getEigenValues(); |
---|
| 15 | matrix.getEigenVectors(eigVc[0], eigVc[1], eigVc[2]); |
---|
[5669] | 16 | |
---|
| 17 | matrix = Matrix (0, 3, 1, |
---|
| 18 | 3, 1, 0, |
---|
| 19 | 1, 0, 1); |
---|
| 20 | matrix.debug(); |
---|
| 21 | matrix.getEigenVectors(eigVc[0], eigVc[1], eigVc[2]); |
---|
[5666] | 22 | } |
---|
| 23 | |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.