August 10, 2006 Re: Flat multi-dim arrays. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | On Thu, 10 Aug 2006 20:19:10 +0200, Don Clugston wrote: > Have you read Norbert Nemec's original multi-dim array proposal (you can find it on Wiki4D)? The key feature is "strided slices", which seem to be essential for dealing with multi-dim arrays. Something like that could get most of the fruit on the tree... Norbert's idea is not quite well developed enough yet, though, to be truly compelling. I think Walter isn't interested in being as good or better than C/C++/C#, he wants to Get It Right. If you can develop an idea for strided arrays which folds neatly into the existing language, that would be extremely valuable. > Walters comment to Nemec's proposal where that it where 2.0 stuff. So, I think the 2.0 series will contain extended arrays stuff and vectorization stuff. http://all-technology.com/eigenpolls/dwishlist/index.php?it=10 |
August 11, 2006 Re: Flat multi-dim arrays. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dave | Dave wrote: > Oskar Linde wrote: >> Mikola Lysenko wrote: >> >>> 5. How do slices work? >>> >>> You can't just slice a random chunk from the middle of an array in place >>> like a regular array, since the layout will be incorrect. >> >> Yes you can. This is exactly what strides are for. >> For each dimension, you keep a stride as well as a length. Walking up the >> dimension moves a stride of units of memory. This even allows things like >> transposing a large matrix without moving a single byte. > > Can you pass along some syntax / usage for that? > > Thanks. > >> /Oskar >> >> I think he was talking about Norbert Nemec's proposal, which was referred to earlier: http://homepages.uni-regensburg.de/~nen10015/documents/D-multidimarray.html Cheers, Reiner |
Copyright © 1999-2021 by the D Language Foundation