MathGroup Archive 2006

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

Search the Archive

Re: speed of evaluation of an instruction


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