Skip to content

galElmalah/easy-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-matrix

An easy to use Matrix library

Getting started

npm i -s easy-matrix

Basic example

Lets look at a common use case of adding two matrices

const { Matrix } = require('easy-matrix');

const mat1 = new Matrix(5,5, {mapper: (i,j) => i+j});
const mat2 = new Matrix(5,5, {mapper: (i,j) => i});

/* 
the output will be a new Matrix instance which contains 
the result of the matrices addition 
*/
const additionResult = mat1.plus(mat2);

About

An easy to use Matrix library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published