W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: API for matrix manipulation

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 14 Mar 2011 11:08:18 -0400
Message-ID: <4D7E2F62.5060209@mit.edu>
To: João Eiras <joao.eiras@gmail.com>
CC: public-webapps <public-webapps@w3.org>
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 matrices, 
it's easy to clearly do whatever you're trying to do with inverses.

> Math.mInverse(m1)

Presumably throwing for non-square matrices?

> Math.mGaussianReduce(m1)

This could be "fun" to define.  Are you actually talking about Gaussian 
elimination, or Gauss-Jordan?  For either one the output is not uniquely 
defined (at least not if you might want to make it fast), last I checked....

Received on Monday, 14 March 2011 15:08:53 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:30 UTC