Mercurial > octave-nkf
comparison libinterp/corefcn/filter.cc @ 20265:e914b5399c67
Use in-place operators in C++ code where possible.
* libgui/src/dialog.cc, libgui/src/m-editor/file-editor-tab.cc,
libgui/src/main-window.cc, libinterp/corefcn/bsxfun.cc,
libinterp/corefcn/filter.cc, libinterp/corefcn/mgorth.cc,
libinterp/corefcn/oct-stream.cc, libinterp/corefcn/pr-output.cc,
liboctave/array/Array-util.cc, liboctave/array/dim-vector.h,
liboctave/numeric/CollocWt.cc, liboctave/numeric/eigs-base.cc,
liboctave/numeric/lo-specfun.cc:
Use in-place operators in C++ code where possible.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 25 May 2015 22:02:15 -0700 |
parents | 4f45eaf83908 |
children | a9574e3c6e9e |
comparison
equal
deleted
inserted
replaced
20264:5dfaaaae784f | 20265:e914b5399c67 |
---|---|
125 if (x_len == 0) | 125 if (x_len == 0) |
126 return x; | 126 return x; |
127 | 127 |
128 if (norm != static_cast<T> (1.0)) | 128 if (norm != static_cast<T> (1.0)) |
129 { | 129 { |
130 a = a / norm; | 130 a /= norm; |
131 b = b / norm; | 131 b /= norm; |
132 } | 132 } |
133 | 133 |
134 if (a_len <= 1 && si_len <= 0) | 134 if (a_len <= 1 && si_len <= 0) |
135 return b(0) * x; | 135 return b(0) * x; |
136 | 136 |