changeset 24455:6558d0d3fdac

maint: merge stable to default.
author Rik <rik@octave.org>
date Fri, 22 Dec 2017 15:32:16 -0800
parents 4827cbef0949 (current diff) b9d482dd90f3 (diff)
children 2706adccf4e9
files doc/interpreter/expr.txi scripts/plot/draw/ezmesh.m scripts/plot/draw/ezmeshc.m scripts/plot/draw/ezsurf.m scripts/plot/draw/ezsurfc.m
diffstat 5 files changed, 16 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/expr.txi	Wed Dec 20 20:10:10 2017 +0100
+++ b/doc/interpreter/expr.txi	Fri Dec 22 15:32:16 2017 -0800
@@ -134,17 +134,17 @@
 @node Advanced Indexing
 @subsection Advanced Indexing
 
-An array with @samp{n} dimensions can be indexed using @samp{m}
+An array with @samp{nd} dimensions can be indexed using @samp{m}
 indices.  More generally, the set of index tuples determining the
 result is formed by the Cartesian product of the index vectors (or
 ranges or scalars).
 
-For the ordinary and most common case, @w{@code{m == n}}, and each
-index corresponds to its respective dimension.  If @w{@code{m < n}}
-and every index is less than the size of the array in the
-@math{i^{th}} dimension, @code{m(i) < n(i)}, then the index expression
-is padded with trailing singleton dimensions (@code{[ones (m-n, 1)]}).
-If @w{@code{m < n}} but one of the indices @code{m(i)} is outside the
+For the ordinary and most common case, @w{@code{m == nd}}, and each
+index corresponds to its respective dimension.  If @w{@code{m < nd}},
+and every index is less than the size of the array in the @math{i^{th}}
+dimension (@code{m(i) < size (@var{array}, i)}), then the index expression
+is padded with @w{@code{n - m}} trailing singleton dimensions. 
+If @w{@code{m < nd}} but one of the indices @code{m(i)} is outside the
 size of the current array, then the last @w{@code{n-m+1}} dimensions
 are folded into a single dimension with an extent equal to the product
 of extents of the original dimensions.  This is easiest to understand
@@ -535,8 +535,7 @@
 @item @var{x} * @var{y}
 @opindex *
 Matrix multiplication.  The number of columns of @var{x} must agree with
-the number of rows of @var{y}, or they must be broadcastable to the same
-shape.
+the number of rows of @var{y}.
 
 @item @var{x} .* @var{y}
 @opindex .*
--- a/scripts/plot/draw/ezmesh.m	Wed Dec 20 20:10:10 2017 +0100
+++ b/scripts/plot/draw/ezmesh.m	Fri Dec 22 15:32:16 2017 -0800
@@ -32,8 +32,8 @@
 ## @code{-2*pi <= @var{x} | @var{y} <= 2*pi} with 60 points in each dimension.
 ##
 ## If three functions are passed, then plot the parametrically defined
-## function @code{[@var{fx} (@var{s}, @var{t}), @var{fy} (@var{s}, @var{t}),
-## @var{fz} (@var{s}, @var{t})]}.
+## function @code{[@var{fx}(@var{s}, @var{t}), @var{fy}(@var{s}, @var{t}),
+## @var{fz}(@var{s}, @var{t})]}.
 ##
 ## If @var{dom} is a two element vector, it represents the minimum and maximum
 ## values of both @var{x} and @var{y}.  If @var{dom} is a four element vector,
--- a/scripts/plot/draw/ezmeshc.m	Wed Dec 20 20:10:10 2017 +0100
+++ b/scripts/plot/draw/ezmeshc.m	Fri Dec 22 15:32:16 2017 -0800
@@ -32,8 +32,8 @@
 ## @code{-2*pi <= @var{x} | @var{y} <= 2*pi} with 60 points in each dimension.
 ##
 ## If three functions are passed, then plot the parametrically defined
-## function @code{[@var{fx} (@var{s}, @var{t}), @var{fy} (@var{s}, @var{t}),
-## @var{fz} (@var{s}, @var{t})]}.
+## function @code{[@var{fx}(@var{s}, @var{t}), @var{fy}(@var{s}, @var{t}),
+## @var{fz}(@var{s}, @var{t})]}.
 ##
 ## If @var{dom} is a two element vector, it represents the minimum and maximum
 ## values of both @var{x} and @var{y}.  If @var{dom} is a four element vector,
--- a/scripts/plot/draw/ezsurf.m	Wed Dec 20 20:10:10 2017 +0100
+++ b/scripts/plot/draw/ezsurf.m	Fri Dec 22 15:32:16 2017 -0800
@@ -32,8 +32,8 @@
 ## @code{-2*pi <= @var{x} | @var{y} <= 2*pi} with 60 points in each dimension.
 ##
 ## If three functions are passed, then plot the parametrically defined
-## function @code{[@var{fx} (@var{s}, @var{t}), @var{fy} (@var{s}, @var{t}),
-## @var{fz} (@var{s}, @var{t})]}.
+## function @code{[@var{fx}(@var{s}, @var{t}), @var{fy}(@var{s}, @var{t}),
+## @var{fz}(@var{s}, @var{t})]}.
 ##
 ## If @var{dom} is a two element vector, it represents the minimum and maximum
 ## values of both @var{x} and @var{y}.  If @var{dom} is a four element vector,
--- a/scripts/plot/draw/ezsurfc.m	Wed Dec 20 20:10:10 2017 +0100
+++ b/scripts/plot/draw/ezsurfc.m	Fri Dec 22 15:32:16 2017 -0800
@@ -32,8 +32,8 @@
 ## @code{-2*pi <= @var{x} | @var{y} <= 2*pi} with 60 points in each dimension.
 ##
 ## If three functions are passed, then plot the parametrically defined
-## function @code{[@var{fx} (@var{s}, @var{t}), @var{fy} (@var{s}, @var{t}),
-## @var{fz} (@var{s}, @var{t})]}.
+## function @code{[@var{fx}(@var{s}, @var{t}), @var{fy}(@var{s}, @var{t}),
+## @var{fz}(@var{s}, @var{t})]}.
 ##
 ## If @var{dom} is a two element vector, it represents the minimum and maximum
 ## values of both @var{x} and @var{y}.  If @var{dom} is a four element vector,