Opened 9 years ago

Last modified 3 months ago

#15965 new enhancement

Implement insert_row for general matrices

Reported by: Alejadro Argaez Owned by:
Priority: major Milestone: sage-9.8
Component: linear algebra Keywords: matrix, insert_row
Cc: Peter Bruin, Samuel Lelièvre Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Samuel Lelièvre)

Matrices over the integers have an insert_row method:

sage: A = matrix([[1, 2], [3, 4]])
sage: A.insert_row(A.nrows(), [6, 7])
[1 2]
[3 4]
[6 7]

Matrices over fields seem to lack such a method:

sage: B = A.change_ring(QQ)
sage: C = A.change_ring(GF(11))

Matrices B and C have no insert_row method, contrary to A.

Neither of A, B, C have an insert_column method.

Change History (5)

comment:1 Changed 9 years ago by For batch modifications

Milestone: sage-6.2sage-6.3

comment:2 Changed 8 years ago by For batch modifications

Milestone: sage-6.3sage-6.4

comment:3 Changed 12 months ago by Samuel Lelièvre

Cc: Samuel Lelièvre added
Description: modified (diff)
Milestone: sage-6.4sage-9.6
Summary: implement insert_row for general matricesImplement insert_row for general matrices

comment:4 Changed 8 months ago by Matthias Köppe

Milestone: sage-9.6sage-9.7

comment:5 Changed 3 months ago by Matthias Köppe

Milestone: sage-9.7sage-9.8
Note: See TracTickets for help on using tickets.