Skip to content

Commit

Permalink
leadTerm doc fixes and assorted
Browse files Browse the repository at this point in the history
  • Loading branch information
pzinn authored and d-torrance committed Nov 22, 2024
1 parent 598237c commit 03cb41e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions M2/Macaulay2/m2/modules.m2
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ Vector#AfterPrint = Vector#AfterNoPrint = v -> moduleAbbrv(module v, Vector)
ring Vector := v -> ring class v
module Vector := v -> target v#0
leadTerm Vector := v -> new class v from leadTerm v#0
leadTerm (ZZ, Vector) := (n,v) -> new class v from leadTerm(n,v#0)
degree Vector := v -> (
f := ambient v#0;
first degrees source map(target f,,f))
Expand Down
3 changes: 2 additions & 1 deletion M2/Macaulay2/packages/Macaulay2Doc/doc5.m2
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ document {
}

undocumented {
(NewFromMethod, Set, List)
(NewFromMethod, Set, List),
(set, Set)
}

document {
Expand Down
2 changes: 1 addition & 1 deletion M2/Macaulay2/packages/Macaulay2Doc/doc7.m2
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ document {
}

document {
Key => (leadTerm, ZZ, Matrix),
Key => {(leadTerm, ZZ, Matrix), (leadTerm, ZZ, GroebnerBasis), (leadTerm, ZZ, Vector)},
Headline => "get the matrix of lead polynomials of each column",
Usage => "leadTerm(n,f)",
Inputs => {"n", "f" => "in a polynomial ring"},
Expand Down
2 changes: 2 additions & 0 deletions M2/Macaulay2/packages/Macaulay2Doc/functions/ideal-doc.m2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

-- in Classic: (ideal, String)

undocumented (ideal,Ideal)

document {
Key => ideal,
Headline => "make an ideal",
Expand Down

0 comments on commit 03cb41e

Please sign in to comment.