Mercurial > octave
comparison doc/interpreter/expr.txi @ 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 | 2ba4758654ca |
children | 7ecd07721cca |
comparison
equal
deleted
inserted
replaced
30326:cd7c824f3f22 | 30327:256fad4ac653 |
---|---|
680 (@pxref{Broadcasting}). | 680 (@pxref{Broadcasting}). |
681 | 681 |
682 @table @asis | 682 @table @asis |
683 @item @var{x} + @var{y} | 683 @item @var{x} + @var{y} |
684 @opindex + | 684 @opindex + |
685 Addition. If both operands are matrices, the number of rows and columns | 685 Addition (always works element by element). If both operands are |
686 must both agree, or they must be broadcastable to the same shape. | 686 matrices, the number of rows and columns must both agree, or they must |
687 | 687 be broadcastable to the same shape. |
688 @item @var{x} .+ @var{y} | |
689 @opindex .+ | |
690 Element-by-element addition. This operator is equivalent to @code{+}. | |
691 | 688 |
692 @item @var{x} - @var{y} | 689 @item @var{x} - @var{y} |
693 @opindex - | 690 @opindex - |
694 Subtraction. If both operands are matrices, the number of rows and | 691 Subtraction (always works element by element). If both operands are |
695 columns of both must agree, or they must be broadcastable to the same | 692 matrices, the number of rows and columns of both must agree, or they |
696 shape. | 693 must be broadcastable to the same shape. |
697 | |
698 @item @var{x} .- @var{y} | |
699 Element-by-element subtraction. This operator is equivalent to @code{-}. | |
700 | 694 |
701 @item @var{x} * @var{y} | 695 @item @var{x} * @var{y} |
702 @opindex * | 696 @opindex * |
703 Matrix multiplication. The number of columns of @var{x} must agree with | 697 Matrix multiplication. The number of columns of @var{x} must agree with |
704 the number of rows of @var{y}. | 698 the number of rows of @var{y}. |