We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05c50f9 commit dc2edddCopy full SHA for dc2eddd
uni/lib/matrix_util.icn
@@ -358,3 +358,15 @@ procedure m_write(args[]) # Matrices and output files
358
}
359
::write(outfile)
360
end
361
+
362
+#<p>
363
+# A simplification of m_write() that (a) only writes a single matrix to stdout
364
+# and (b) allows column width specifiction for pretty-printing the matrix.
365
+# <[param m matrix to output]>
366
+# <[param w width of each column (default: 5)]>
367
+#</p>
368
+procedure writem(m,w)
369
+ local i
370
+ /w := 5
371
+ every i := !m do every ::writes(::right(!i,3)|"\n")
372
+end
0 commit comments