Fixed matrix printing problem for identically zero matrices - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2011年05月15日 01:22:25 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2011年05月15日 01:22:25 +0200
commitcebb3b91664e496120b30798b6cc59d1148b0ce7 (patch)
treefb812c15c9abce793258233a7e79692666c83d32
parentd9700cbc44c6af5d424fc17acacd10708500acd2 (diff)
downloadgsl-shell-cebb3b91664e496120b30798b6cc59d1148b0ce7.tar.gz
Fixed matrix printing problem for identically zero matrices
Diffstat
-rw-r--r--matrix-init.lua 1
1 files changed, 1 insertions, 0 deletions
diff --git a/matrix-init.lua b/matrix-init.lua
index b5ddd523..7923506e 100644
--- a/matrix-init.lua
+++ b/matrix-init.lua
@@ -247,6 +247,7 @@ local function matrix_tostring_gen(sel)
end
end
local eps = sqrt(sq) * 1e-8
+ eps = eps > 0 and eps or 1
lsrow = {}
local lmax = 0
generated by cgit v1.2.3 (git 2.39.1) at 2025年10月04日 14:57:26 +0000

AltStyle によって変換されたページ (->オリジナル) /