2 matrix-debug.cc -- implement Matrix print routines
4 source file of the Flower Library
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "flower-debug.hh"
13 Matrix::operator String() const
17 Full_storage const * stor_c_l = dat_;
18 s=String ("matrix {");
19 for (int i=0; i< rows(); i++)
21 for (int j = 0; j < cols(); j++)
23 s+= String (stor_c_l->elem (i,j), "%6f ");
41 Vector::operator String() const
45 s=String ("vector (") + dim () + ") [";
46 for (int i=0; i < dim(); i++)
48 s += String (dat[i], "%6f") + String (' ');
60 fdebug << *this<<'\n';