mir 0.13.3
Numeric library 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
Generic Numeric Library for Science and Machine Learning.
Contents
mir.ndslice
Multidimensional Random Access Ranges and Arraysmir.las.sum
Functions and Output Ranges for Summation Algorithms. Works with user-defined types.- Precise algorithm: improved analog of Python's
fsum
- Pairwise algorithm: fast version for Input Ranges
- Kahan, KBN, and KB2 algorithms
mir.combinatorics
combinations
permutations
cartesianPower
combinationsRepeat
In progress
mir.sparse
Sparse Tensors (see sparse branch andv0.15.1-beta2
+)mir.sparse.blas
Spars BLAS
Documentation
Alpha version of API is available here.
Compatibility
Linux | Mac OS X | Windows | |
---|---|---|---|
DMD 64 | |||
DMD 32 | OS X >= 10.7 is x86-64 only | ||
LDC 64 | #120 | ||
LDC 32 | OS X >= 10.7 is x86-64 only | #120 |
- DMD (reference D compiler) >=
2.068
- LDC (LLVM D Compiler)
0.17.0
+.
Packages
On any platform with dub
Dub is the D's package manager. You can create a new project with:
dub init --format=json <project-name>
Now you need to edit the dub.json
add mir
as dependency:
{
...
"dependencies": {
"mir": "~><current-version>"
}
}
Now you can create a main file in the source
and run your code with:
dub
Arch Linux
Type | Name | Version |
---|---|---|
Stable | libmir | |
Latest | libmir-git |
On any platform with import paths
Mir is a pure source code library, that means it can be easily distributed to
any system. So you can just copy Mir's source to your system's dlang import path.
For example on Linux this is /usr/include/dlang/dmd/mir
(or /usr/include/dlang/dmd/mir
for ldc).
Alternatively you can pass mir's directory directly to dmd and ldc using -I <path-to-mir>
.
Contributing
See our TODO List. Mir is very young and we are open for contributing to source code, documentation, examples and benchmarks.
Notes
mir.ndslice
is a development version of thestd.experimental.ndslice
package.
- Registered by Ilia Ki
- 0.13.3 released 7 years ago
- libmir/mir
- BSL-1.0
- 2015-2016, Ilya Yaroshenko, DlangScience
- Authors:
- Dependencies:
- none
- Versions:
-
3.2.3 2022-Jun-05 3.2.2 2020-Nov-15 3.2.1 2020-Mar-30 3.2.0 2019-Apr-13 3.1.2 2019-Mar-23 - Download Stats:
-
-
5 downloads today
-
35 downloads this week
-
172 downloads this month
-
16087 downloads total
-
- Score:
- 4.2
- Short URL:
- mir.dub.pm