From 274fa502e35eb86ed87be02c5b4338d77357e5dd Mon Sep 17 00:00:00 2001 From: rxg Date: Thu, 20 Dec 2018 15:33:03 -0500 Subject: [PATCH] update to cholesky: make-matrix no longer 0x0 dimensions Since the 0-size matrix is just a type-filler, it's safe to pass in a 1x1 matrix, though sketchy. Code-as-is signals a runtime error. --- cholesky.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cholesky.rkt b/cholesky.rkt index e48b3e5..6d5430b 100644 --- a/cholesky.rkt +++ b/cholesky.rkt @@ -61,7 +61,7 @@ (for*/fold: : [Matrix Real] ([L : [Matrix Real] (build-cholesky-column A - (make-matrix 0 0 0) + (make-matrix 1 1 0) 0 n)]) ([k : Natural (in-range 1 n)])