Clip + Packed Integer Array Machine Precision Results
- To: mathgroup at smc.vnet.net
- Subject: [mg98617] Clip + Packed Integer Array Machine Precision Results
- From: Raffy <raffy at mac.com>
- Date: Tue, 14 Apr 2009 06:18:05 -0400 (EDT)
This appears to be a bug: 1: Clip[{1, 2, 3}, {2, 2}, {0, 1/2}] ==> {0, 2, 1/2} 2: Clip[Developer`ToPackedArray[{1, 2, 3}], {2, 2}, {0, 1/2}] ==> {0., 2., 0.5} 2 should return the exact same as 1, instead it returns a packed vector of reals.