Skip to content

Commit

Permalink
Matexample
Browse files Browse the repository at this point in the history
  • Loading branch information
hulpke committed Aug 31, 2018
1 parent 79057f5 commit eb0ac26
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/matrix.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1671,19 +1671,23 @@ DeclareGlobalFunction( "RandomMat" );
##
## <#GAPDoc Label="RandomUnimodularMat">
## <ManSection>
## <Func Name="RandomUnimodularMat" Arg='[rs ,] m'/>
## <Func Name="RandomUnimodularMat" Arg='[rs ,] m [:domail:=domain]'/>
##
## <Description>
## returns a new random mutable <A>m</A><M>\times</M><A>m</A> matrix with integer
## entries that is invertible over the integers.
## Optionally, a random source <A>rs</A> can be supplied.
## If the option <A>domain</A> is given, random selection is made from <A>domain</A>, otherwise
## If the option <A>domain</A> is given, random selection is made from
## <A>domain</A> (allowing for larger coefficients), otherwise
## from <A>Integers</A>
## <Example><![CDATA[
## gap> m := RandomUnimodularMat(3);
## [ [ -5, 1, 0 ], [ 12, -2, -1 ], [ -14, 3, 0 ] ]
## gap> m^-1;
## [ [ -3, 0, 1 ], [ -14, 0, 5 ], [ -8, -1, 2 ] ]
## gap> m := RandomUnimodularMat(3:domain:=[-100..100]);
## [ [ -1657873485, 18426382, 4450081635 ],
## [ 7935388633, -88197624, -21300254538 ], [ -2148090, 23875, 5765926 ] ]
## ]]></Example>
## </Description>
## </ManSection>
Expand Down

0 comments on commit eb0ac26

Please sign in to comment.