lubeck 0.0.5

High level linear algebra library for Dlang

To use this package, put the following dependency into your project's dependencies section:


Build Status


High level linear algebra library for Dlang

Required static libraries

  • blas/cblas - CBLAS API
  • lapack - FORTRAN 77 LAPACK API

See the dub.sdl in the example folder.


  • mtimes - General matrix-matrix, row-matrix, matrix-column, and row-column multiplications.
  • mldivide - Solve systems of linear equations AX = B for X. Computes minimum-norm solution to a linear least squares problem if A is not a square matrix.
  • inv - Inverse of matrix.
  • svd - Singular value decomposition.
  • pca - Principal component analysis of raw data.
  • pinv - Moore-Penrose pseudoinverse of matrix.
  • det/detSymmetric - General/symmetric matrix determinant.
  • eigSymmetric - Eigenvalues and eigenvectors of symmetric matrix.


dependency "lubeck" version="~>0.0.4"
libs "lapack" "blas"
// or libs "openblas"
import std.stdio;
import mir.ndslice: magic, repeat, as, slice;
import lubeck: mtimes;

void main()
    auto n = 5;
    // Magic Square
    auto matrix =!double.slice;
    // [1 1 1 1 1]
    auto vec = 1.repeat(n).as!double.slice;
    // Uses CBLAS for multiplication

Open on

This work has been sponsored by Symmetry Investments and Kaleidic Associates.

About Kaleidic Associates

We are a boutique consultancy that advises a small number of hedge fund clients. We are not accepting new clients currently, but if you are interested in working either remotely or locally in London or Hong Kong, and if you are a talented hacker with a moral compass who aspires to excellence then feel free to drop me a line: laeeth at

We work with our partner Symmetry Investments, and some background on the firm can be found here:

  • Ilya Yaroshenko
  • Lars Tandle Kyllingstad (SciD author)
mir-lapack, mir-blas
1.1.3 2019-Feb-17
1.1.2 2018-Nov-13
1.1.1 2018-Nov-03
1.1.0 2018-Oct-25
1.0.1 2018-Oct-23
Show all 18 versions
Download Stats:
  • 11 downloads today

  • 67 downloads this week

  • 270 downloads this month

  • 4702 downloads total

Short URL: