help with chunk indexing [message #54656] |
Fri, 29 June 2007 12:51  |
Matt B.
Messages: 3 Registered: June 2007
|
Junior Member |
|
|
Hey everyone,
So I know how to do this.
n = [1,2,1,4] ==> inds = [0,1,1,2,3,3 ,3 ,3]
But what is a fast way to do this
n = [1,2,1,4] ==> inds = [0,0,1,0,0,1 ,2 ,3]
One could use a loop and what not, but there must be a better way...
Matt
|
|
|
Re: help with chunk indexing [message #54761 is a reply to message #54656] |
Wed, 04 July 2007 04:03  |
Matt B.
Messages: 3 Registered: June 2007
|
Junior Member |
|
|
Sorry, I have been away or I would have answered your question. The
link to the Fanning website is the best way I have seen to do chunk
indexing. Maybe a DLM written in C would be jut as fast though.
Thanks for the help!
Matt
|
|
|