@@ -773,7 +773,7 @@ function _triscale!(A::UpperOrUnitUpperTriangular, B::UnitUpperTriangular, c::Nu
773773 checksize1 (A, B)
774774 _iszero_alpha (_add) && return _rmul_or_fill! (A, _add. beta)
775775 for j in axes (B. data,2 )
776- @inbounds _modify! (_add, B[ BandIndex ( 0 ,j)] * c, A, (j,j))
776+ @inbounds _modify! (_add, c, A, (j,j))
777777 for i in firstindex (B. data,1 ): (j - 1 )
778778 @inbounds _modify! (_add, B. data[i,j] * c, A. data, (i,j))
779779 end
@@ -784,7 +784,7 @@ function _triscale!(A::UpperOrUnitUpperTriangular, c::Number, B::UnitUpperTriang
784784 checksize1 (A, B)
785785 _iszero_alpha (_add) && return _rmul_or_fill! (A, _add. beta)
786786 for j in axes (B. data,2 )
787- @inbounds _modify! (_add, c * B[ BandIndex ( 0 ,j)] , A, (j,j))
787+ @inbounds _modify! (_add, c, A, (j,j))
788788 for i in firstindex (B. data,1 ): (j - 1 )
789789 @inbounds _modify! (_add, c * B. data[i,j], A. data, (i,j))
790790 end
@@ -815,7 +815,7 @@ function _triscale!(A::LowerOrUnitLowerTriangular, B::UnitLowerTriangular, c::Nu
815815 checksize1 (A, B)
816816 _iszero_alpha (_add) && return _rmul_or_fill! (A, _add. beta)
817817 for j in axes (B. data,2 )
818- @inbounds _modify! (_add, B[ BandIndex ( 0 ,j)] * c, A, (j,j))
818+ @inbounds _modify! (_add, c, A, (j,j))
819819 for i in (j + 1 ): lastindex (B. data,1 )
820820 @inbounds _modify! (_add, B. data[i,j] * c, A. data, (i,j))
821821 end
@@ -826,7 +826,7 @@ function _triscale!(A::LowerOrUnitLowerTriangular, c::Number, B::UnitLowerTriang
826826 checksize1 (A, B)
827827 _iszero_alpha (_add) && return _rmul_or_fill! (A, _add. beta)
828828 for j in axes (B. data,2 )
829- @inbounds _modify! (_add, c * B[ BandIndex ( 0 ,j)] , A, (j,j))
829+ @inbounds _modify! (_add, c, A, (j,j))
830830 for i in (j + 1 ): lastindex (B. data,1 )
831831 @inbounds _modify! (_add, c * B. data[i,j], A. data, (i,j))
832832 end
0 commit comments