https://github.com/brianchevalier/matrix-compare
A comparison of linear algebra in different languages and how to translate between them
https://github.com/brianchevalier/matrix-compare
clojure linear-algebra matlab matrix numpy
Last synced: 10 months ago
JSON representation
A comparison of linear algebra in different languages and how to translate between them
- Host: GitHub
- URL: https://github.com/brianchevalier/matrix-compare
- Owner: BrianChevalier
- License: mit
- Created: 2020-11-27T05:50:32.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-02T19:34:38.000Z (about 5 years ago)
- Last Synced: 2025-03-23T20:43:45.735Z (11 months ago)
- Topics: clojure, linear-algebra, matlab, matrix, numpy
- Language: Clojure
- Homepage: https://brianchevalier.github.io/matrix-compare/
- Size: 112 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Matrix Compare
A comparison of different languages/libraries and how to translate common linear algebraic operations between them. Inspired by [Numpy for MATLAB users](https://numpy.org/doc/stable/user/numpy-for-matlab-users.html). Visual site available [here](https://brianchevalier.github.io/matrix-compare/). Pull requests welcome!
## Development
make dev
Each example is stored under `src/matrix_compare/examples.cljs` in a list of maps, where each map looks like the following:
```
{:description "Create a new array" ; description of the example
:core.matrix {:in "(array [0 1 2])" ; the example input
:out "[0 1 2]" ; output of the example
:fn :core.matrix/array} ; namespaced key, used in core.cljs to create a documentation url
:numpy {:in "np.array([0, 1, 2])"
:out "array([0, 1, 2])"
:fn :numpy/array}}
```
## Deploying
make deploy