lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

2011/11/3 Leo Razoumov <>:
> Actually, according to
> Francesco reimplemented quadrature in pure Lua (GSL's C version is
> used as a guideline). FFI is used to pass an integrand function
> implemented in C to the quadrature routine implemented in pure Lua.
> Sort of of the exact opposite to traditional use of scripting
> languages.

uh ? not quite so, actually. I've implemented the quadrature routine
in Lua using FFI and the resulting quadrature routine can integrate
any Lua function.