Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
extconf.rb | 06-Dec-2017 | 128 | |
lmfit-ruby.i | 06-Dec-2017 | 564 | |
README | 06-Dec-2017 | 334 |
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