You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIRC the values was used for piecewise or sum spaces, where the coefficients may not be zero, but the function may still be zero. However, looks like values isn't defined for an ArraySpace.
The following works well in Julia 1.9 but fails in Julia 1.10
In Julia 1.9:
The old definition of
iszero
isiszero(f::Fun) = all(iszero,f.coefficients)
In Julia 1.10:
The new definition of
iszero
isiszero(f::Fun) = all(iszero, coefficients(f)) || all(iszero, values(f))
so, the failure is caused by
I wonder why the second test involving
all(iszero, values(f))
is necessary!I would appreciate very much if the fix for this very basic function can be done in a short time. Thanks in advance.
The text was updated successfully, but these errors were encountered: