Open
Conversation
Matrix internals have changed
Add factory patch
RRb and CCb will be added later and will use GC-allocated memory.
Add helper methods for the "midpoint" of a ring (which is the ring where the midpoints of polynomials lie).
antonleykin
reviewed
Dec 8, 2025
Contributor
antonleykin
left a comment
There was a problem hiding this comment.
I'm taken away a bit by
i8 : # methods regularizedBeta
o8 = 125
for a method with basic usage:
regularizedBeta(x, a, b)
* Inputs:
* x, a "real number",
* a, a "real number",
* b, a "real number",
* Outputs:
* a "real number",
Indeed,
Member
|
Yeah, we could probably replace most of those with something like |
Previously, we were just adding/subtracting 1 first, and thus losing precision for small inputs.
This way, we don't have to worry about storing them as methods for all four different InexactNumber types.
Member
|
This is a bit more manageable! i1 : methods regularizedBeta
o1 = {0 => (regularizedBeta, Number, InexactNumber, InexactNumber) }
{1 => (regularizedBeta, InexactNumber, Number, InexactNumber) }
{2 => (regularizedBeta, InexactNumber, InexactNumber, Number) }
{3 => (regularizedBeta, Number, Number, InexactNumber) }
{4 => (regularizedBeta, Number, InexactNumber, Number) }
{5 => (regularizedBeta, InexactNumber, Number, Number) }
{6 => (regularizedBeta, Number, Number, Number) }
{7 => (regularizedBeta, InexactNumber, InexactNumber, InexactNumber)}
o1 : NumberedVerticalList |
Not quite correct since they're only defined for RR, but this way the Number methods will get defined in typicalvalues.m2.
left and right commented for now as they're not methods
Simplifies elem_text_out and also will help us implement CCi support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is work started at the M2 conference in Madison. This is the pull request to add CCi support to M2. This includes implementations in the M2 language, the D-language, and aring support for polynomials and matrices in the back-end.