Closed kalmarek closed 4 months ago
Attention: Patch coverage is 96.29630%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 86.26%. Comparing base (
f998c9f
) to head (7a0232e
).
Files | Patch % | Lines |
---|---|---|
src/coefficients.jl | 92.85% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It's maybe cleaner to do something like
"""
lmul(a, X)
Multiplies the coefficients of `X` by `a`.
"""
function lmul end
function lmul(a, X::AlgebraElement)
return MA.operate_to(similar(X), lmul, a, X)
end
Base.:*(a, X::AlgebraEleemnt) = lmul(a, X)
where lmul
would be an explicit way to multiply the coefficients (I'm open to other names, in MP, I call it left_constant_mult
I think but we don't have to use the same name)
I'm not sure it changes much, I don't intend these functions to be used by anyone outside ;)
It's maybe cleaner to do something like
""" lmul(a, X) Multiplies the coefficients of `X` by `a`. """ function lmul end function lmul(a, X::AlgebraElement) return MA.operate_to(similar(X), lmul, a, X) end Base.:*(a, X::AlgebraEleemnt) = lmul(a, X)
where
lmul
would be an explicit way to multiply the coefficients (I'm open to other names, in MP, I call itleft_constant_mult
I think but we don't have to use the same name)
It serves precisely the opposite role, where the coefficients stay the same and we shift keys ;)
Since you approved, fixing nightly is on you from now on :D
@blegat