comparison libinterp/corefcn/rand.cc @ 21127:df7891224709

maint: Use "return ovl (...)" in DEFUN macros. * cellfun.cc, data.cc, debug.cc, defaults.cc, det.cc, dirfns.cc, dlmread.cc, error.cc, file-io.cc, getrusage.cc, graphics.cc, help.cc, input.cc, inv.cc, kron.cc, load-path.cc, pager.cc, pinv.cc, rand.cc, strfns.cc, urlwrite.cc, chol.cc, ov-classdef.cc, ov-struct.cc: Use "return ovl (...)" in DEFUN macros, rather than "return octave_value (...)".
author Rik <rik@octave.org>
date Thu, 21 Jan 2016 09:47:50 -0800
parents e39e05d90788
children 228b65504557
comparison
equal deleted inserted replaced
21126:ba0a4b4f021d 21127:df7891224709
1171 1171
1172 if (m < n) 1172 if (m < n)
1173 idx.resize (dim_vector (1, m)); 1173 idx.resize (dim_vector (1, m));
1174 1174
1175 // Now create an array object with a cached idx_vector. 1175 // Now create an array object with a cached idx_vector.
1176 return octave_value (new octave_matrix (r, idx_vector (idx))); 1176 return ovl (new octave_matrix (r, idx_vector (idx)));
1177 } 1177 }
1178 1178
1179 /* 1179 /*
1180 %!assert (sort (randperm (20)), 1:20) 1180 %!assert (sort (randperm (20)), 1:20)
1181 %!assert (length (randperm (20,10)), 10) 1181 %!assert (length (randperm (20,10)), 10)