pure-linear-algebra
v0.1.1
Published
Types and pure functions for basic linear algebra operations
Downloads
11
Maintainers
Readme
pure-linear-algebra
A collection of types and pure functions for basic linear algebra operations, written in pure JavaScript.
Works in Node and the browser!
This library is suited for interactive computation applications involving vectors, lines, planes, hyperplanes, and systems of equations. It is particularly useful for Gaussian Elimination, for which it provides a reducer and action set which can be used to "re-play" the solution process, possibly using a state-management library like redux. It does not do matrix operations.
This library is not built with the ideal of performance at the forefront, so depending on the application, another library (perhaps linear-algebra) could be better suited.
Initial test cases adapted from Udacity's Linear Algebra Refresher Course.
install
npm install pure-linear-algebra
CDN scripts
If you're not using npm, you can include one of these in your HTML file:
- https://unpkg.com/pure-linear-algebra?main=bundled (Unminified)
- https://unpkg.com/pure-linear-algebra?main=bundled-min (Minified)
<!-- unminified -->
<script src="https://unpkg.com/[email protected]?main=bundled"></script>
<!-- minified -->
<script src="https://unpkg.com/[email protected]?main=bundled-min"></script>
This will expose pureLinearAlgebra
as a global variable.
contributing
Don't hesitate to submit additional documentation, test cases, bug fixes or features via pull request!
If you think something is wrong with the API (totally plausible), please open an issue for discussion before submitting a pull rquest.