Open nsajko opened 11 months ago
With either TypedPolynomials or DynamicPolynomials:
julia> using TypedPolynomials julia> @polyvar x x julia> coefficient_type(x + one(Bool)) # should be `Bool` Int64 julia> coefficient_type(x + one(UInt16)) # should be `UInt16` Int64
Indeed, the coefficient_type of a monomial is Int at the moment. We could change it to Bool to be consistent with LinearAlgebra.UniformScaling.
coefficient_type
Int
Bool
LinearAlgebra.UniformScaling
With either TypedPolynomials or DynamicPolynomials: