Re: Left Matrix Division [message #77683] |
Mon, 19 September 2011 03:18 |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On Sep 19, 12:54 am, mankoff <mank...@gmail.com> wrote:
> Nevermind, I found the LA_LEAST_SQUARES function. It turns out that a
> \b in MATLAB does a lot of different things depending on the shape of
> a.
>
> -k.
>
> On Sep 18, 6:53 pm, mankoff <mank...@gmail.com> wrote:
>
>
>
>
>
>
>
>> Hi,
>
>> I'm trying to do some matrix division, something which in MATLAB is
>> done
>
>> r = a\b
>
>> where A is m row x n column and B is an n column matrix and the result
>> is and m x 1 column matrix.
>
>> I think this is called left matrix division and is equal to "b^(-1)
>> times a", but am having trouble inverting B as it is a column vector.
>> I have been looking into IMSL_INV as I have not found any other IDL
>> functions that claim to invert a matrix or do matrix division.
>
>> Any help will be much appreciated.
>
>> Thanks,
>
>> -k.
Cone on!!! you know that for inverting, you need DET(A) NE O
|
|
|
Re: Left Matrix Division [message #77685 is a reply to message #77683] |
Mon, 19 September 2011 00:54  |
mankoff
Messages: 131 Registered: March 2004
|
Senior Member |
|
|
Nevermind, I found the LA_LEAST_SQUARES function. It turns out that a
\b in MATLAB does a lot of different things depending on the shape of
a.
-k.
On Sep 18, 6:53 pm, mankoff <mank...@gmail.com> wrote:
> Hi,
>
> I'm trying to do some matrix division, something which in MATLAB is
> done
>
> r = a\b
>
> where A is m row x n column and B is an n column matrix and the result
> is and m x 1 column matrix.
>
> I think this is called left matrix division and is equal to "b^(-1)
> times a", but am having trouble inverting B as it is a column vector.
> I have been looking into IMSL_INV as I have not found any other IDL
> functions that claim to invert a matrix or do matrix division.
>
> Any help will be much appreciated.
>
> Thanks,
>
> -k.
|
|
|