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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Matrices</strong> <strong>and</strong> <strong>Spaces</strong> <strong>of</strong> <strong>Matrices</strong>, Release 6.1.1<br />

sage: T<br />

* a b c d<br />

+--------<br />

a| a b c d<br />

b| b a d c<br />

c| c d a b<br />

d| d c b a<br />

sage: T.translation()[’c’]<br />

(1,2)<br />

sage: T.change_names(’digits’)<br />

sage: T<br />

* 0 1 2 3<br />

+--------<br />

0| 0 1 2 3<br />

1| 1 0 3 2<br />

2| 2 3 0 1<br />

3| 3 2 1 0<br />

sage: T.translation()[’2’]<br />

(1,2)<br />

sage: T.change_names(’elements’)<br />

sage: T<br />

* () (3,4) (1,2) (1,2)(3,4)<br />

+--------------------------------------------<br />

()| () (3,4) (1,2) (1,2)(3,4)<br />

(3,4)| (3,4) () (1,2)(3,4) (1,2)<br />

(1,2)| (1,2) (1,2)(3,4) () (3,4)<br />

(1,2)(3,4)| (1,2)(3,4) (1,2) (3,4) ()<br />

sage: T.translation()[’(1,2)’]<br />

(1,2)<br />

sage: T.change_names([’w’, ’x’, ’y’, ’z’])<br />

sage: T<br />

* w x y z<br />

+--------<br />

w| w x y z<br />

x| x w z y<br />

y| y z w x<br />

z| z y x w<br />

sage: T.translation()[’y’]<br />

(1,2)<br />

column_keys()<br />

Returns a tuple <strong>of</strong> the elements used to build the table.<br />

Note: column_keys <strong>and</strong> row_keys are identical. Both list the elements in the order used to label the<br />

table.<br />

OUTPUT:<br />

The elements <strong>of</strong> the algebraic structure used to build the table, as a list. But most importantly, elements<br />

are present in the list in the order which they appear in the table’s column headings.<br />

EXAMPLES:<br />

sage: from sage.matrix.operation_table import OperationTable<br />

sage: G=AlternatingGroup(3)<br />

sage: T=OperationTable(G, operator.mul)<br />

sage: T.column_keys()<br />

((), (1,2,3), (1,3,2))<br />

409

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

Saved successfully!

Ooh no, something went wrong!