LINEAR++ library: AFF to LAPACK

◆ printmatrix()

void printmatrix ( const Tmatrix::Tcoc &  m)

Definition at line 59 of file lsqexample.cc.

Referenced by main().

60 {
61  const int width=15;
62  const int precision=5;
63  cout.width(width);
64  cout << " ";
65  for (int i=m.first(1); i<=m.last(1); ++i)
66  {
67  cout.width(width);
68  cout << i;
69  }
70  cout << endl;
71  for (int j=m.first(0); j<=m.last(0); ++j)
72  {
73  cout.width(width);
74  cout << j;
75  for (int i=m.first(1); i<=m.last(1); ++i)
76  {
77  cout.width(width);
78  cout.precision(precision);
79  cout << m(j,i);
80  }
81  cout << endl;
82  }
83 } // void printmatrix(const Tmatrix::Tcoc& m)
Here is the caller graph for this function: