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

Rename Aff #25

Open
dpsanders opened this issue Mar 10, 2020 · 2 comments
Open

Rename Aff #25

dpsanders opened this issue Mar 10, 2020 · 2 comments

Comments

@dpsanders
Copy link
Member

Aff is the true affine arithmetic.

Affine is the combined affine--interval arithmetic proposed by Rump that also keeps track of the interval range using standard interval arithmetic and takes the intersection of the two.

For real calculations you probably want Affine, although it will be a bit (or much?) slower.
But the names are not ideal.

cc @mforets

@mforets
Copy link
Collaborator

mforets commented Mar 10, 2020

Ok, i have to do some studying and reading first :p but, yeah Aff and Affine are too similar.. One possibility:

abstract type AbstractAffineForm end

struct Affine <: AbstractAffineForm . . . end #  "canonical", current "Aff"
struct MixedAffine <: AbstractAffineForm . . . end #  current "Affine"

If it turns out that only the mixed affine form is of interest in calculations, perhaps:

struct BasicAffine <: AbstractAffineForm . . . end #  "canonical", current "Aff"
struct MixedAffine <: AbstractAffineForm . . . end #  current "Affine"
const Affine = MixedAffine # export convenience alias

@dpsanders
Copy link
Member Author

I like that second solution!

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

No branches or pull requests

2 participants