00001 #include <TooN/helpers.h>
00002
00003 using namespace TooN;
00004 using namespace std;
00005
00006 int main()
00007 {
00008 Matrix<3> m = Identity;
00009
00010 cout << m << endl;
00011
00012 Matrix<3> n = 2 * Identity;
00013
00014 cout << n << endl;
00015
00016 n = Identity * 3;
00017
00018 cout << n << endl;
00019
00020
00021 Matrix<> q = 5.5 * Identity(6) * 2;
00022
00023 cout << q << endl;
00024 cout << q - 3.*Identity/4 << endl;
00025
00026 Matrix<3> p = Ones * 2;
00027
00028 cout << Identity - p << endl;
00029
00030 Matrix<3> g = -Identity * 2;
00031 cout << g << endl;
00032 }