Macaulay2 / Macaulay2/M2

isMutable MutableMatrix

Open
#3,117 0 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

Surely this is a bug, right?

i1 : isMutable matrix {{1}}

o1 = false

i2 : isMutable mutableMatrix {{1}}

o2 = false

I mean, I understand this is why:

i10 : ancestors MutableMatrix

o10 = {MutableMatrix, HashTable, Thing}

But surely a mutable matrix is mutable? Can we make it inherit from MutableHashTable instead to solve this?

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

Start by reproducing the isMutable and ancestors queries shown for matrix and mutableMatrix. Read the definitions and inheritance relationships for MutableMatrix and MutableHashTable, then determine whether the hierarchy should change so mutableMatrix is recognized as mutable. Done means the reported behavior and type ancestry match the intended mutability semantics.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.