MathGroup Archive 2004

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

Search the Archive

Re: Tr vs Total [packed array bug on some versions]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49391] Re: Tr vs Total [packed array bug on some versions]
  • From: Daniel Reeves <dreeves at umich.edu>
  • Date: Sat, 17 Jul 2004 06:39:03 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I should've mentioned my $Version (problem occurs on Version 5.0 - 2003 
Jun 9, on both Linux and Windows).

But as Andrzej figured out, it's actually a bug in packed arrays that was 
perhaps fixed between the 2003-Jun-9 release of 5.0 and 2003-Nov-18.

Thanks you all!
Daniel

--- \/   FROM Andrzej Kozlowski AT 04.07.15 21:40 (Yesterday)   \/ ---

> On 15 Jul 2004, at 20:00, Daniel Reeves wrote:
> 
> > *This message was transferred with a trial version of CommuniGate(tm) 
> > Pro*
> > Tr seems to have a problem with big lists.  Anyone know why the 
> > following
> > 2 expressions don't yield the same result?
> >
> > Tr[Table[8000000, {269}]]
> >
> > Total[Table[8000000, {269}]]
> >
> > (they do if you make either of those constants smaller)
> >
> >
> > -- 
> > http://ai.eecs.umich.edu/people/dreeves  - -  google://"Daniel Reeves"
> >
> >
> 
> I would say its a bug involving Tr and packed arrays:
> 
> Tr[Developer`FromPackedArray[Table[8000000, {269}]]]
> 
> 
> 2152000000
> 
> 
> 
> Andrzej Kozlowski
> Chiba, Japan
> http://www.mimuw.edu.pl/~akoz/
> 

-- 
http://ai.eecs.umich.edu/people/dreeves  - -  google://"Daniel Reeves"




  • Prev by Date: Re: DeleteCases : several at once, conditions
  • Next by Date: Re: DeleteCases : several at once, conditions
  • Previous by thread: AW: Using a Result from NMinimize
  • Next by thread: new package for custom ticks