matrix-identity

0.0.1 • Public • Published

matrix-identity Build Status

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

Package Sidebar

Install

npm i matrix-identity

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • chinedufn