Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lfex/lmatrix
- Owner: lfex
- Created: 2014-09-07T22:44:56.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-12T04:32:27.000Z (about 10 years ago)
- Last Synced: 2023-04-27T06:02:43.931Z (over 1 year ago)
- Language: Erlang
- Size: 230 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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))
```