Deprecated use of spkron
John W. Eaton
jwe at octave.org
Wed Jun 24 11:41:20 CDT 2009
On 18-Jun-2009, Marco Caliari wrote:
| Dear maintainters,
|
| the enclosed patch substitutes spkron with kron in repmat.m (3.2.0)
|
| 2009-06-18 Marco Caliari <marco.caliari at univr.it>
|
| * scripts/general/repmat.m: substitute spkron with kron
|
| Best regards,
|
| Marco
| ----------------------------------------------------------------------
| --- scripts/general/repmat.m.orig 2009-06-18 09:12:55.000000000 +0200
| +++ scripts/general/repmat.m 2009-06-18 09:13:05.000000000 +0200
| @@ -64,7 +64,7 @@
| x = reshape (x, idx);
| elseif (ndims (a) == 2 && length (idx) < 3)
| if (issparse (a))
| - x = spkron (ones (idx), a);
| + x = kron (ones (idx), a);
| else
| ## indexing is now faster, so we use it rather than kron.
| m = rows (a); n = columns (a);
I made this change, attributed to you.
Thanks,
jwe
More information about the Octave-maintainers
mailing list