3 releases
| 0.1.3 | Sep 13, 2025 |
|---|---|
| 0.1.1 | Sep 8, 2025 |
| 0.1.0 | Aug 16, 2025 |
#20 in #lava
133 downloads per month
17KB
320 lines
Matrix plugin for Lava
Effective matrix-algebra plugin for Lava. Supports various matrix operations including addition, subtraction, multiplication, and transpose on int/ float 2xn arrays.
If GPU accelerattion is required see mumu-gpu
This project is part of the Lava/Mumu plugin stack./
Installation
To build as a plugin:
make
make install
Usage
The following functions are registered automatically:
matrix:addmatrix:subtractmatrix:miltiplymatrix:transpose
Example usage (in Lava):
extend("matrix")
// Add two multidimensional int matrices
a = [[1, 2], [3, 4]]
b = [[5, 6], [7, 8]]
res = matrix:add(a, b)
// [[6, 8 ], [10, 12]]
## Functions
```lava
result = matrix:transpose([[1, 2], [3, 4]])
sput(result)
License
This project is licensed under the MIT And Apache 2.0 licenses.
-
Tom Fotheringham & contributors
-
See LICENSE.
Contributing
Contributions in code or with issues are always welcome. Pull requests welcome!
Dependencies
~3.5–5MB
~83K SLoC