Skip to content

Commit c9a11fd

Browse files
committed
Reuse memory in RHS
1 parent d00728a commit c9a11fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/logkernelsquare.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ function logkernelsquare!(A::AbstractMatrix{T}, z, F_1, F_2) where T
156156
logkernelsquare_populatefirstcolumn!(A, z, F_1, F_2)
157157
logkernelsquare_populatefirstrow!(A, z, F_1, F_2)
158158

159-
# F = F_1 # reuse the memory
160-
F = F_2 .- F_1
159+
F = F_1 # reuse the memory
160+
F .= F_2 .- F_1
161161

162162
# 2nd row/column
163163

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ end
4141

4242
@testset "BigFloat" begin
4343
setprecision(2000) do
44-
for z in (big(2.0), big(2.0im), big(2.0+2im), big(2.0-2im), big(-2.0 - 2im))
44+
for z in big.(Z̃)
4545
P = Legendre{BigFloat}()
4646
n = 100
4747
M = Diagonal((P'P)[1:n,1:n])

0 commit comments

Comments
 (0)