Opened 22 months ago

Last modified 5 weeks ago

## #31087 new enhancement

# Align sparseness of global functions `diagonal_matrix` and `identity_matrix`

Reported by: | Samuel Lelièvre | Owned by: | |
---|---|---|---|

Priority: | major | Milestone: | sage-9.8 |

Component: | linear algebra | Keywords: | |

Cc: | Merged in: | ||

Authors: | Reviewers: | ||

Report Upstream: | N/A | Work issues: | |

Branch: | Commit: | ||

Dependencies: | Stopgaps: |

### Description

Before this ticket, e.g. in Sage 9.3.beta4:

sage: identity_matrix(ZZ, 2).is_sparse() False sage: diagonal_matrix(ZZ, 2, [1, 1]).is_sparse() True

After this ticket, the sparseness should match.

Inspired by the report by Will Orrick at

### Change History (5)

### comment:1 Changed 20 months ago by

Milestone: | sage-9.3 → sage-9.4 |
---|

### comment:2 Changed 15 months ago by

Milestone: | sage-9.4 → sage-9.5 |
---|

### comment:3 Changed 10 months ago by

Milestone: | sage-9.5 → sage-9.6 |
---|

### comment:4 Changed 6 months ago by

Milestone: | sage-9.6 → sage-9.7 |
---|

### comment:5 Changed 5 weeks ago by

Milestone: | sage-9.7 → sage-9.8 |
---|

**Note:**See TracTickets for help on using tickets.

Setting new milestone based on a cursory review of ticket status, priority, and last modification date.