From 5363a1af6c03ae4e271c3702b8ff229096b3d998 Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Fri, 22 Sep 2023 09:06:11 -0500 Subject: [PATCH] Update matrix.js --- src/matrix.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix.js b/src/matrix.js index 16fb40d..c98253b 100644 --- a/src/matrix.js +++ b/src/matrix.js @@ -802,8 +802,8 @@ export class AbstractMatrix { return diag; } - norm(type) { - switch (type ?? 'frobenius') { + norm(type = 'frobenius') { + switch (type) { case 'max': return this.max(); case 'frobenius':