[前][次][番号順一覧][スレッド一覧]

ruby-changes:13266

From: nobu <ko1@a...>
Date: Tue, 22 Sep 2009 04:56:38 +0900 (JST)
Subject: [ruby-changes:13266] Ruby:r25027 (trunk): * ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.

nobu	2009-09-22 04:56:20 +0900 (Tue, 22 Sep 2009)

  New Revision: 25027

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25027

  Log:
    * ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.

  Modified files:
    trunk/ChangeLog
    trunk/ext/bigdecimal/lib/bigdecimal/jacobian.rb
    trunk/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
    trunk/ext/bigdecimal/lib/bigdecimal/math.rb
    trunk/ext/bigdecimal/lib/bigdecimal/newton.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25026)
+++ ChangeLog	(revision 25027)
@@ -1,3 +1,7 @@
+Tue Sep 22 04:56:18 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.
+
 Tue Sep 22 04:47:37 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/bigdecimal/bigdecimal.c (GetVpValue): support conversion from
Index: ext/bigdecimal/lib/bigdecimal/ludcmp.rb
===================================================================
--- ext/bigdecimal/lib/bigdecimal/ludcmp.rb	(revision 25026)
+++ ext/bigdecimal/lib/bigdecimal/ludcmp.rb	(revision 25027)
@@ -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)
Index: ext/bigdecimal/lib/bigdecimal/jacobian.rb
===================================================================
--- ext/bigdecimal/lib/bigdecimal/jacobian.rb	(revision 25026)
+++ ext/bigdecimal/lib/bigdecimal/jacobian.rb	(revision 25027)
@@ -21,6 +21,8 @@
 # fx is f.values(x).
 #
 module Jacobian
+  module_function
+
   #--
   def isEqual(a,b,zero=0.0,e=1.0e-8)
     aa = a.abs
Index: ext/bigdecimal/lib/bigdecimal/math.rb
===================================================================
--- ext/bigdecimal/lib/bigdecimal/math.rb	(revision 25026)
+++ ext/bigdecimal/lib/bigdecimal/math.rb	(revision 25027)
@@ -29,6 +29,7 @@
 #   puts sin(a,100) # -> 0.10000000000000000000......E1
 #
 module BigMath
+  module_function
 
   # Computes the square root of x to the specified number of digits of
   # precision.
Index: ext/bigdecimal/lib/bigdecimal/newton.rb
===================================================================
--- ext/bigdecimal/lib/bigdecimal/newton.rb	(revision 25026)
+++ ext/bigdecimal/lib/bigdecimal/newton.rb	(revision 25027)
@@ -28,6 +28,7 @@
 module Newton
   include LUSolve
   include Jacobian
+  module_function
 
   def norm(fv,zero=0.0)
     s = zero

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]