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)
876876 iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
877877 lazy " the tridiagonal band to a nonzero value ($y)" )))
878878 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)
882882 return T
883883end
884884function lmul! (x:: Number , T:: Tridiagonal )
@@ -888,9 +888,9 @@ function lmul!(x::Number, T::Tridiagonal)
888888 iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
889889 lazy " the tridiagonal band to a nonzero value ($y)" )))
890890 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)
894894 return T
895895end
896896/ (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