mir-algorithm 0.5.2
Multidimensional arrays (ndslice), ranges, iterators, and algorithms for Dlang
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
mir-algorithm
- Generic Multidimensional arrays of three kinds
std.range,std.functional, and partiallystd.algorithmalternative suitable for fast executaion and multidimensional algorithms.- Iterators like random access iterators in C++, Fields, and ndFields.
- LLVM oriented math functions.
API Documentation
http://docs.algorithm.dlang.io
New ndslice
Scheme
https://rawgit.com/libmir/mir-algorithm/master/ndslice.svg
Features
- mir.ndslice.topology - Multidimensional
std.rangeanalog. Includesbitwise,bitpack,zip,unzip,map,indexedand many other features. - mir.ndslice.concatenation - Concatenation and padding
- mir.ndslice.algorithm - Slim multidimensional
std.algorithmanalog - mir.ndslice.sorting - Multidimensional sorting utilities
ndslice design was changed. New ndslices can be created on top of random access iterators including pointers. There are three kinds of ndslice:
Contiguous- Contiguous in memory representation. It does not store strides and can be always flattened to 1 dimensional ndslice on top of the same iterator type.Canonical- BLAS like. Stride for row dimension assumed to be equal to 1.Universal- Numpy like. Each dimension has strides. All dimensions can be exchanged without reallocation. The old ndslice ABI corresponds to to theUniversalndslice.
Known bugs
- With LDC <=1.1.1
mir.ndslice.topology.mapmay not work because LDC has deprecated DMD FE
Old ndslice
If you are looking for old ndslice, please use the main repo with old tag v0.22.1.
- 0.5.2 released 8 years ago
- libmir/mir-algorithm
- BSL-1.0
- Copyright © 2016 - 2017, Ilya Yaroshenko, Digital Mars (see information per file)
- Authors:
- Dependencies:
- none
- Versions:
-
Show all 635 versions3.22.4 2025-Jun-12 3.22.3 2024-Dec-17 3.22.2 2024-Dec-17 3.22.1 2024-Apr-23 3.22.0 2023-Aug-09 - Download Stats:
-
-
60 downloads today
-
855 downloads this week
-
3627 downloads this month
-
796112 downloads total
-
- Score:
- 4.9
- Short URL:
- mir-algorithm.dub.pm