[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Multidimensional matrices
- From: Luis Carvalho <carvalho@...>
- Date: Wed, 28 Jan 2004 18:33:04 -0500
Hallo Edgar,
> Afaics, it's totally unnecessary. Every userdata you push via
> pushrawuserdata has a luaL_ref. Just use it to push the userdata
> back onto the stack: lua_rawgeti(L, LUA_REGISTRYINDEX, matrix->ref).
> Then you can also remove all the udata<->matrix conversions; use
> Matrix-ptrs everywhere.
Thanks very much for the great suggestion. As I said, I am very green. :)
I'll keep polishing the lib, and adding more numerical stuff.
Cheers,
Luis.
--
Mathematicians practice absolute freedom.
-- Henry Adams
--
Luis Carvalho
Applied Math PhD Student - Brown University
PGP Key: E820854A <carvalho@dam.brown.edu>
Attachment:
pgpd2XtPlCHUq.pgp
Description: PGP signature