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

Inquiry about Element Instance for Rational Numbers #370

Open
nasosev opened this issue Nov 2, 2023 · 0 comments
Open

Inquiry about Element Instance for Rational Numbers #370

nasosev opened this issue Nov 2, 2023 · 0 comments

Comments

@nasosev
Copy link

nasosev commented Nov 2, 2023

Hello maintainers of hmatrix,

I'm deeply appreciative of the diligent work that has gone into the development of this library, and I've found it instrumental in my projects.

I'm currently exploring the possibility of working with matrices containing Rational number elements. While delving into the documentation, I noticed that there isn't an Element instance for Rational numbers. The Storable constraint, associated with the Element type class, seems to be a potential obstacle for this due to Rational's underlying representation as pairs of Integer.

I'd love to gather some insights:

  1. Feasibility: Given the Storable constraint on the Element type class, how challenging might it be to introduce an Element instance for Rational numbers? Are we looking at deep architectural challenges, or could it be more of an implementation matter?
  2. Alternative Approaches: If creating such an instance is non-trivial, are there suggested workarounds or patterns that might allow one to achieve similar functionality with Rational numbers within hmatrix?
  3. Contributions: If the library could benefit from adjustments to support this, could you point me towards relevant sections of the codebase? I'm quite keen on exploring this further and, if possible, contributing towards such a feature.

Your insights would be invaluable. Thank you in advance for any direction you can provide.

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