It's for part of a few straightforward matrix operations but over a very 
trivial size of matrix (~ 10 x 5) within a mapper/reducer job. 

For the inverse method, for now more like just looking for a handy brainless 
one liner (since the matrix operations is trivial now). 

But do have a tradeoff concern in longer term when the matrix calculations 
becomes more involved (in terms of complexity but not so much of size), would 
we have better off by using another matrix package in the first place VS the 
out-of-box convenience to get some quick proof-of-concepts now. 

thanks.


________________________________
 From: Ted Dunning <[email protected]>
To: [email protected] 
Cc: B & E <[email protected]> 
Sent: Wednesday, January 25, 2012 3:18 AM
Subject: Re: mahout matrix package
 

Matrix inverse is almost never a good idea.  The same effect can usually be had 
using a decomposition at far less cost.  For instance, for solving a linear 
system, QR decomposition provides two sub-matrices that can easily have an 
inverse multiply operation applied to them avoiding the need for actually 
computing the inverse.

Can you say more about what you want to do?


On Tue, Jan 24, 2012 at 11:47 PM, Raphael Cendrillon <[email protected]> 
wrote:

I believe matrix inversion in general may not be so easy to distributed within 
a map reduce framework, however you could consider using the SSVD job to 
calculate an approximate matrix inverse.
>
>
>On 24 Jan, 2012, at 10:15 PM, B & E wrote:
>
>> Hi,
>>
>> I have a mahout newbie question -- I wanted to do some matrix operations in 
>> mahout and just realized Mahout's matrix package doesn't seem to have any 
>> API on providing an inverse of a matrix.
>>
>> Just curious was there a particular reason for such, or just so happens no 
>> code was contributed to add that method to the matrix classes?
>>
>> thanks.
>>
>> Ejawce
>
>

Reply via email to