lubeck 0.0.6beta
High level linear algebra library for Dlang
To use this package, put the following dependency into your project's dependencies section:
lubeck
High level linear algebra library for Dlang
Required static libraries
blas
/cblas
 CBLAS APIlapack
 FORTRAN 77 LAPACK API
See the dub.sdl
in the example folder.
API
mtimes
 General matrixmatrix, rowmatrix, matrixcolumn, and rowcolumn multiplications.mldivide
 Solve systems of linear equations AX = B for X. Computes minimumnorm 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
 MoorePenrose pseudoinverse of matrix.det
/detSymmetric
 General/symmetric matrix determinant.eigSymmetric
 Eigenvalues and eigenvectors of symmetric matrix. Qr decomposition:
qrDecomp
withsolve
method  Cholesky:
choleskyDecomp
withsolve
method  LU decomposition:
luDecomp
withsolve
method  LDL decomposition:
ldlDecomp
withsolve
method
Example
/+dub.sdl:
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 = n.magic.as!double.slice;
// [1 1 1 1 1]
auto vec = 1.repeat(n).as!double.slice;
// Uses CBLAS for multiplication
matrix.mtimes(vec).writeln;
matrix.mtimes(matrix).writeln;
}
Related packages
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 kaleidic.io
We work with our partner Symmetry Investments, and some background on the firm can be found here:
http://symmetryinvestments.com/aboutus/
 Registered by Ilya Yaroshenko
 0.0.6beta released 2 months ago
 kaleidicassociates/lubeck
 BSL1.0
 Copyright © 2017, Symmetry Investments & Kaleidic Associates; Copyright (c) 2009, Lars T. Kyllingstad (SciD)
 Authors:
 Dependencies:
 mirrandom, mirlapack, mirblas
 Versions:

0.0.6beta 2018Mar01 0.0.5 2018Feb20 0.0.4 2017Oct27 0.0.3 2017Jun05 0.0.2 2017Jun05  Download Stats:


9 downloads today

65 downloads this week

306 downloads this month

1782 downloads total

 Score:
 4.1
 Short URL:
 lubeck.dub.pm