Macaulay2 / Macaulay2/M2

The zero interval and mutable matrices

Open
#2,931 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Linear Algebra
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

All of the following code works as expected:

new Matrix from matrix{{span(0)}}
new Matrix from matrix{{span(1)}}
new MutableMatrix from matrix{{span(1)}}

The next line of code produces a matrix with an empty interval and NotANumber endpoints.

new MutableMatrix from matrix{{span(0)}}

I don't know enough about MutableMatrix to know what's going on here.

@mikestillman

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the four snippets in a Macaulay2 session, then trace the MutableMatrix handling of a zero interval and compare it with Matrix and the nonzero case. Done means new MutableMatrix from matrix{{span(0)}} no longer produces an empty interval or NaN endpoints, with a regression test covering the behavior.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.