Opened 12 years ago

Closed 12 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: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

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 12 years ago.
1732-block-matrix.diff (11.8 KB) - added by robertwb 12 years ago.
1732-block-matrix-mem.diff (1.5 KB) - added by robertwb 12 years ago.
more memory friendly for constant entries

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by robertwb

comment:1 Changed 12 years ago by robertwb

  • Summary changed from block matrix construction to [with patch] block matrix construction

Changed 12 years ago by robertwb

comment:2 Changed 12 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 12 years ago by robertwb

  • Owner changed from was to robertwb
  • Status changed from new to assigned

Changed 12 years ago by robertwb

more memory friendly for constant entries

comment:4 Changed 12 years ago by dfdeshom

  • Cc dfdeshom@… added
  • Summary changed from [with patch] block matrix construction to [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 12 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from assigned to closed

I merged all three patches into Sage 2.10.alpha3

Note: See TracTickets for help on using tickets.