Skip to content

A Matrix Library for Erlang that uses Quantlib's C++ library.

Notifications You must be signed in to change notification settings

sklassen/erlang-linalg-quantlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantlib NIF for Erlang

This is an erlang matrix library that uses Quantlib. Quantlib in turn uses boost.

Installation

This code was compiled and run under ubuntu. You will need the quantlib development libraries.

> sudo apt-get install libquantlib0-dev

Then, in the top directory, compile using rebar

> rebar compile

Usage

Only two functions are supported as yet. The library only accepts floats.

Erlang R16B03 (erts-5.10.4) [source] [64-bit] 

Eshell V5.10.4  (abort with ^G)
1> linalg_quantlib:matmul([[1.0,2.0],[3.0,4.0]],[[1.0,2.0,3.0],[4.0,5.0,6.0]]).

2>  X = [[7.52, -0.76,  5.13, -4.75,  1.33, -2.40] ,[-1.10,  0.62,  6.62,  8.52,  4.91, -6.77] ,[-7.95,  9.34, -5.66,  5.75, -5.49,  2.34] ,[1.08, -7.10,  0.87,  5.30, -3.52,  3.95]],
3>  {{d,D},{u,U},{v,V}}= linalg_quantlib:svd(X).

About

A Matrix Library for Erlang that uses Quantlib's C++ library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published