summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 19:56:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 19:56:20 +0000
commitc1f1b452cb5ec2fadf693817c930ff2741bcd477 (patch)
tree6e50c1e21c9280ff0846cc6c54d483c2703ee1a1 /ext/bigdecimal/lib/bigdecimal/ludcmp.rb
parent178dafefa9057ea0eb16e89d5f703e6077b2ddab (diff)
* ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/lib/bigdecimal/ludcmp.rb')
-rw-r--r--ext/bigdecimal/lib/bigdecimal/ludcmp.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/ludcmp.rb b/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
index e18446d55bb..9b2c3d23307 100644
--- a/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
+++ b/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
@@ -2,6 +2,8 @@
# Solves a*x = b for x, using LU decomposition.
#
module LUSolve
+ module_function
+
# Performs LU decomposition of the n by n matrix a.
def ludecomp(a,n,zero=0,one=1)
prec = BigDecimal.limit(nil)