infinite loop in circshift for empty matrices

David Bateman David.Bateman at motorola.com
Thu Mar 20 06:27:32 CDT 2008


The function circshift(x,n) should return x if x is empty, whereas in
Octave it currently results in an infinite loop. Patch attached with a
few tests added.

D.

-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch7760
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080320/c039b877/attachment.ksh 


More information about the Bug-octave mailing list