matrix-eig
v1.0.0
Published
Calculates the eigenvalues and normalized eigenvectors for a matrix, using Lapack
Downloads
180
Readme
Eigenvalue
Notice that the left and right eigenvectors are normalize meaning that the largest components are made real. This is done using the Lapack dgeev method.
To use the package:
var matrixEig = require('matrix-eig');
var matrix = [[0, 1][-2, -3]] var result = matrixEig.eig(matrix); console.log(result.eigenvalues.real);
console.log(result.eigenvalues.imaginary);
console.log(result.eigenvectors.left);
console.log(result.eigenvectors.right);