-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Should there be an OddHalfInt
type?
#48
Comments
I have thought about adding such a type before, but it hasn’t been a priority for me. Is there a real usecase for it? I would probably not wrap a |
Yes, that makes sense. One use-case that I can think of is Jacobi polynomials of degree |
I've created a package https://github.com/jishnub/OddEvenIntegers.jl to iron out the issues. Since the concept of an odd integer is orthogonal to a half integer, these may exist separately, and be composed to create a half-odd-integer type. I'm closing this issue as there's nothing to be done here. |
Such that
+(::OddHalfInt, ::OddHalfInt)
and-(::OddHalfInt, ::OddHalfInt)
would lead to anInt
result in either case. Implementation wise, these may wrapHalfInt
numbers with an additional check upon construction.The text was updated successfully, but these errors were encountered: