Mir vs. Numpy: Reworked!
mw
mingwu at gmail.com
Thu Dec 3 23:07:15 UTC 2020
On Thursday, 3 December 2020 at 21:28:04 UTC, jmh530 wrote:
> On Thursday, 3 December 2020 at 20:25:11 UTC, data pulverizer
> wrote:
>> [snip]
>>
>> Very interesting work. What is the difference between Mir's
>> field, slice, native and ndslice? [...]
>
> The document says:
> Slice: Python like. Uses D Slices and Strides for grouping
> (Red-Black).
> Naive: one for-loop for each dimension. Matrix-Access via
> multi-dimensional Array.
> Field: one for-loop. Matrix is flattened. Access via
> flattened index.
> NdSlice: D like. Uses just MIR functionalities.
As Andre said:
"""
What maybe could help python developers is to have some articles
showing numpy coding and side by side the equivalent MIR coding.
"""
I think such Numpy v.s Mir side-by-side equivalent (or
improvement) document will greatly boost the adoption of Mir.
More information about the Digitalmars-d-announce
mailing list