File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -876,9 +876,9 @@ function rmul!(T::Tridiagonal, x::Number)
876
876
iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
877
877
lazy " the tridiagonal band to a nonzero value ($y)" )))
878
878
end
879
- T. dl .*= x
880
- T. d .*= x
881
- T. du .*= x
879
+ rmul! ( T. dl, x)
880
+ rmul! ( T. d, x)
881
+ rmul! ( T. du, x)
882
882
return T
883
883
end
884
884
function lmul! (x:: Number , T:: Tridiagonal )
@@ -888,9 +888,9 @@ function lmul!(x::Number, T::Tridiagonal)
888
888
iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
889
889
lazy " the tridiagonal band to a nonzero value ($y)" )))
890
890
end
891
- @. T . dl = x * T. dl
892
- @. T . d = x * T. d
893
- @. T . du = x * T. du
891
+ lmul! (x, T. dl)
892
+ lmul! (x, T. d)
893
+ lmul! (x, T. du)
894
894
return T
895
895
end
896
896
/ (A:: Tridiagonal , B:: Number ) = Tridiagonal (A. dl/ B, A. d/ B, A. du/ B)
You can’t perform that action at this time.
0 commit comments