Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lfex/lmatrix

A Simple Linear Algebra Library for LFE
https://github.com/lfex/lmatrix

Last synced: 1 day ago
JSON representation

A Simple Linear Algebra Library for LFE

Awesome Lists containing this project

README

        

# lmatrix

*A Simple Linear Algebra Library for LFE*

## Introduction

Erlang is not a programming language designed for nor performant with
numerical calculations. This library is for fun only, not for scientific
computing purposes.

## Installation

Just add it to your ``rebar.config`` deps:

```erlang
{deps, [
...
{lmatrix, ".*", {git, "[email protected]:lfex/lmatrix.git", "master"}}
]}.
```

And then do the usual:

```bash
$ rebar get-deps
$ rebar compile
```

## Usage

Start up the REPL, after compiling as above:

```bash
$ make repl-no-deps
```

Then use the library at will:

```cl
> (set matrix
'((1 2 3)
(4 5 6)
(7 8 9)))
((1 2 3) (4 5 6) (7 8 9))
> (lmatrix:dim matrix)
(3 3)
> (lmatrix:transpose matrix)
((1 4 7) (2 5 8) (3 6 9))
```