git.iko.soy/rowtype-yoga/purescript-linear-algebra
on master help sign in
init
commit4ddbf886ea63d928f24fc081fdeeb0717861adef authorKrzysztof Langner <klangner@gmail.com> dateTue 11 Apr 2017, 14:35 (10 years ago) parent6cd4bbf
3 files changed+41−19
README.md+17−18 bower.json+8−1 src/LinearAlgebra/Matrix.purs+16
README.md+17−18
@@ -1,36 +1,35 @@
1−# Data Frame library
1+# Linear Algebra for PureScript
22
3−[![Build status](https://travis-ci.org/carldata/purescript-dataframe.svg?branch=master)](https://travis-ci.org/carldata/purescript-dataframe)
4−<a href="https://pursuit.purescript.org/packages/purescript-dataframe">
5− <img src="https://pursuit.purescript.org/packages/purescript-dataframe/badge"
6− alt="purescript-dataframe on Pursuit">
3+[![Build status](https://travis-ci.org/carldata/purescript-linear-algebra.svg?branch=master)](https://travis-ci.org/carldata/purescript-linear-algebra)
4+<a href="https://pursuit.purescript.org/packages/purescript-linear-algebra">
5+ <img src="https://pursuit.purescript.org/packages/purescript-linear-algebra/badge"
6+ alt="purescript-linear-algebra on Pursuit">
77 </img>
88</a>
99
10−This library should provide basic functionality similar to python numpy/pandas
10+Basic functionality for linear algebra. Check **Features** for what is already implemented.
11+This is work in progress. It means that API can change anytime.
1112
1213
1314## Installation
1415
1516```
16−bower install purescript-dataframe
17+bower install purescript-linear-algebra
1718```
1819
1920## Features
2021
21− * Basic functionality
22− * [x] Slicing DataFrame
23− * [ ] Mapping over DataFrame
24− * [ ] Folding DataFrame
25− * [ ] Rolling window
26− * [ ] groupBy
27− * Input/Output
28− * [ ] Reading data from CSV string
22+ * Matrix
23+ * [ ] Matrix creation from array
24+ * [ ] Matrix addition
25+ * [ ] Multiply by scalar
26+ * Vector
27+ * [ ] Create from array
2928
3029
3130## Documentation
3231
33−Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-dataframe).
32+Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-linear-algebra).
3433
3534
3635## Build
@@ -47,13 +46,13 @@ We are happy to receive bug reports, fixes, documentation enhancements,
4746and other improvements.
4847
4948Please report bugs via the
50−[github issue tracker](http://github.com/carldata/purescript-dataframe/issues).
49+[github issue tracker](http://github.com/carldata/purescript-linear-algebra/issues).
5150
5251
5352
5453# Redistributing
5554
56−purescript-dataframe source code is distributed under the Apache-2.0 license.
55+purescript-linear-algebra source code is distributed under the Apache-2.0 license.
5756
5857**Contributions**
5958
bower.json+8−1
@@ -1,5 +1,12 @@
11{
2− "name": "purescript-dataframe",
2+ "name": "purescript-timeseries",
3+ "homepage": "https://github.com/klangner/purescript-linear-algebra",
4+ "repository": {
5+ "type": "git",
6+ "url": "https://github.com/carldata/purescript-linear-algebra.git"
7+ },
8+ "description": "Linear Algebra. Matrices, vector spaces etc.",
9+ "license": "Apache-2.0",
310 "ignore": [
411 "**/.*",
512 "node_modules",
src/LinearAlgebra/Matrix.pursnew file+16
@@ -0,0 +1,16 @@
1+module LinearAlgebra.Matrix
2+ ( Matrix
3+ ) where
4+
5+
6+-- | Dense Matrix implementation
7+type Matrix a =
8+ { nrows :: Int
9+ , ncols :: Int
10+ , data :: Array a
11+ }
12+
13+
14+-- -- | Create Matrix from array of values
15+-- fromArray :: ∀ a. Array a -> Int -> Int -> Maybe (Matrix a)
16+-- fromArray ds rows cols | length ds