@@ -183,33 +183,33 @@ function eigvalsPWK!(S::SymTridiagonal{T}; tol = eps(T), sortby::Union{Function,
183
183
blockend = n
184
184
end
185
185
186
- @debug " submatrix" blockstart blockend
186
+ # @debug "submatrix" blockstart blockend
187
187
188
188
# Deflate?
189
189
if blockstart == blockend
190
- @debug " Deflate? Yes!"
190
+ # @debug "Deflate? Yes!"
191
191
blockstart += 1
192
192
elseif blockstart + 1 == blockend
193
- @debug " Defalte? Yes, but after solving 2x2 block!"
193
+ # @debug "Defalte? Yes, but after solving 2x2 block!"
194
194
d[blockstart], d[blockend] =
195
195
eigvals2x2 (d[blockstart], d[blockend], sqrt (e[blockstart]))
196
196
e[blockstart] = zero (T)
197
197
blockstart += 1
198
198
else
199
- @debug " Deflate? No!"
199
+ # @debug "Deflate? No!"
200
200
# Calculate shift
201
201
sqrte = sqrt (e[blockstart])
202
202
μ = (d[blockstart+ 1 ] - d[blockstart]) / (2 * sqrte)
203
203
r = hypot (μ, one (T))
204
204
μ = d[blockstart] - sqrte / (μ + copysign (r, μ))
205
205
206
206
# QL bulk chase
207
- @debug " Values before PWK QL bulge chase" e[blockstart] e[blockend- 1 ] μ
207
+ # @debug "Values before PWK QL bulge chase" e[blockstart] e[blockend-1] μ
208
208
singleShiftQLPWK! (S, μ, blockstart, blockend)
209
209
210
210
rotations = blockend - blockstart
211
211
iter += rotations
212
- @debug " Values after PWK QL bulge chase" e[blockstart] e[blockend- 1 ] rotations
212
+ # @debug "Values after PWK QL bulge chase" e[blockstart] e[blockend-1] rotations
213
213
end
214
214
if blockstart >= n
215
215
break
@@ -259,27 +259,27 @@ function eigQL!(
259
259
blockend = n
260
260
end
261
261
262
- @debug " submatrix" blockstart blockend
262
+ # @debug "submatrix" blockstart blockend
263
263
264
264
# Deflate?
265
265
if blockstart == blockend
266
- @debug " Deflate? Yes!"
266
+ # @debug "Deflate? Yes!"
267
267
blockstart += 1
268
268
elseif blockstart + 1 == blockend
269
- @debug " Deflate? Yes, but after solving 2x2 block"
269
+ # @debug "Deflate? Yes, but after solving 2x2 block"
270
270
eig2x2! (d, e, blockstart, vectors)
271
271
blockstart += 2
272
272
else
273
- @debug " Deflate? No!"
273
+ # @debug "Deflate? No!"
274
274
# Calculate shift
275
275
μ = (d[blockstart + 1 ] - d[blockstart]) / (2 * e[blockstart])
276
276
r = hypot (μ, one (T))
277
277
μ = d[blockstart] - (e[blockstart] / (μ + copysign (r, μ)))
278
278
279
279
# QL bulk chase
280
- @debug " Values before bulge chase" e[blockstart] e[blockend - 1 ] d[blockstart] μ
280
+ # @debug "Values before bulge chase" e[blockstart] e[blockend - 1] d[blockstart] μ
281
281
singleShiftQL! (S, μ, blockstart, blockend, vectors)
282
- @debug " Values after bulge chase" e[blockstart] e[blockend - 1 ] d[blockstart]
282
+ # @debug "Values after bulge chase" e[blockstart] e[blockend - 1] d[blockstart]
283
283
end
284
284
285
285
if blockstart >= n
@@ -312,27 +312,27 @@ function eigQR!(
312
312
blockend = n
313
313
end
314
314
315
- @debug " submatrix" blockstart blockend
315
+ # @debug "submatrix" blockstart blockend
316
316
317
317
# Deflate?
318
318
if blockstart == blockend
319
- @debug " Deflate? Yes!"
319
+ # @debug "Deflate? Yes!"
320
320
blockstart += 1
321
321
elseif blockstart + 1 == blockend
322
- @debug " Deflate? Yes, but after solving 2x2 block!"
322
+ # @debug "Deflate? Yes, but after solving 2x2 block!"
323
323
eig2x2! (d, e, blockstart, vectors)
324
324
blockstart += 2
325
325
else
326
- @debug " Deflate? No!"
326
+ # @debug "Deflate? No!"
327
327
# Calculate shift
328
328
μ = (d[blockend - 1 ] - d[blockend]) / (2 * e[blockend - 1 ])
329
329
r = hypot (μ, one (T))
330
330
μ = d[blockend] - (e[blockend - 1 ] / (μ + copysign (r, μ)))
331
331
332
332
# QR bulk chase
333
- @debug " Values before QR bulge chase" e[blockstart] e[blockend - 1 ] d[blockend] μ
333
+ # @debug "Values before QR bulge chase" e[blockstart] e[blockend - 1] d[blockend] μ
334
334
singleShiftQR! (S, μ, blockstart, blockend, vectors)
335
- @debug " Values after QR bulge chase" e[blockstart] e[blockend - 1 ] d[blockend]
335
+ # @debug "Values after QR bulge chase" e[blockstart] e[blockend - 1] d[blockend]
336
336
end
337
337
if blockstart >= n
338
338
break
0 commit comments