0.0.1 • Published 9 years ago
matrix-identity v0.0.1
matrix-identity
Create an identity matrix
Install
$ npm install --save matrix-identity
Usage
var mIdentity = require('matrix-identity')
var iMat = mIdentity(4)
console.log(iMat)
/*
[1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1]
*/
License
(c) 2015 Chinedu Francis Nwafili. MIT License
0.0.1
9 years ago