Skip to content

Commit 6439bda

Browse files
committed
fixes
1 parent a667f1a commit 6439bda

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/func.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,18 @@ end
293293

294294
function Base.resize!(L::FunctionOperator, n::Integer)
295295

296-
# for op in L.ops
297-
# resize!(op, n)
298-
# end
296+
for op in getops(L)
297+
if static_hasmethod(resize!, typeof((op, n)))
298+
resize!(op, n)
299+
end
300+
end
299301

300302
for v in L.cache
301303
resize!(v, n)
302304
end
303305

306+
L.traits = (; L.traits..., size = (n, n),)
307+
304308
L
305309
end
306310

0 commit comments

Comments
 (0)