Mercurial > octave
changeset 30327:256fad4ac653
eiminate .+ and .- from documentation
* expr.txi, vectorize.txi: Remove documentation for .+ and .-
operators. Note that + and - operators always work element by element.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 23 Nov 2021 12:36:52 -0500 |
parents | cd7c824f3f22 |
children | a2397a85d7e5 |
files | doc/interpreter/expr.txi doc/interpreter/vectorize.txi |
diffstat | 2 files changed, 9 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/expr.txi Tue Nov 23 12:36:01 2021 -0500 +++ b/doc/interpreter/expr.txi Tue Nov 23 12:36:52 2021 -0500 @@ -682,21 +682,15 @@ @table @asis @item @var{x} + @var{y} @opindex + -Addition. If both operands are matrices, the number of rows and columns -must both agree, or they must be broadcastable to the same shape. - -@item @var{x} .+ @var{y} -@opindex .+ -Element-by-element addition. This operator is equivalent to @code{+}. +Addition (always works element by element). If both operands are +matrices, the number of rows and columns must both agree, or they must +be broadcastable to the same shape. @item @var{x} - @var{y} @opindex - -Subtraction. If both operands are matrices, the number of rows and -columns of both must agree, or they must be broadcastable to the same -shape. - -@item @var{x} .- @var{y} -Element-by-element subtraction. This operator is equivalent to @code{-}. +Subtraction (always works element by element). If both operands are +matrices, the number of rows and columns of both must agree, or they +must be broadcastable to the same shape. @item @var{x} * @var{y} @opindex *
--- a/doc/interpreter/vectorize.txi Tue Nov 23 12:36:01 2021 -0500 +++ b/doc/interpreter/vectorize.txi Tue Nov 23 12:36:52 2021 -0500 @@ -384,8 +384,8 @@ is @example - plus + .+ - minus - .- + plus + + minus - times .* rdivide ./ ldivide .\ @@ -406,7 +406,7 @@ rem xor - += -= .+= .-= .*= ./= .\= .^= &= |= + += -= .*= ./= .\= .^= &= |= @end example Beware of resorting to broadcasting if a simpler operation will suffice.