asignment of matrix to indexed diagonal matrix

Jaroslav Hajek highegg at gmail.com
Fri Jan 9 09:34:01 CST 2009


On Fri, Jan 9, 2009 at 3:12 PM, Søren Hauberg <soren at hauberg.org> wrote:
> Hi All,
>  It seems the introduction of diagonal matrices has introduced a
> problem. If I type
>
>  pascal (3)
>
> I get the following error
>
> warning: is_scalar is obsolete and will be removed from a future version
> of Octave; please use isscalar instead
> error: assignment of `matrix' to indexed `diagonal matrix' not
> implemented
> error: assignment failed, or no method for `diagonal matrix = matrix'
> error: called from:
> error:   /home/sh/Programmer//share/octave/3.1.51
> +/m/special-matrix/pascal.m at line 52, column 15
>
> Cheers,
> Søren
>
>

Apparently I shot myself in the foot here. I wanted to make the most
common conversions preferred to be found more early in the lookup
process, but forgot to register the operations.
A fix is comitted: http://hg.savannah.gnu.org/hgweb/octave/rev/9e1973f7709d

cheers

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



More information about the Bug-octave mailing list