Bug#387137: [Pkg-octave-devel] Bug#387137: spkron(a, b) not working when arguments are scalar

Nicolas Guilbert raisoman at gmail.com
Tue Sep 12 14:49:32 UTC 2006


On 9/12/06, Thomas Weber <thomas.weber.mail at gmail.com> wrote:

<snip>
>
> Try
>         spkron(sparse(2), sparse(3))
>
> I don't consider this a bug. The overhead for sparse-implementations
> just doesn't make sense for scalars.
>
> Regards
>         Thomas
>

The concrete problem is that my code will run fine with full matrices,
until one of these matrices some day turns out to have dimension 1x1.

I would prefer being hit by the error at implementation time, for
instance by spkron() not working on full matrices.

brgds
 Nicolas




More information about the Pkg-octave-devel mailing list