Skip to content

Commit

Permalink
Document +/- methods for Vector & Number/RingElement
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Dec 8, 2024
1 parent 9ab1785 commit 21a5b78
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions M2/Macaulay2/packages/Macaulay2Doc/doc.m2
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ document {
(symbol +, Vector, Vector),
(symbol +, Matrix, RingElement),
(symbol +, RingElement, Matrix),
(symbol +, ChainComplexMap, RingElement)
(symbol +, ChainComplexMap, RingElement),
(symbol +, Vector, Number),
(symbol +, Vector, RingElement),
(symbol +, Number, Vector),
(symbol +, RingElement, Vector)
},
Headline => "a unary or binary operator, usually used for addition",
Usage => "+y \n x+y",
Expand Down Expand Up @@ -319,7 +323,11 @@ document {
(symbol -, Matrix),
(symbol -, RingElement, Matrix),
(symbol -, ChainComplexMap, RingElement),
(symbol -, Vector, Vector)
(symbol -, Vector, Vector),
(symbol -, Vector, Number),
(symbol -, Vector, RingElement),
(symbol -, Number, Vector),
(symbol -, RingElement, Vector)
},
Headline => "a unary or binary operator, usually used for negation or subtraction",
Usage => "-y \n x-y",
Expand Down

0 comments on commit 21a5b78

Please sign in to comment.