mir 0.16.0-beta0
Numerical 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 Numerical Library for Science and Machine Learning.
Contents
mir.ndsliceMultidimensional Random Access Ranges and Arraysmir.sparseSparse TensorsSparse- DOK format- Different ranges for COO format
CompressedTensor- CSR/CSC formatsmir.sparse.blas- Sparse BLAS forCompressedTensormir.model.lda.hoffman- Online variational Bayes for latent Dirichlet allocation (Online VB LDA) for sparse documents. LDA is used for topic modeling.mir.combinatoricsCombinations, combinations with repeats, cartesian power, permutations.mir.las.sumFunctions 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.blas- this is slow snail, it is for experiments with BLAS API. Don't use for now.
In progress
mir.random- non-uniform RNGs.mir.blas- BLAS in D.
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 | |||
| LDC 32 | OS X >= 10.7 is x86-64 only |
- DMD (reference D compiler) >=
2.070 - LDC (LLVM D Compiler) >=
1.0.0.
Installation
Fast setup with the dub package manager
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 and set its targetType to executable.
{
...
"dependencies": {
"mir": "~><current-version>"
},
"targetType": "executable"
}
Now you can create a main file in the source and run your code with:
dub
You can use a different compile with dub --compiler ldc.
For a performance boost, add -b release to let the compiler perform additional
optimizations, inlining, removal of bound checking and assert statements.
Arch Linux
| Type | Name | Version |
|---|---|---|
| Stable | libmir | |
| Latest | libmir-git |
Contributing
See our TODO List. Mir is very young and we are open for contributing to source code, documentation, examples and benchmarks.
Notes
mir.ndsliceis a development version of thestd.experimental.ndslicepackage.
- 0.16.0-beta0 released 9 years ago
- libmir/mir
- BSL-1.0
- 2015-2016, Ilya Yaroshenko, Mir Team
- Authors:
- Dependencies:
- cpuid
- Versions:
-
Show all 81 versions3.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:
-
-
0 downloads today
-
0 downloads this week
-
360 downloads this month
-
22832 downloads total
-
- Score:
- 4.3
- Short URL:
- mir.dub.pm