diff --git a/src/algebra_elts.jl b/src/algebra_elts.jl index 44954df..a718cf7 100644 --- a/src/algebra_elts.jl +++ b/src/algebra_elts.jl @@ -37,5 +37,6 @@ function LinearAlgebra.dot(w::AbstractVector, b::AlgebraElement) return LinearAlgebra.dot(w, coeffs(b)) end function LinearAlgebra.dot(a::AlgebraElement, w::AbstractVector) + @assert key_type(basis(parent(a))) <: Integer return LinearAlgebra.dot(coeffs(a), w) end diff --git a/src/coefficients.jl b/src/coefficients.jl index 54bcf21..b956f65 100644 --- a/src/coefficients.jl +++ b/src/coefficients.jl @@ -115,7 +115,7 @@ function LinearAlgebra.dot(w::AbstractVector, ac::AbstractCoefficients) if isempty(values(ac)) return zero(MA.promote_sum_mul(eltype(w), value_type(ac))) else - return sum(w[i] * star(v) for (i, v) in nonzero_pairs(ac)) + return sum(w[i] * v for (i, v) in nonzero_pairs(ac)) end end