comparison src/DLD-FUNCTIONS/max.cc @ 10840:89f4d7e294cc

Grammarcheck .cc files
author Rik <octave@nomad.inbox5.com>
date Sat, 31 Jul 2010 11:18:11 -0700
parents d0ce5e973937
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
10839:65bc065bec95 10840:89f4d7e294cc
329 @group\n\ 329 @group\n\
330 min (2:5, pi)\n\ 330 min (2:5, pi)\n\
331 @result{} 2.0000 3.0000 3.1416 3.1416\n\ 331 @result{} 2.0000 3.0000 3.1416 3.1416\n\
332 @end group\n\ 332 @end group\n\
333 @end example\n\ 333 @end example\n\
334 \n\
334 @noindent\n\ 335 @noindent\n\
335 compares each element of the range @code{2:5} with @code{pi}, and\n\ 336 compares each element of the range @code{2:5} with @code{pi}, and\n\
336 returns a row vector of the minimum values.\n\ 337 returns a row vector of the minimum values.\n\
337 \n\ 338 \n\
338 For complex arguments, the magnitude of the elements are used for\n\ 339 For complex arguments, the magnitude of the elements are used for\n\
405 @group\n\ 406 @group\n\
406 max (2:5, pi)\n\ 407 max (2:5, pi)\n\
407 @result{} 3.1416 3.1416 4.0000 5.0000\n\ 408 @result{} 3.1416 3.1416 4.0000 5.0000\n\
408 @end group\n\ 409 @end group\n\
409 @end example\n\ 410 @end example\n\
411 \n\
410 @noindent\n\ 412 @noindent\n\
411 compares each element of the range @code{2:5} with @code{pi}, and\n\ 413 compares each element of the range @code{2:5} with @code{pi}, and\n\
412 returns a row vector of the maximum values.\n\ 414 returns a row vector of the maximum values.\n\
413 \n\ 415 \n\
414 For complex arguments, the magnitude of the elements are used for\n\ 416 For complex arguments, the magnitude of the elements are used for\n\
564 "-*- texinfo -*-\n\ 566 "-*- texinfo -*-\n\
565 @deftypefn {Loadable Function} {} cummin (@var{x})\n\ 567 @deftypefn {Loadable Function} {} cummin (@var{x})\n\
566 @deftypefnx {Loadable Function} {} cummin (@var{x}, @var{dim})\n\ 568 @deftypefnx {Loadable Function} {} cummin (@var{x}, @var{dim})\n\
567 @deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} cummin (@var{x})\n\ 569 @deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} cummin (@var{x})\n\
568 Return the cumulative minimum values along dimension @var{dim}. If @var{dim}\n\ 570 Return the cumulative minimum values along dimension @var{dim}. If @var{dim}\n\
569 is unspecified it defaults to column-wise operation. For example,\n\ 571 is unspecified it defaults to column-wise operation. For example:\n\
570 \n\ 572 \n\
571 @example\n\ 573 @example\n\
572 @group\n\ 574 @group\n\
573 cummin ([5 4 6 2 3 1])\n\ 575 cummin ([5 4 6 2 3 1])\n\
574 @result{} 5 4 4 2 2 1\n\ 576 @result{} 5 4 4 2 2 1\n\
575 @end group\n\ 577 @end group\n\
576 @end example\n\ 578 @end example\n\
577 \n\ 579 \n\
578 \n\ 580 \n\
579 The call\n\ 581 The call\n\
582 \n\
580 @example\n\ 583 @example\n\
581 [w, iw] = cummin (x)\n\ 584 [w, iw] = cummin (x)\n\
582 @end example\n\ 585 @end example\n\
583 \n\ 586 \n\
584 @noindent\n\ 587 @noindent\n\
585 with @code{x} a vector, is equivalent to the following code:\n\ 588 with @code{x} a vector, is equivalent to the following code:\n\
589 \n\
586 @example\n\ 590 @example\n\
587 @group\n\ 591 @group\n\
588 w = iw = zeros (size (x));\n\ 592 w = iw = zeros (size (x));\n\
589 for i = 1:length (x)\n\ 593 for i = 1:length (x)\n\
590 [w(i), iw(i)] = max (x(1:i));\n\ 594 [w(i), iw(i)] = max (x(1:i));\n\
604 "-*- texinfo -*-\n\ 608 "-*- texinfo -*-\n\
605 @deftypefn {Loadable Function} {} cummax (@var{x})\n\ 609 @deftypefn {Loadable Function} {} cummax (@var{x})\n\
606 @deftypefnx {Loadable Function} {} cummax (@var{x}, @var{dim})\n\ 610 @deftypefnx {Loadable Function} {} cummax (@var{x}, @var{dim})\n\
607 @deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} cummax (@var{x})\n\ 611 @deftypefnx {Loadable Function} {[@var{w}, @var{iw}] =} cummax (@var{x})\n\
608 Return the cumulative maximum values along dimension @var{dim}. If @var{dim}\n\ 612 Return the cumulative maximum values along dimension @var{dim}. If @var{dim}\n\
609 is unspecified it defaults to column-wise operation. For example,\n\ 613 is unspecified it defaults to column-wise operation. For example:\n\
610 \n\ 614 \n\
611 @example\n\ 615 @example\n\
612 @group\n\ 616 @group\n\
613 cummax ([1 3 2 6 4 5])\n\ 617 cummax ([1 3 2 6 4 5])\n\
614 @result{} 1 3 3 6 6 6\n\ 618 @result{} 1 3 3 6 6 6\n\
615 @end group\n\ 619 @end group\n\
616 @end example\n\ 620 @end example\n\
617 \n\ 621 \n\
618 The call\n\ 622 The call\n\
623 \n\
619 @example\n\ 624 @example\n\
620 [w, iw] = cummax (x, dim)\n\ 625 [w, iw] = cummax (x, dim)\n\
621 @end example\n\ 626 @end example\n\
622 \n\ 627 \n\
623 @noindent\n\ 628 @noindent\n\
624 with @code{x} a vector, is equivalent to the following code:\n\ 629 with @code{x} a vector, is equivalent to the following code:\n\
630 \n\
625 @example\n\ 631 @example\n\
626 @group\n\ 632 @group\n\
627 w = iw = zeros (size (x));\n\ 633 w = iw = zeros (size (x));\n\
628 for i = 1:length (x)\n\ 634 for i = 1:length (x)\n\
629 [w(i), iw(i)] = max (x(1:i));\n\ 635 [w(i), iw(i)] = max (x(1:i));\n\