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

Auto-generate non semi-ring operations code #81

Open
FlorentinD opened this issue Aug 27, 2020 · 0 comments
Open

Auto-generate non semi-ring operations code #81

FlorentinD opened this issue Aug 27, 2020 · 0 comments

Comments

@FlorentinD
Copy link
Collaborator

FlorentinD commented Aug 27, 2020

Currently there exist two version of some files like org.ejml.sparse.csc.mult.ImplSparseSparseMultWithSemiRing_DSCC.
As the one without semi-rings is just the in-lined version of the PLUS, TIMES semi-ring, it should be possible to auto-generate instead of having nearly identical files.

Steps:

  1. copy the Semi-Ring version
  2. remove the semi-ring from the signature and java-doc
  3. replace semiRing.add.id with 0 and semiRing.mult.id with 1
  4. replace semiRing.add.func.apply(x, y) with x + y (same for semiRing.mult.func.apply but with *)
@FlorentinD FlorentinD changed the title Auto-generate non semi-ring op code Auto-generate non semi-ring operations code Aug 27, 2020
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

1 participant