Skip to content

Commit

Permalink
Revert "Avoid materializing arrays in bidiag matmul" (#55737)
Browse files Browse the repository at this point in the history
Reverts #55450. @jishnub suggested reverting this PR to
fix #55727.
  • Loading branch information
giordano committed Sep 13, 2024
1 parent 2616634 commit 2ee6551
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 422 deletions.
4 changes: 1 addition & 3 deletions stdlib/LinearAlgebra/src/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,7 @@ matprod_dest(A::Diagonal, B::Diagonal, TS) = _matprod_dest_diag(B, TS)
_matprod_dest_diag(A, TS) = similar(A, TS)
function _matprod_dest_diag(A::SymTridiagonal, TS)
n = size(A, 1)
ev = similar(A, TS, max(0, n-1))
dv = similar(A, TS, n)
Tridiagonal(ev, dv, similar(ev))
Tridiagonal(similar(A, TS, n-1), similar(A, TS, n), similar(A, TS, n-1))
end

# Special handling for adj/trans vec
Expand Down
Loading

0 comments on commit 2ee6551

Please sign in to comment.