]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/matrix-debug.cc
release: 0.0.78
[lilypond.git] / flower / matrix-debug.cc
index 47a66896a52a2ed11f62e559a29c34704ed86202..099a05beb9351fc2ef915fb903531313a7fc2aff 100644 (file)
@@ -1,15 +1,26 @@
+/*
+  matrix-debug.cc -- implement Matrix print routines
+
+  source file of the Flower Library
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
 #include "flower-debug.hh"
 #include "matrix.hh"
+#include "matrix-storage.hh"
 
 
 Matrix::operator String() const
 {
     String s;
 #ifndef NPRINT
-    s="matrix {\n";
+    Matrix_storage const * stor_c_l = dat;
+    s=String("matrix { (")  + dat->name() + ")\n";
     for (int i=0; i< rows(); i++){
        for (int j = 0; j < cols(); j++) {
-           s+= String(dat->elem(i,j), "%6f ");
+           s+= String(stor_c_l->elem(i,j), "%6f ");
        }
        s+="\n";
     }