From d68b28486a541649258da9c707094e3e9358972a Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Thu, 5 Oct 2023 17:13:47 -0700 Subject: [PATCH] refactor: remove dead code from complexEigs.js --- src/function/matrix/eigs/complexEigs.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/function/matrix/eigs/complexEigs.js b/src/function/matrix/eigs/complexEigs.js index dc29620a67..17d053f887 100644 --- a/src/function/matrix/eigs/complexEigs.js +++ b/src/function/matrix/eigs/complexEigs.js @@ -10,11 +10,7 @@ export function createComplexEigs ({ addScalar, subtract, flatten, multiply, mul * * @returns {{ values: number[], vectors: number[][] }} */ - function complexEigs (arr, N, prec, type, findVectors) { - if (findVectors === undefined) { - findVectors = true - } - + function complexEigs (arr, N, prec, type, findVectors = true) { // TODO check if any row/col are zero except the diagonal // make sure corresponding rows and columns have similar magnitude