Opened 15 years ago

Closed 15 years ago

#1732 closed enhancement (fixed)

[with patch, with positive review] block matrix construction

Reported by: robertwb Owned by: robertwb
Priority: major Milestone: sage-2.10
Component: linear algebra Keywords:
Cc: dfdeshom@… Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Is there a way to construct block matrices in SAGE?
Not just the "block_sum", "augment" and "stack" functions.

As an example, let A, B, C, D be matrices and i want to construct a
matrix like E=[[A,B],[C,D]]

Such a feature would be very nice.

-vgermrk-

Attachments (3)

block_sum.diff (1.8 KB) - added by robertwb 15 years ago.
1732-block-matrix.diff (11.8 KB) - added by robertwb 15 years ago.
1732-block-matrix-mem.diff (1.5 KB) - added by robertwb 15 years ago.
more memory friendly for constant entries

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by robertwb

Attachment: block_sum.diff added

comment:1 Changed 15 years ago by robertwb

Summary: block matrix construction[with patch] block matrix construction

Changed 15 years ago by robertwb

Attachment: 1732-block-matrix.diff added

comment:2 Changed 15 years ago by robertwb

Much expanded functionality due to discussion at http://www.mail-archive.com/sage-devel@googlegroups.com/msg08958.html

See the docstrings in the patch for many examples.

comment:3 Changed 15 years ago by robertwb

Owner: changed from was to robertwb
Status: newassigned

Changed 15 years ago by robertwb

Attachment: 1732-block-matrix-mem.diff added

more memory friendly for constant entries

comment:4 Changed 15 years ago by dfdeshom

Cc: dfdeshom@… added
Summary: [with patch] block matrix construction[with patch, with positive review] block matrix construction

Just wanted to point out that this patch works great for me, both for block diagonal matrices and for creating block matrices from lists.

comment:5 Changed 15 years ago by mabshoff

Resolution: fixed
Status: assignedclosed

I merged all three patches into Sage 2.10.alpha3

Note: See TracTickets for help on using tickets.