File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 19
19
struct CustomPoly{T,P<: AbstractPolynomial{T} } <: AbstractPolynomialLike{T}
20
20
p:: P
21
21
end
22
- CustomPoly (p:: AbstractPolynomial{T} ) where {T} = CustomPoly {T,typeof(p)} (p)
23
22
function MultivariatePolynomials. term_type (:: Type{CustomPoly{T,P}} ) where {T,P}
24
23
return MultivariatePolynomials. term_type (P)
25
24
end
@@ -39,7 +38,6 @@ Base.copy(p::CustomPoly) = CustomPoly(copy(p.p))
39
38
struct CustomTerms{T,P<: AbstractPolynomial{T} } <: AbstractPolynomialLike{T}
40
39
p:: P
41
40
end
42
- CustomTerms (p:: AbstractPolynomial{T} ) where {T} = CustomTerms {T,typeof(p)} (p)
43
41
function MultivariatePolynomials. term_type (:: Type{CustomTerms{T,P}} ) where {T,P}
44
42
return MultivariatePolynomials. term_type (P)
45
43
end
@@ -50,9 +48,6 @@ function MultivariatePolynomials.monomial_type(
50
48
) where {T,P}
51
49
return monomial_type (P)
52
50
end
53
- function MultivariatePolynomials. constant_monomial (p:: CustomPoly )
54
- return constant_monomial (p. p)
55
- end
56
51
Base. copy (p:: CustomTerms ) = CustomTerms (copy (p. p))
57
52
58
53
function _typetests (x, :: Type{T} ) where {T}
You can’t perform that action at this time.
0 commit comments