[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Native Complex numbers for LuaJIT-2 [was Re: Benchmark shootout shows LuaJIT 2.0]
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 2 Nov 2009 23:13:26 -0200
> I think that native support for complex numbers would be a *great*
> plus for numerical calculations. I think also that complex numbers
> should be supported, if possible, as a native type just like Asko's
> LNUM patch is doing. Also, I'm not sure that you need a struct to
> represent complex number, in C99 they are a native type just like
> 'int' or 'double'
My lcomplex library exports C99 complex numbers to Lua:
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lcomplex