2 matrix-debug.cc -- implement Matrix print routines
4 source file of the Flower Library
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "flower-debug.hh"
18 Full_storage const * stor_c_l = dat_;
19 s = String ("matrix {");
20 for (int i=0; i< rows(); i++)
22 for (int j = 0; j < cols(); j++)
24 s+= to_str (stor_c_l->elem (i,j), "%6f ");
35 Matrix::print () const
47 s = String ("vector (") + to_str (dim ()) + ") [";
48 for (int i=0; i < dim(); i++)
50 s += to_str (dat[i], "%6f") + to_str (' ');
62 fdebug << *this << '\n';