MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Re: Best practices of coding using Mathematica?
  • Next by Date: Weather data options
  • Previous by thread: Re: Uninstalling Mathematica from Linux
  • Next by thread: Re: Clip + Packed Integer Array Machine Precision Results