Mercurial > octave
comparison libinterp/corefcn/__lin_interpn__.cc @ 21568:3d60ed163b70
maint: Eliminate bad spacing around '='.
* Figure.h, PopupMenuControl.cc, annotation-dialog.cc, gl-select.h,
files-dock-widget.cc, find-files-dialog.cc, history-dock-widget.cc,
file-editor.cc, main-window.cc, webinfo.cc, resource-manager.cc,
shortcut-manager.cc, workspace-view.cc, __ichol__.cc, __ilu__.cc,
__lin_interpn__.cc, bitfcns.cc, debug.cc, filter.cc, ft-text-renderer.cc,
graphics.cc, graphics.in.h, hex2num.cc, jit-typeinfo.cc, load-save.cc,
ls-mat5.cc, mxarray.in.h, oct-stream.cc, pr-output.cc, variables.cc,
__init_fltk__.cc, __magick_read__.cc, chol.cc, ov-struct.cc, op-scm-cs.cc,
pt-assign.cc, CollocWt.cc, randpoisson.c, inputParser.m, quadgk.m, waitbar.m,
imwrite.m, __imread__.m, textread.m, fileattrib.m, __xzip__.m, what.m,
fsolve.m, fix_depends.m, stemleaf.m, bicgstab.m, ichol.m, io.tst:
maint: Eliminate bad spacing around '='.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 30 Mar 2016 22:09:26 -0700 |
parents | 40de9f8f23a6 |
children | 53728df3e4c9 |
comparison
equal
deleted
inserted
replaced
21567:3d25f9f4a62b | 21568:3d60ed163b70 |
---|---|
193 OCTAVE_LOCAL_BUFFER (octave_idx_type, size, n); | 193 OCTAVE_LOCAL_BUFFER (octave_idx_type, size, n); |
194 | 194 |
195 for (int i = 0; i < n; i++) | 195 for (int i = 0; i < n; i++) |
196 { | 196 { |
197 y[i] = Y[i].data (); | 197 y[i] = Y[i].data (); |
198 size[i] = V.dims ()(i); | 198 size[i] = V.dims ()(i); |
199 } | 199 } |
200 | 200 |
201 OCTAVE_LOCAL_BUFFER (const T *, x, n); | 201 OCTAVE_LOCAL_BUFFER (const T *, x, n); |
202 OCTAVE_LOCAL_BUFFER (octave_idx_type, scale, n); | 202 OCTAVE_LOCAL_BUFFER (octave_idx_type, scale, n); |
203 | 203 |
225 error ("interpn: incompatible size of argument number %d", i+1); | 225 error ("interpn: incompatible size of argument number %d", i+1); |
226 | 226 |
227 M tmp = M (dim_vector (size[i], 1)); | 227 M tmp = M (dim_vector (size[i], 1)); |
228 | 228 |
229 for (octave_idx_type j = 0; j < size[i]; j++) | 229 for (octave_idx_type j = 0; j < size[i]; j++) |
230 tmp(j) = X[i](scale[i]*j); | 230 tmp(j) = X[i](scale[i]*j); |
231 | 231 |
232 X[i] = tmp; | 232 X[i] = tmp; |
233 } | 233 } |
234 } | 234 } |
235 | 235 |