35 @deftypefn {Built-in Function} {@var{c} =} rcond (@var{A})\n\
36 Compute the 1-norm estimate of the reciprocal condition number as returned\n\
39 If the matrix is well-conditioned then @var{c} will be near 1 and if the\n\
40 matrix is poorly conditioned it will be close to 0.\n\
42 The matrix @var{A} must not be sparse. If the matrix is sparse then\n\
43 @code{condest (@var{A})} or @code{rcond (full (@var{A}))} should be used\n\
45 @seealso{cond, condest}\n\
50 int nargin = args.
length ();
54 else if (args(0).is_sparse_type ())
55 error (
"rcond: for sparse matrices use 'rcond (full (a))' or 'condest (a)' instead");
56 else if (args(0).is_single_type ())
58 if (args(0).is_complex_type ())
62 retval = m.
rcond (mattyp);
63 args(0).matrix_type (mattyp);
69 retval = m.
rcond (mattyp);
70 args(0).matrix_type (mattyp);
73 else if (args(0).is_complex_type ())
77 retval = m.
rcond (mattyp);
78 args(0).matrix_type (mattyp);
82 Matrix m = args(0).matrix_value ();
84 retval = m.
rcond (mattyp);
85 args(0).matrix_type (mattyp);
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
void error(const char *fmt,...)
octave_idx_type length(void) const