-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
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:
- Feasibility: Given the
Storableconstraint on theElementtype class, how challenging might it be to introduce anElementinstance forRationalnumbers? Are we looking at deep architectural challenges, or could it be more of an implementation matter? - 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
Rationalnumbers withinhmatrix? - 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.
Metadata
Metadata
Assignees
Labels
No labels