- Notifications
You must be signed in to change notification settings - Fork20
Mir (backports): Sparse tensors, Hoffman
License
libmir/mir
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
❗️ ndslice was reworked and moved toMir-Algorithm.
The last Mir version with old ndslice isv0.22.1
.
❗️ Mir GLAS was moved tohttps://github.com/libmir/mir-glas.
Generic Numerical Library for Science and Machine Learning.
- Mir Algorithm - Multidimensional arrays (ndslice), iterators, algorithms.
- Mir Random - Professional Random Number Generators
- Mir GLAS - Linear Algebra Library (Experimental, not supported for now)
- Mir BLAS - Bindings to libraries with CBLAS API like OpenBLAS and Intel MKL.
- Mir LAPACK - Bindings to libraries with LAPACK API like OpenBLAS and Intel MKL.
- MirOptim - Nonlinear Solvers.
- Mir CPUID - CPU Identification routines (less buggy then Phobos).
Documentation API can be foundhere.
mir.glas
- Generic Linear Algebra Subroutinesmir.sparse
Sparse TensorsSparse
- DOK format- Different ranges for COO format
CompressedTensor
- CSR/CSC formatsmir.sparse.blas
- Sparse BLAS forCompressedTensor
mir.model.lda.hoffman
- Online variational Bayes for latent Dirichlet allocation (Online VB LDA) for sparse documents. LDA is used for topic modeling.mir.combinatorics
Combinations, combinations with repeats, cartesian power, permutations.
Linux | Mac OS X | Windows | |
---|---|---|---|
64-bit | |||
32-bit | N/A | N/A |
/+dub.sdl:dependency "mir" version="~>3.1.0"+/importstd.stdio;import mir.combinatorics;voidmain(string[] args){ writeln([1,2].combinations);}
Dub is the D's package manager.You can create a new project with:
dub init <project-name>
Now you need to edit thedub.json
addmir
as dependency.
{..."dependencies": {"mir":"~><current-version>"},"dflags-ldc": ["-mcpu=native"]}
Now you can create anapp.d
file in thesource
folder and run your code with
dub --compiler=ldmd2
Flag--build=release
and can be added for a performance boost:
dub --compiler=ldmd2 --build=release
ldmd2
is a shell on top ofLDC (LLVM D Compiler).
"dflags-ldc": ["-mcpu=native"]
allows LDC to optimize Mir for your CPU.
See ourTODO List.Mir is very young and we are open for contributing to source code, documentation, examples and benchmarks.
About
Mir (backports): Sparse tensors, Hoffman
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.