Skip to content

Commit

Permalink
typo (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaette authored Jun 7, 2024
1 parent 1b0b85c commit c6b09ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ const Scalar = Union{Number, Matrix}
# scalar_add utilized polynomial addition. May be more performant to provide new method
scalar_add(c::S, p::AbstractPolynomial) where {S} = p + c * one(p)

# Scalar multiplication; no assumption of commutivity
# Scalar multiplication; no assumption of commutativity
scalar_mult(p::P, c::S) where {S, T, X, P<:AbstractPolynomial{T,X}} = map(Base.Fix2(*,c), p)
scalar_mult(c::S, p::P) where {S, T, X, P<:AbstractPolynomial{T,X}} = map(Base.Fix1(*,c), p)
scalar_mult(p1::AbstractPolynomial, p2::AbstractPolynomial) =
Expand Down

0 comments on commit c6b09ea

Please sign in to comment.