comparison src/data.cc @ 5734:a7d2c47371d2

[project @ 2006-04-04 18:29:13 by jwe]
author jwe
date Tue, 04 Apr 2006 18:29:13 +0000
parents c7d5a534afa5
children b09d4d0f5b63
comparison
equal deleted inserted replaced
5733:6b345b4961ca 5734:a7d2c47371d2
1861 error ("linspace: expecting third argument to be an integer"); 1861 error ("linspace: expecting third argument to be an integer");
1862 1862
1863 return retval; 1863 return retval;
1864 } 1864 }
1865 1865
1866 // XXX FIXME XXX -- should accept dimensions as separate args for N-d
1867 // arrays as well as 1-d and 2-d arrays.
1868
1866 DEFUN (resize, args, , 1869 DEFUN (resize, args, ,
1867 "-*- texinfo -*-\n\ 1870 "-*- texinfo -*-\n\
1868 @deftypefn {Built-in Function} {} resize (@var{x}, @var{m})\n\ 1871 @deftypefn {Built-in Function} {} resize (@var{x}, @var{m})\n\
1869 @deftypefnx {Built-in Function} {} resize (@var{x}, @var{m}, @var{n})\n\ 1872 @deftypefnx {Built-in Function} {} resize (@var{x}, @var{m}, @var{n})\n\
1870 Resize @var{x} to be dimension @var{m}-by-@var{n} where @var{m}\n\ 1873 Resize @var{x} to be dimension @var{m}-by-@var{n} where @var{m}\n\
1911 } 1914 }
1912 else 1915 else
1913 print_usage ("resize"); 1916 print_usage ("resize");
1914 return retval; 1917 return retval;
1915 } 1918 }
1919
1920 // XXX FIXME XXX -- should use octave_idx_type for dimensions.
1916 1921
1917 DEFUN (reshape, args, , 1922 DEFUN (reshape, args, ,
1918 "-*- texinfo -*-\n\ 1923 "-*- texinfo -*-\n\
1919 @deftypefn {Function File} {} reshape (@var{a}, @var{m}, @var{n}, @dots{})\n\ 1924 @deftypefn {Function File} {} reshape (@var{a}, @var{m}, @var{n}, @dots{})\n\
1920 @deftypefnx {Function File} {} reshape (@var{a}, @var{siz})\n\ 1925 @deftypefnx {Function File} {} reshape (@var{a}, @var{siz})\n\