Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: speed of evaluation of an instruction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65109] Re: speed of evaluation of an instruction
  • From: rudy <rud-x at caramail.com>
  • Date: Wed, 15 Mar 2006 06:28:20 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

that's right: i should write the entire instruction:

t = Split[testList];
t = t /. x : {1 ..} :> {1, Rest[x] /. 1 -> 0} // Flatten;
Position[t, 1] // Flatten; 

between parenthesis and wrtie //Timing after the parenthesis! 
thank you very much
*Rudy*


  • Prev by Date: Re: Factoring
  • Next by Date: a[[0]] equivalent to a[[-1]] and so forth
  • Previous by thread: Re: speed of evaluation of an instruction
  • Next by thread: Third Announcement of the International Mathematica Symposium 2006