comparison src/data.cc @ 8458:d254a21e0120

reimplement full as method of octave_base_value
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 12 Jan 2009 13:06:06 +0100
parents 3292bd1bbaa4
children d17874a6f161
comparison
equal deleted inserted replaced
8457:c72207960242 8458:d254a21e0120
4582 print_usage (); 4582 print_usage ();
4583 4583
4584 return retval; 4584 return retval;
4585 } 4585 }
4586 4586
4587 DEFUN (full, args, ,
4588 "-*- texinfo -*-\n\
4589 @deftypefn {Loadable Function} {@var{FM} =} full (@var{SM})\n\
4590 returns a full storage matrix from a sparse, diagonal, permutation matrix or a range.\n\
4591 @seealso{sparse}\n\
4592 @end deftypefn")
4593 {
4594 octave_value retval;
4595
4596 if (args.length () == 1)
4597 retval = args(0).full_value ();
4598 else
4599 print_usage ();
4600
4601 return retval;
4602 }
4603
4587 // Compute various norms of the vector X. 4604 // Compute various norms of the vector X.
4588 4605
4589 DEFUN (norm, args, , 4606 DEFUN (norm, args, ,
4590 "-*- texinfo -*-\n\ 4607 "-*- texinfo -*-\n\
4591 @deftypefn {Function File} {} norm (@var{a}, @var{p}, @var{opt})\n\ 4608 @deftypefn {Function File} {} norm (@var{a}, @var{p}, @var{opt})\n\