From 3f5bf5985d3da0e4d01cd9c126cb781cb6fc28ef Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Wed, 3 Feb 2010 17:53:51 +0000 Subject: updated examples, removed Util module --- examples/latexmat.hs | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 examples/latexmat.hs (limited to 'examples/latexmat.hs') diff --git a/examples/latexmat.hs b/examples/latexmat.hs deleted file mode 100644 index d912a28..0000000 --- a/examples/latexmat.hs +++ /dev/null @@ -1,11 +0,0 @@ -import Numeric.LinearAlgebra -import Text.Printf - -disp w l fmt m = unlines $ map (++l) $ lines $ format w (printf fmt) m - -latex fmt m = "\\begin{bmatrix}\n" ++ disp " & " " \\\\" fmt m ++ "\\end{bmatrix}" - -main = do - let m = (3><4) [1..12::Double] - putStrLn $ disp " | " "" "%.2f" m - putStrLn $ latex "%.3f" m -- cgit v1.2.3