Trailing singletons in min/max functions

David Bateman David.Bateman at motorola.com
Mon Mar 17 05:19:57 CDT 2008


Both 3.0.x and 3.1.x leave trailing singletons in the matrices they
return.. This can be seen with

x = reshape (1:8,[2,2,2]);
[y, i ] = min (x, [], 3);
size(y)

The attached patch addresses this, moves the min/max tests from
test_arith.m to minmax.cc and adds an additional test for this issue. It
also fixes a possible 64-bit indexing issue..

Regards
David

-- 
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: patch7710
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080317/20f7a823/attachment.ksh 


More information about the Bug-octave mailing list