multi-dimentional arrays

Bastiaan Veelo Bastiaan at Veelo.net
Sun Jan 9 11:54:38 UTC 2022


On Sunday, 9 January 2022 at 11:02:54 UTC, Dibyendu Majumdar 
wrote:
> Is it difficult/impossible to support multidimensional arrays 
> similar to Fortran in D? That is, extend the fat pointer 
> concept to allow more than 1 dimension and enhance indexing to 
> support multiple dimensions?

That has been implemented in 
[`mir.ndslice`](https://code.dlang.org/packages/mir-algorithm) 
and is ready for use.

* [Tour](https://mir.dlang.science/welcome/welcome-to-mir)
* [Writing efficient numerical code in 
D](http://blog.mir.dlang.io/ndslice/algorithm/optimization/2016/12/12/writing-efficient-numerical-code.html)
* [Docs](http://mir-algorithm.libmir.org/index.html)
* [Package](https://code.dlang.org/packages/mir-algorithm)

-- Bastiaan.


More information about the Digitalmars-d mailing list