08.02.2015 Views

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER<br />

EIGHT<br />

GENERIC ASYMPTOTICALLY FAST<br />

STRASSEN ALGORITHMS<br />

Generic Asymptotically Fast Strassen Algorithms<br />

<strong>Sage</strong> implements asymptotically fast echelon form <strong>and</strong> matrix multiplication algorithms.<br />

class sage.matrix.strassen.int_range(indices=None, range=None)<br />

Represent a list <strong>of</strong> integers as a list <strong>of</strong> integer intervals.<br />

Note: Repetitions are not considered.<br />

Useful class for dealing with pivots in the strassen echelon, could have much more general application<br />

INPUT:<br />

It can be one <strong>of</strong> the following:<br />

OR<br />

OR<br />

•indices - integer, start <strong>of</strong> the unique interval<br />

•range - integer, length <strong>of</strong> the unique interval<br />

•indices - list <strong>of</strong> integers, the integers to wrap into intervals<br />

•indices - None (default), shortcut for an empty list<br />

OUTPUT:<br />

An instance <strong>of</strong> int_range, i.e. a list <strong>of</strong> pairs (start, length).<br />

EXAMPLES:<br />

From a pair <strong>of</strong> integers:<br />

sage: from sage.matrix.strassen import int_range<br />

sage: int_range(2, 4)<br />

[(2, 4)]<br />

Default:<br />

sage: int_range()<br />

[]<br />

From a list <strong>of</strong> integers:<br />

271

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!