Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NumberFFVector documentation, add an example #3079

Merged
merged 1 commit into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/listcoef.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#############################################################################
##
## <#GAPDoc Label="[1]{listcoef}">
## The following operations all perform arithmetic on row vectors.
## The following operations all perform arithmetic on row vectors,
## given as homogeneous lists of the same length, containing
## elements of a commutative ring.
## <P/>
Expand Down
14 changes: 13 additions & 1 deletion lib/vecmat.gd
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,23 @@ DeclareOperation( "ImmutableVector",[IsObject,IsRowVector]);
## <Oper Name="NumberFFVector" Arg='vec, sz'/>
##
## <Description>
## returns an integer that gives the position of the finite field row vector
## returns an integer that gives the position minus one of the finite field row vector
## <A>vec</A> in the sorted list of all row vectors over the field with
## <A>sz</A> elements in the same dimension as <A>vec</A>.
## <Ref Func="NumberFFVector"/> returns <K>fail</K> if the vector cannot be
## represented over the field with <A>sz</A> elements.
## <P/>
## <Example><![CDATA[
## gap> v:=[0,1,2,0]*Z(3);;
## gap> NumberFFVector(v, 3);
## 21
## gap> NumberFFVector(Zero(v),3);
## 0
## gap> V:=EnumeratorSorted(GF(3)^4);
## <enumerator of ( GF(3)^4 )>
## gap> V[21+1] = v;
## true
## ]]></Example>
## </Description>
## </ManSection>
## <#/GAPDoc>
Expand Down