// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include "econ.h"

main()
{
   mx a(2,2,2.0),b(2,2),c(2,2,"ex_mx.dat"),d;
   PRINT(a);
   PRINT(b);
   PRINT(c);
   PRINT(d);
   random(b,0.0,1.0);
   PRINT(b);
   PRINT(inv(2*a+b+tran(c)));
   d = inv(2*a+b+tran(c));
   PRINT(d);
   cout << c(2,2) << "\n";
   c(2,2) = 8;
   cout << c(2,2) << "\n";
}
