Skip to content

Commit

Permalink
Convert <eigenDecomposition> tests to vitest (#263)
Browse files Browse the repository at this point in the history
* also fix eigenDecomposition component so it works with updated math.js
  • Loading branch information
cqnykamp authored Nov 30, 2024
1 parent 7af7628 commit fdd9bf4
Show file tree
Hide file tree
Showing 3 changed files with 616 additions and 504 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ export default class EigenDecomposition extends BaseComponent {
let vectorMag = 0;
for (let j = 0; j < arraySize[0]; j++) {
let val =
globalDependencyValues.decomposition.vectors[j][i];
globalDependencyValues.decomposition.eigenvectors[i]
.vector[j];
vector.push(val);
vectorMag += me.math.square(me.math.abs(val));
}
Expand Down
Loading

0 comments on commit fdd9bf4

Please sign in to comment.