Skip to content

ZokugunKS/lang.math.matrix

Repository files navigation

kaoscript License NPM Version Dependency Status Build Status CircleCI Coverage Status

Provides matrix functions.

Getting Started

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]
	]
)

License

MIT © Baptiste Augrain