Re: API for matrix manipulation

2011-03-22 Thread Paul Bakaus
Just wanted to throw in Sylvester, which is a fairly cool Math JS lib for generic Matrix and Vector computations (http://sylvester.jcoglan.com/). I especially like it as the API feels like it is designed for human beings. Having Matrix/Vector as generic interfaces sounds like a big win. Am 18.03.1

Re: API for matrix manipulation

2011-03-18 Thread Chris Marrin
On Mar 15, 2011, at 5:08 PM, Tab Atkins Jr. wrote: > On Tue, Mar 15, 2011 at 5:00 PM, Chris Marrin wrote: >> I think it would be nice to unify the classes somehow. But that might be >> difficult since SVG and CSS are (necessarily) separate specs. But maybe one >> of the API gurus has a solutio

Re: API for matrix manipulation

2011-03-15 Thread Tab Atkins Jr.
On Tue, Mar 15, 2011 at 5:00 PM, Chris Marrin wrote: > I think it would be nice to unify the classes somehow. But that might be > difficult since SVG and CSS are (necessarily) separate specs. But maybe one > of the API gurus has a solution? We just discussed this on Monday at the FXTF telcon.

Re: API for matrix manipulation

2011-03-15 Thread Chris Marrin
On Mar 15, 2011, at 2:49 PM, Gregg Tavares (wrk) wrote: > > > On Mon, Mar 14, 2011 at 4:27 PM, Chris Marrin wrote: > > On Mar 14, 2011, at 12:19 PM, Lars Knudsen wrote: > > > Hi, > > > > related to this: Is there any work ongoing to tie these (or more generic > > vector / matrix) classes t

Re: API for matrix manipulation

2011-03-15 Thread Chris Marrin
On Mar 14, 2011, at 6:54 PM, João Eiras wrote: > >>> Comments or is something already being worked on ? >> >> There are already 2 such classes: SVGMatrix and CSSMatrix. The former is an >> affine transformation matrix (commonly misnamed a "2x3 matrix") and the >> latter is a 3D homogeneous tr

Re: API for matrix manipulation

2011-03-15 Thread Gregg Tavares (wrk)
On Mon, Mar 14, 2011 at 4:27 PM, Chris Marrin wrote: > > On Mar 14, 2011, at 12:19 PM, Lars Knudsen wrote: > > > Hi, > > > > related to this: Is there any work ongoing to tie these (or more generic > vector / matrix) classes to OpenCL / WebCL for faster computation across > CPUs and GPUs? > > On

Re: API for matrix manipulation

2011-03-15 Thread Lars Knudsen
Hi, related to this: Is there any work ongoing to tie these (or more generic vector / matrix) classes to OpenCL / WebCL for faster computation across CPUs and GPUs? - Lars On Mon, Mar 14, 2011 at 5:17 PM, Chris Marrin wrote: > > On Mar 14, 2011, at 7:56 AM, João Eiras wrote: > > Hi. > > Given

Re: API for matrix manipulation

2011-03-14 Thread João Eiras
Comments or is something already being worked on ? There are already 2 such classes: SVGMatrix and CSSMatrix. The former is an affine transformation matrix (commonly misnamed a "2x3 matrix") and the latter is a 3D homogeneous transformation matrix (commonly correctly named a "4x4 matrix").

Re: API for matrix manipulation

2011-03-14 Thread Chris Marrin
On Mar 14, 2011, at 12:19 PM, Lars Knudsen wrote: > Hi, > > related to this: Is there any work ongoing to tie these (or more generic > vector / matrix) classes to OpenCL / WebCL for faster computation across CPUs > and GPUs? On WebKit I've experimented with an API to copy a CSSMatrix to an F

Re: API for matrix manipulation

2011-03-14 Thread Chris Marrin
On Mar 14, 2011, at 7:56 AM, João Eiras wrote: > Hi. > > Given that a number of API are being developed that require complex > matricial calculations (transforms, device orientation, web gl), I > would suggest that perhaps an API with a big number of common > calculations could be made available

Re: API for matrix manipulation

2011-03-14 Thread Boris Zbarsky
On 3/14/11 10:56 AM, João Eiras wrote: Math.mAdd(m1, m2) Math.mSub(m1, m2) Math.mMult(m1, m2) Presumably throwing on size mismatches? Math.mDiv(m1, m2) I don't think we should add this. Matrix "division" is a pretty fuzzy concept with non-square matrices. And if you stick to square matric

API for matrix manipulation

2011-03-14 Thread João Eiras
Hi. Given that a number of API are being developed that require complex matricial calculations (transforms, device orientation, web gl), I would suggest that perhaps an API with a big number of common calculations could be made available ? And a proper way to represent them. Perhaps, the best way