Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polynomials over integers narrower than Int seem impossible or difficult to construct #277

Open
nsajko opened this issue Nov 23, 2023 · 1 comment · May be fixed by #280
Open

polynomials over integers narrower than Int seem impossible or difficult to construct #277

nsajko opened this issue Nov 23, 2023 · 1 comment · May be fixed by #280

Comments

@nsajko
Copy link
Contributor

nsajko commented Nov 23, 2023

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
@blegat
Copy link
Member

blegat commented Nov 23, 2023

Indeed, the coefficient_type of a monomial is Int at the moment. We could change it to Bool to be consistent with LinearAlgebra.UniformScaling.

@blegat blegat linked a pull request Nov 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants