Home | History | Annotate | only in /external/lmfit/ruby/swig
Up to higher level directory
NameDateSize
extconf.rb22-Oct-2020128
lmfit-ruby.i22-Oct-2020564
README22-Oct-2020334

README

      1 SWIG wrapper for lmfit
      2 
      3 prepared as follows:
      4 
      5 $
      6 vi lmfit-ruby.i
      7 swig -ruby lmfit-ruby.i 
      8 ruby extconf.rb
      9 make
     10 #
     11 make install
     12 
     13 test:
     14 
     15 $
     16 irb
     17 require 'lmfit'
     18 include Lmfit
     19 
     20 a = new_doubleArray(3)
     21 doubleArray_setitem(a,0,1)
     22 doubleArray_setitem(a,1,3)
     23 doubleArray_setitem(a,2,5)
     24 Lmfit.lm_enorm(3,a)
     25 
     26 
     27 def f(t,p)
     28     return p[0]+p[1]*t
     29 end
     30