# HG changeset patch # User Carnë Draug # Date 1442626485 -3600 # Node ID 6ef177ddc1ee7814b0305b24086148b961be6532 # Parent 779c1d85cf909705f749aec7d07665e89ce23aaf doc: remove section about broadcasting warnings which no longer exists. diff -r 779c1d85cf90 -r 6ef177ddc1ee doc/interpreter/vectorize.txi --- a/doc/interpreter/vectorize.txi Fri Sep 11 07:38:31 2015 -0400 +++ b/doc/interpreter/vectorize.txi Sat Sep 19 02:34:45 2015 +0100 @@ -455,25 +455,19 @@ @noindent that may have relied on matrices of different size producing an error. -Due to how broadcasting changes semantics with older versions of Octave, -by default Octave warns if a broadcasting operation is performed. To -disable this warning, refer to its ID (@pxref{XREFwarning_ids,,warning_ids}): +Because such operation is now valid Octave syntax, this will no longer +produce an error. Instead, the following code should be used: @example -warning ("off", "Octave:broadcast"); +@group +if (isequal (size (a), size (b))) + c = a .* b; +else + c = a .* a; +endif +@end group @end example -@noindent -If you want to recover the old behavior and produce an error, turn this -warning into an error: - -@example -warning ("error", "Octave:broadcast"); -@end example - -@noindent -For broadcasting on scalars that worked in previous versions of Octave, -this warning will not be emitted. @node Function Application @section Function Application