octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deprecated use of spkron


From: John W. Eaton
Subject: Deprecated use of spkron
Date: Wed, 24 Jun 2009 12:41:20 -0400

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  <address@hidden>
| 
|        * 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]