Mercurial > octave-nkf
comparison src/data.cc @ 6174:d3c599afc455
[project @ 2006-11-16 17:52:02 by jwe]
author | jwe |
---|---|
date | Thu, 16 Nov 2006 17:52:02 +0000 |
parents | a46f14cdbecd |
children | a4ecbadedc17 |
comparison
equal
deleted
inserted
replaced
6173:dae08571782e | 6174:d3c599afc455 |
---|---|
2346 | 2346 |
2347 DEFUN (resize, args, , | 2347 DEFUN (resize, args, , |
2348 "-*- texinfo -*-\n\ | 2348 "-*- texinfo -*-\n\ |
2349 @deftypefn {Built-in Function} {} resize (@var{x}, @var{m})\n\ | 2349 @deftypefn {Built-in Function} {} resize (@var{x}, @var{m})\n\ |
2350 @deftypefnx {Built-in Function} {} resize (@var{x}, @var{m}, @var{n})\n\ | 2350 @deftypefnx {Built-in Function} {} resize (@var{x}, @var{m}, @var{n})\n\ |
2351 Resize @var{x} to be dimension @var{m}-by-@var{n} where @var{m}\n\ | 2351 Destructively resize @var{x}.\n\ |
2352 and @var{n} are scalar. If @var{n} is not supplied, then resize @var{x}\n\ | 2352 \n\ |
2353 to be dimension @var{m}-by-@var{m} if @var{m} is scalar, or if\n\ | 2353 @strong{Values in @var{x} are not preserved as they are with\n\ |
2354 @var{m} is a vector, then the values of this vector respresent the\n\ | 2354 @code{reshape}}.\n\ |
2355 dimensions of the resized matrix.\n\ | 2355 \n\ |
2356 If only @var{m} is supplied and it is a scalar, the dimension of the\n\ | |
2357 result is @var{m}-by-@var{m}. If @var{m} is a vector, then the\n\ | |
2358 dimensions of the result are given by the elements of @var{m}.\n\ | |
2359 If both @var{m} and @var{n} are scalars, then the dimensions of\n\ | |
2360 the result are @var{m}-by-@var{n}.\n\ | |
2361 @seealso{reshape}\n\ | |
2356 @end deftypefn") | 2362 @end deftypefn") |
2357 { | 2363 { |
2358 octave_value retval; | 2364 octave_value retval; |
2359 int nargin = args.length (); | 2365 int nargin = args.length (); |
2360 | 2366 |