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:

codecov.io Latest version License Gitter Circle CI

Mir

Generic Numeric Library for Science and Machine Learning.

Contents

  • mir.ndslice Multidimensional Random Access Ranges and Arrays
  • mir.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 and v0.15.1-beta2+)
  • mir.sparse.blas Spars BLAS

Documentation

Alpha version of API is available here.

Compatibility

LinuxMac OS XWindows
DMD 64Build StatusBuild StatusBuild status
DMD 32Build StatusOS X >= 10.7 is x86-64 onlyBuild status
LDC 64Build StatusBuild Status#120
LDC 32Build StatusOS 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 version Dub downloads

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

TypeNameVersion
Stablelibmirlibmir libmir
Latestlibmir-gitlibmir-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

Authors:
  • Ilya Yaroshenko
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
Show all 81 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 8 downloads this month

  • 15141 downloads total

Score:
2.6
Short URL:
mir.dub.pm