File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -454,8 +454,8 @@ function rmul!(B::Bidiagonal, x::Number)
454
454
iszero (y) || throw (ArgumentError (LazyString (lazy " cannot set index ($row, $col) off " ,
455
455
lazy " the tridiagonal band to a nonzero value ($y)" )))
456
456
end
457
- @. B. dv *= x
458
- @. B. ev *= x
457
+ rmul! ( B. dv, x)
458
+ rmul! ( B. ev, x)
459
459
return B
460
460
end
461
461
function lmul! (x:: Number , B:: Bidiagonal )
@@ -467,8 +467,8 @@ function lmul!(x::Number, B::Bidiagonal)
467
467
iszero (y) || throw (ArgumentError (LazyString (lazy " cannot set index ($row, $col) off " ,
468
468
lazy " the tridiagonal band to a nonzero value ($y)" )))
469
469
end
470
- @. B . dv = x * B. dv
471
- @. B . ev = x * B. ev
470
+ lmul! (x, B. dv)
471
+ lmul! (x, B. ev)
472
472
return B
473
473
end
474
474
/ (A:: Bidiagonal , B:: Number ) = Bidiagonal (A. dv/ B, A. ev/ B, A. uplo)
Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ function lmul!(x::Number, D::Diagonal)
298
298
iszero (y) || throw (ArgumentError (LazyString (" cannot set index (2, 1) off " ,
299
299
lazy " the tridiagonal band to a nonzero value ($y)" )))
300
300
end
301
- @. D . diag = x * D. diag
301
+ lmul! (x, D. diag)
302
302
return D
303
303
end
304
304
function rmul! (D:: Diagonal , x:: Number )
@@ -308,7 +308,7 @@ function rmul!(D::Diagonal, x::Number)
308
308
iszero (y) || throw (ArgumentError (LazyString (" cannot set index (2, 1) off " ,
309
309
lazy " the tridiagonal band to a nonzero value ($y)" )))
310
310
end
311
- @. D. diag *= x
311
+ rmul! ( D. diag, x)
312
312
return D
313
313
end
314
314
(/ )(D:: Diagonal , x:: Number ) = Diagonal (D. diag / x)
Original file line number Diff line number Diff line change @@ -227,8 +227,8 @@ function rmul!(A::SymTridiagonal, x::Number)
227
227
iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
228
228
lazy " the tridiagonal band to a nonzero value ($y)" )))
229
229
end
230
- A. dv .*= x
231
- _evview (A) .*= x
230
+ rmul! ( A. dv, x)
231
+ rmul! ( _evview (A), x)
232
232
return A
233
233
end
234
234
function lmul! (x:: Number , B:: SymTridiagonal )
@@ -238,9 +238,8 @@ function lmul!(x::Number, B::SymTridiagonal)
238
238
iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
239
239
lazy " the tridiagonal band to a nonzero value ($y)" )))
240
240
end
241
- @. B. dv = x * B. dv
242
- ev = _evview (B)
243
- @. ev = x * ev
241
+ lmul! (x, B. dv)
242
+ lmul! (x, _evview (B))
244
243
return B
245
244
end
246
245
/ (A:: SymTridiagonal , B:: Number ) = SymTridiagonal (A. dv/ B, A. ev/ B)
You can’t perform that action at this time.
0 commit comments