8 #define WANT_STREAM // include iostream and iomanipulators 18 using namespace RBD_LIBRARIES;
30 X.
row(1) << 3.7 << -2.1 << 7.4 << -1.0;
31 X.
row(2) << 4.1 << 0.0 << 3.9 << 4.0;
32 X.
row(3) << -2.5 << 1.9 << -0.4 << 7.3;
33 X.
row(4) << 1.5 << 9.8 << -2.1 << 1.1;
36 cout <<
"Matrix X" << endl;
37 cout << setw(15) << setprecision(8) << X << endl;
41 cout <<
"Inverse of X" << endl;
42 cout << setw(15) << setprecision(8) << Y << endl;
45 cout <<
"X * inverse of X" << endl;
46 cout << setw(15) << setprecision(8) << (X * Y) << endl;
58 CatchAll { cout <<
"\nProgram fails - exception generated\n\n"; }
The usual rectangular matrix.
static const char * what()
GetSubMatrix row(int) const