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 @@ -872,9 +872,9 @@ function rmul!(T::Tridiagonal, x::Number)
872872 iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
873873 lazy " the tridiagonal band to a nonzero value ($y)" )))
874874 end
875- T. dl .*= x
876- T. d .*= x
877- T. du .*= x
875+ rmul! ( T. dl, x)
876+ rmul! ( T. d, x)
877+ rmul! ( T. du, x)
878878 return T
879879end
880880function lmul! (x:: Number , T:: Tridiagonal )
@@ -884,9 +884,9 @@ function lmul!(x::Number, T::Tridiagonal)
884884 iszero (y) || throw (ArgumentError (LazyString (" cannot set index (3, 1) off " ,
885885 lazy " the tridiagonal band to a nonzero value ($y)" )))
886886 end
887- @. T . dl = x * T. dl
888- @. T . d = x * T. d
889- @. T . du = x * T. du
887+ lmul! (x, T. dl)
888+ lmul! (x, T. d)
889+ lmul! (x, T. du)
890890 return T
891891end
892892/ (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