Skip to content

Commit

Permalink
Remove short-circuiting in coefficients(Fun, space)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Feb 3, 2024
1 parent 023b1a4 commit b1c867f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Fun.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ coefficients(f::Fun,msp::Space) = _coefficients(f::Fun,msp::Space)
function _coefficients(f::Fun,msp::Space)
#zero can always be converted
fc = f.coefficients
if ncoefficients(f) == 0 || (ncoefficients(f) == 1 && fc[1] == 0)
convert(Vector, fc)
else
coefficients(fc, space(f), msp)
end
coefficients(coefficients(f), space(f), msp)
end
coefficients(f::Fun,::Type{T}) where {T<:Space} = coefficients(f,T(domain(f)))

Expand Down

0 comments on commit b1c867f

Please sign in to comment.