2 matrix-debug.cc -- implement Matrix print routines
4 source file of the Flower Library
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
10 #include "flower-debug.hh"
12 #include "matrix-storage.hh"
15 Matrix::operator String() const
19 Matrix_storage const * stor_c_l = dat;
20 s=String("matrix { (") + dat->name() + ")\n";
21 for (int i=0; i< rows(); i++){
22 for (int j = 0; j < cols(); j++) {
23 s+= String(stor_c_l->elem(i,j), "%6f ");
41 Vector::operator String() const
46 for (int i=0; i < dim(); i++) {
47 s += String(dat[i], "%6f") + String(' ');
59 fdebug << *this<<'\n';