|
# MatricesForHomalg, single 20
#
# DO NOT EDIT THIS FILE - EDIT EXAMPLES IN THE SOURCE INSTEAD!
#
# This file has been generated by AutoDoc. It contains examples extracted from
# the package documentation. Each example is preceded by a comment which gives
# the name of a GAPDoc XML file and a line range from which the example were
# taken. Note that the XML file in turn may have been generated by AutoDoc
# from some other input.
#
gap> START_TEST("matricesforhomalg20.tst");
# doc/../gap/HomalgMatrix.gi:964-987
gap> zz := HomalgRingOfIntegers( );
Z
gap> A := HomalgMatrix( "[ 1 ]", zz );
<A 1 x 1 matrix over an internal ring>
gap> B := HomalgMatrix( "[ 3 ]", zz );
<A 1 x 1 matrix over an internal ring>
gap> Z2 := zz / 2;
Z/( 2 )
gap> A := Z2 * A;
<A 1 x 1 matrix over a residue class ring>
gap> B := Z2 * B;
<A 1 x 1 matrix over a residue class ring>
gap> Display( A );
[ [ 1 ] ]
modulo [ 2 ]
gap> Display( B );
[ [ 3 ] ]
modulo [ 2 ]
gap> A = B;
true
#
gap> STOP_TEST("matricesforhomalg20.tst", 1);
[ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
]
|