C++ / Why Iterators Got It All Wrong

Enamex via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 6 13:24:05 PDT 2017


On Sunday, 3 September 2017 at 09:24:03 UTC, Ilya Yaroshenko 
wrote:
> 1. Contiguous tensors. Their data is located contiguously in 
> memory. Single dense memory chunk. All strides between 
> subs-tensors can be computed from lengths.
>
> 2. Canonical tensors. Only data for one dimension is dense, 
> other dimensions has strides that can not be computed from 
> lengths. BLAS matrixes are canonical tensors: they have two 
> lengths and one stride.
>
> 3. Universal tensors. Each dimension has a stride. Numpy 
> ndarrays are universal tensors.

Can you elaborate?


More information about the Digitalmars-d mailing list