Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/rand.cc @ 4665:dece11da64ed ss-2-1-52
[project @ 2003-11-25 15:37:32 by jwe]
author | jwe |
---|---|
date | Tue, 25 Nov 2003 15:37:32 +0000 |
parents | 19bcdc6a9bb8 |
children | 57077d0ddc8e |
comparison
equal
deleted
inserted
replaced
4664:19bcdc6a9bb8 | 4665:dece11da64ed |
---|---|
217 gen_matrix: | 217 gen_matrix: |
218 | 218 |
219 return octave_rand::nd_array (dims); | 219 return octave_rand::nd_array (dims); |
220 } | 220 } |
221 | 221 |
222 DEFUN_DLD (rand, args, nargout, | 222 DEFUN_DLD (rand, args, , |
223 "-*- texinfo -*-\n\ | 223 "-*- texinfo -*-\n\ |
224 @deftypefn {Loadable Function} {} rand (@var{x})\n\ | 224 @deftypefn {Loadable Function} {} rand (@var{x})\n\ |
225 @deftypefnx {Loadable Function} {} rand (@var{n}, @var{m})\n\ | 225 @deftypefnx {Loadable Function} {} rand (@var{n}, @var{m})\n\ |
226 @deftypefnx {Loadable Function} {} rand (@code{\"seed\"}, @var{x})\n\ | 226 @deftypefnx {Loadable Function} {} rand (@code{\"seed\"}, @var{x})\n\ |
227 Return a matrix with random elements uniformly distributed on the\n\ | 227 Return a matrix with random elements uniformly distributed on the\n\ |
260 reset_rand_generator (void *) | 260 reset_rand_generator (void *) |
261 { | 261 { |
262 octave_rand::distribution (current_distribution); | 262 octave_rand::distribution (current_distribution); |
263 } | 263 } |
264 | 264 |
265 DEFUN_DLD (randn, args, nargout, | 265 DEFUN_DLD (randn, args, , |
266 "-*- texinfo -*-\n\ | 266 "-*- texinfo -*-\n\ |
267 @deftypefn {Loadable Function} {} randn (@var{x})\n\ | 267 @deftypefn {Loadable Function} {} randn (@var{x})\n\ |
268 @deftypefnx {Loadable Function} {} randn (@var{n}, @var{m})\n\ | 268 @deftypefnx {Loadable Function} {} randn (@var{n}, @var{m})\n\ |
269 @deftypefnx {Loadable Function} {} randn (@code{\"seed\"}, @var{x})\n\ | 269 @deftypefnx {Loadable Function} {} randn (@code{\"seed\"}, @var{x})\n\ |
270 Return a matrix with normally distributed random elements. The\n\ | 270 Return a matrix with normally distributed random elements. The\n\ |