From 4b967e7db1732f22a03c6e207f56af70ef051576 Mon Sep 17 00:00:00 2001 From: Nuwan Yapa Date: Wed, 5 Feb 2025 18:20:10 -0500 Subject: [PATCH] Simple bug fix --- EC.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EC.jl b/EC.jl index de38c14..efd1e12 100644 --- a/EC.jl +++ b/EC.jl @@ -77,7 +77,7 @@ end function get_reduced_matrices(EC::affine_EC, training_vecs, gram_schmidt_threshold, subsample=1:length(training_vecs); verbose=false) vecs = deepcopy(training_vecs[subsample]) - if gram_schmidt_threshold > 0; vecs = gram_schmidt!(sampled_vecs, EC.weights, gram_schmidt_threshold; verbose=verbose); end + if gram_schmidt_threshold > 0; vecs = gram_schmidt!(vecs, EC.weights, gram_schmidt_threshold; verbose=verbose); end EC_basis = hcat(vecs...) weights_mat = spdiagm(EC.weights)