Mercurial > octave-libtiff
changeset 29127:a948253f9976
maint: strip trailing spaces from code base.
* gl-render.cc, input.cc, integral.m, vecnorm.m, inputname.m, __pltopt__.m,
sinewave.m, spfun.m:
maint: strip trailing spaces from code base.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 02 Dec 2020 09:02:37 -0800 |
parents | ee39aef7c417 |
children | cdc2f3799c85 |
files | libinterp/corefcn/gl-render.cc libinterp/corefcn/input.cc scripts/general/integral.m scripts/linear-algebra/vecnorm.m scripts/miscellaneous/inputname.m scripts/plot/util/__pltopt__.m scripts/signal/sinewave.m scripts/sparse/spfun.m |
diffstat | 8 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc Tue Dec 01 19:54:51 2020 -0800 +++ b/libinterp/corefcn/gl-render.cc Wed Dec 02 09:02:37 2020 -0800 @@ -1289,7 +1289,7 @@ const double single_prec_fac = 10.0; double avgZ = x_zlim(0) / 2.0 + x_zlim(1) / 2.0; - double span + double span = std::max (expansion_fac * (x_zlim(1)-x_zlim(0)), single_prec_fac * std::abs (avgZ) * std::numeric_limits<float>::epsilon ());
--- a/libinterp/corefcn/input.cc Tue Dec 01 19:54:51 2020 -0800 +++ b/libinterp/corefcn/input.cc Wed Dec 02 09:02:37 2020 -0800 @@ -626,7 +626,7 @@ return; } - + octave_value input_system::auto_repeat_debug_command (const octave_value_list& args, int nargout)
--- a/scripts/general/integral.m Tue Dec 01 19:54:51 2020 -0800 +++ b/scripts/general/integral.m Wed Dec 02 09:02:37 2020 -0800 @@ -115,7 +115,7 @@ if (nargin < 3 || (mod (nargin, 2) == 0)) print_usage (); endif - + ## quadcc can't handle complex limits or integrands, but quadgk & quadv can. ## Check for simple cases of complex limits and integrand. f_is_complex = false; @@ -210,7 +210,7 @@ else if (! f_is_complex) try - q = quadcc (f, a, b, [abstol, reltol]); + q = quadcc (f, a, b, [abstol, reltol]); catch quaderror if (strcmp (quaderror.message, "quadcc: integrand F must return a single, real-valued vector"))
--- a/scripts/linear-algebra/vecnorm.m Tue Dec 01 19:54:51 2020 -0800 +++ b/scripts/linear-algebra/vecnorm.m Wed Dec 02 09:02:37 2020 -0800 @@ -63,7 +63,7 @@ if (! isnumeric (A)) error ("vecnorm: A must be numeric"); endif - + if (! (isscalar (p) && isreal (p) && p > 0)) error ("vecnorm: P must be positive real scalar or Inf"); endif
--- a/scripts/miscellaneous/inputname.m Tue Dec 01 19:54:51 2020 -0800 +++ b/scripts/miscellaneous/inputname.m Wed Dec 02 09:02:37 2020 -0800 @@ -131,7 +131,7 @@ %!test %! assert (__iname1__ ('xvar'), ""); -%! xvar = 1; +%! xvar = 1; %! assert (__iname1__ (xvar), "xvar"); %!test
--- a/scripts/plot/util/__pltopt__.m Tue Dec 01 19:54:51 2020 -0800 +++ b/scripts/plot/util/__pltopt__.m Wed Dec 02 09:02:37 2020 -0800 @@ -109,7 +109,7 @@ nel = numel (opt); - if (nel) + if (nel) for i = nel:-1:1 [options(i), valid] = decode_linespec (caller, opt{i}, err_on_invalid); if (! err_on_invalid && ! valid)
--- a/scripts/signal/sinewave.m Tue Dec 01 19:54:51 2020 -0800 +++ b/scripts/signal/sinewave.m Wed Dec 02 09:02:37 2020 -0800 @@ -38,7 +38,7 @@ if (nargin < 1) print_usage (); endif - + ## FIXME: No input validation of M, N, or D if (nargin < 2) n = m;
--- a/scripts/sparse/spfun.m Tue Dec 01 19:54:51 2020 -0800 +++ b/scripts/sparse/spfun.m Wed Dec 02 09:02:37 2020 -0800 @@ -44,17 +44,17 @@ ## @group ## S = pi * speye (2,2) ## S = -## +## ## Compressed Column Sparse (rows = 2, cols = 2, nnz = 2 [50%]) -## +## ## (1, 1) -> 3.1416 ## (2, 2) -> 3.1416 -## +## ## y = spfun (@@cos, S) ## y = -## +## ## Compressed Column Sparse (rows = 2, cols = 2, nnz = 2 [50%]) -## +## ## (1, 1) -> -1 ## (2, 2) -> -1 ## @end group @@ -62,9 +62,9 @@ ## @group ## y = cos (S) ## y = -## +## ## Compressed Column Sparse (rows = 2, cols = 2, nnz = 4 [100%]) -## +## ## (1, 1) -> -1 ## (2, 1) -> 1 ## (1, 2) -> 1 @@ -101,5 +101,5 @@ ## Test input validation %!error <Invalid call> spfun () %!error <Invalid call> spfun (@cos) -%!error <S must be numeric> spfun (@cos, {1}) -%!error <S must be numeric> spfun (@cos, "FooBar") +%!error <S must be numeric> spfun (@cos, {1}) +%!error <S must be numeric> spfun (@cos, "FooBar")