Skip to content

Commit dbec34d

Browse files
committed
adjointed and transpoed cache_internals
1 parent c918020 commit dbec34d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/basic.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,11 @@ for (op, LType, VType) in (
669669
has_ldiv!,
670670
)
671671

672+
@eval function cache_internals(L::$LType, u::AbstractVector)
673+
@set! L.L = cache_operator(L.L, _reshape(u, size(L,1)))
674+
L
675+
end
676+
672677
# oeprator application
673678
@eval Base.:*(u::$VType, L::$LType) = $op(L.L * u.parent)
674679
@eval Base.:/(u::$VType, L::$LType) = $op(L.L \ u.parent)

0 commit comments

Comments
 (0)