matte ~master
A linear algebra library
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
matte
A linear algebra library for the D programming language
Currently still in early development, and the speed is not very good, but it should be useful to anyone wanting to implement algorithms that rely on matrix operations.
Examples
This example shows that matrix multiplication is non-commutative.
import std.stdio;
import matte.matrix;
void main() {
auto A = matrix([
[1.0f, 2.0f],
[3.0f, 4.0f]
]);
auto B = matrix([
[5.0f, 6.0f],
[7.0f, 8.0f]
]);
writeln(A * B);
writeln(B * A);
}
- ~master released 10 years ago
- henrygouk/matte
- BSD 3-clause
- Copyright © 2014, Henry Gouk
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.0 2014-Dec-27 ~master 2014-Dec-27 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
0 downloads total
-
- Score:
- 0.6
- Short URL:
- matte.dub.pm