Re: Math calculation within Pipmak
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2009-01-29 21:11:50
|
chikitin wrote: > Is there any reference for type of mathematical calculations that > one can do with Pipmak? For instance, is that possible to do matrix > manipulations in pipmak? Pipmak uses Lua as its scripting language. For an overview of the built-in mathematical capabilities of Lua, see <http://www.lua.org/manual/5.0/manual.html#5.5 >. Matrix calculations are not among them, but it's certainly possible to do them "by hand" by element-wise looping over Lua lists. That should work well enough if all you need to do is multiplying a 4x4 matrix to a vector, but it might not cut it if you're trying to diagonalize 1000x1000 matrices or something. If you need something more efficient, I could imagine that Lua bindings to some optimized numerical computation libraries exist. You might find something on the sites linked from <http://www.lua.org/community.html>, and if you do, it could probably be used in Pipmak using the extension module support that I'm currently working on. Does that answer your question? -Christian |