LINEAR++ library: AFF to LAPACK

◆ dump()

void dump ( const Tmatrix::Tcoc &  m)

Definition at line 53 of file matrixtest.cc.

54 {
55  const int width=10;
56  const int precision=5;
57  cout.width(width);
58  cout << " ";
59  for (int i=m.first(1); i<=m.last(1); ++i)
60  {
61  cout.width(width);
62  cout << i;
63  }
64  cout << endl;
65  for (int j=m.first(0); j<=m.last(0); ++j)
66  {
67  cout.width(width);
68  cout << j;
69  for (int i=m.first(1); i<=m.last(1); ++i)
70  {
71  cout.width(width);
72  cout.precision(precision);
73  cout << m(j,i);
74  }
75  cout << endl;
76  }
77 } // void dump(const Tmatrix::Tcoc& m)