49 A(0,0) = 1.0;
A(0,1) = 2.0;
50 A(1,0) = 3.0;
A(1,1) = 4.0;
52 B(0,0) = 1.0; B(0,1) = 2.0; B(0,2) = 3.0;
53 B(1,0) = 4.0; B(1,1) = 5.0; B(1,2) = 6.0;
55 C(0,0) = 1.0; C(0,1) = 2.0;
56 C(1,0) = 4.0; C(1,1) = 5.0;
72 M.setIdentity(0,0,2);
M.setDense (0,1,
A);
83 N.setIdentity(0,0,2);
N.setDense(0,1,B);
N.setDense (0,2,C);
84 N.setDense(1,1,B);
N.setIdentity(1,2,2);
89 printf(
"M = \n");
M.print();
90 printf(
"N = \n");
N.print();
98 printf(
"MN = \n"); MN.
print();
106 printf(
"MTN = \n"); MTN.
print();
Implements a very rudimentary block sparse matrix class.
returnValue print(std::ostream &stream=std::cout) const
#define USING_NAMESPACE_ACADO