Skip to content

Commit

Permalink
Revert APL adjoint implementation (mutable coefficients would be alia…
Browse files Browse the repository at this point in the history
…sed)
  • Loading branch information
projekter committed Jul 22, 2023
1 parent 12ad263 commit 60f1a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function LinearAlgebra.adjoint(t::AbstractTerm)
return _term(adjoint(coefficient(t)), adjoint(monomial(t)))
end
function LinearAlgebra.adjoint(p::AbstractPolynomialLike)
return polynomial!(adjoint.(terms(p)))
return polynomial(map(LinearAlgebra.adjoint, terms(p)))
end
function LinearAlgebra.adjoint(r::RationalPoly)
return adjoint(numerator(r)) / adjoint(denominator(r))
Expand Down

0 comments on commit 60f1a58

Please sign in to comment.