Skip to content

Commit

Permalink
Update blockkron.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Jul 23, 2024
1 parent cfb93f2 commit a369bf2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/blockkron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,15 @@ function Base._maximum(f, a::DiagTrav, ::Colon; kws...)
ret
end

pad(c, ax...) = PaddedArray(c, ax)

function copy(M::Mul{<:LazyBlockBandedLayouts,<:DiagTravLayout{<:AbstractPaddedLayout}})
error("hi")
A,B = M.A, M.B

P = DiagTrav(paddeddata(B.array))
JR = blockaxes(P,1)
KR = blockcolsupport(A,JR)
pad(A[KR,JR] * P, axes(A,1))
end

struct InvDiagTrav{T, AA<:AbstractVector{T}} <: LayoutMatrix{T}
Expand Down

0 comments on commit a369bf2

Please sign in to comment.