[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with the octave built-in function "kron"
From: |
Stephen Montgomery-Smith |
Subject: |
Re: problem with the octave built-in function "kron" |
Date: |
Fri, 03 May 2013 15:01:23 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
On 05/03/2013 01:41 PM, Jordi Gutiérrez Hermoso wrote:
> On 3 May 2013 12:54, Stephen Montgomery-Smith <address@hidden> wrote:
>> However kron seems to treat diagonal matrices and sparse matrices
>> differently. Maybe kron should be rewritten to see if both of the
>> matrices are sparse OR diagonal. Because when I took his code and
>> changed eye to speye, it worked.
>>
>> I should add that I tested it using a very old version of octave that
>> comes with ubuntu linux. Maybe this fix has already been applied in
>> later versions.
>
> I believe I already did that, unless I'm misremembering:
>
> http://hg.savannah.gnu.org/hgweb/octave/rev/75cea615ade4
So the OP's other solution is to use a much more recent version of
octave. (I presume this change was too late for octave 3.6.3, and that
is the latest version I have easy access to.)