From 76a2135063ebd49c0272a47dc514ade630006879 Mon Sep 17 00:00:00 2001 From: kalmar Date: Sat, 8 Apr 2017 13:50:59 +0200 Subject: [PATCH] change view to slice: it's not the bottleneck and thread safe --- src/checksolution.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checksolution.jl b/src/checksolution.jl index 8d72f8e..91e3e4f 100644 --- a/src/checksolution.jl +++ b/src/checksolution.jl @@ -38,7 +38,7 @@ function correct_to_augmentation_ideal{T<:Rational}(sqrt_matrix::Array{T,2}) sqrt_corrected = similar(sqrt_matrix) l = size(sqrt_matrix,2) for i in 1:l - col = view(sqrt_matrix,:,i) + col = sqrt_matrix[:,i] sqrt_corrected[:,i] = col - sum(col)//l # @assert sum(sqrt_corrected[:,i]) == 0 end