Provides matrix functions.
With node previously installed:
npm install @zokugun/lang.math.matrix
Use it with JavaScript
:
require('kaoscript/register');
const { Matrix } = require('@zokugun/lang.math.matrix')();
const m = Matrix.multiply(
[
[0, 1, 2],
[3, 4, 5]
],
[
[0, 3],
[1, 4],
[2, 5]
]
);
Use it with kaoscript
:
import '@zokugun/lang.math.matrix'
const m = Matrix.multiply(
[
[0, 1, 2],
[3, 4, 5]
],
[
[0, 3],
[1, 4],
[2, 5]
]
)
MIT © Baptiste Augrain