comparison libinterp/corefcn/__lin_interpn__.cc @ 20918:6f0bd96f93c0

maint: Use new C++ archetype in more files. Place input validation first in files. Move declaration of retval down in function to be closer to point of usage. Eliminate else clause after if () error. Use "return ovl()" where it makes sense. * __dispatch__.cc, __dsearchn__.cc, __ichol__.cc, __lin_interpn__.cc, balance.cc, betainc.cc, bitfcns.cc, bsxfun.cc, cellfun.cc, colloc.cc, conv2.cc, daspk.cc, dasrt.cc, dassl.cc, data.cc, debug.cc, dirfns.cc, dlmread.cc, dot.cc, eig.cc, error.cc, fft.cc, fft2.cc, fftn.cc, file-io.cc, ov-type-conv.h: Use new C++ archetype in more files.
author Rik <rik@octave.org>
date Wed, 16 Dec 2015 15:00:31 -0800
parents 1142cf6abc0d
children 48b2ad5ee801
comparison
equal deleted inserted replaced
20917:a7051a169cad 20918:6f0bd96f93c0
263 "-*- texinfo -*-\n\ 263 "-*- texinfo -*-\n\
264 @deftypefn {} {@var{vi} =} __lin_interpn__ (@var{x1}, @var{x2}, @dots{}, @var{xn}, @var{v}, @var{y1}, @var{y2}, @dots{}, @var{yn})\n\ 264 @deftypefn {} {@var{vi} =} __lin_interpn__ (@var{x1}, @var{x2}, @dots{}, @var{xn}, @var{v}, @var{y1}, @var{y2}, @dots{}, @var{yn})\n\
265 Undocumented internal function.\n\ 265 Undocumented internal function.\n\
266 @end deftypefn") 266 @end deftypefn")
267 { 267 {
268 octave_value retval;
269
270 int nargin = args.length (); 268 int nargin = args.length ();
271 269
272 if (nargin < 2 || nargin % 2 == 0) 270 if (nargin < 2 || nargin % 2 == 0)
273 print_usage (); 271 print_usage ();
272
273 octave_value retval;
274 274
275 // dimension of the problem 275 // dimension of the problem
276 int n = (nargin-1)/2; 276 int n = (nargin-1)/2;
277 277
278 if (args(n).is_single_type ()) 278 if (args(n).is_single_type ())