eig

Get the eigenvalues and eigenvectors of a matrix

Usage no npm install needed!

<script type="module">
  import eig from 'https://cdn.skypack.dev/eig';
</script>

README

eig

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Get the eigenvalues and eigenvectors of a row-based matrix. Currently based on eigenfaces, but that will hopefully change soon.

API

var eig = require('eig')

eig([[1,0],[0,1]]).then(function (result) {
  console.log(result.eigenvalues)
  console.log(result.eigenvectors)
})