You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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?
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?
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.
The text was updated successfully, but these errors were encountered:
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 anElement
instance forRational
numbers. TheStorable
constraint, associated with theElement
type class, seems to be a potential obstacle for this due toRational
's underlying representation as pairs ofInteger
.I'd love to gather some insights:
Storable
constraint on theElement
type class, how challenging might it be to introduce anElement
instance forRational
numbers? Are we looking at deep architectural challenges, or could it be more of an implementation matter?Rational
numbers withinhmatrix
?Your insights would be invaluable. Thank you in advance for any direction you can provide.
The text was updated successfully, but these errors were encountered: