41 @deftypefn {Built-in Function} {} pinv (@var{x})\n\
42 @deftypefnx {Built-in Function} {} pinv (@var{x}, @var{tol})\n\
43 Return the pseudoinverse of @var{x}.\n\
45 Singular values less than @var{tol} are ignored.\n\
47 If the second argument is omitted, it is taken to be\n\
50 tol = max (size (@var{x})) * sigma_max (@var{x}) * eps,\n\
54 where @code{sigma_max (@var{x})} is the maximal singular value of @var{x}.\n\
59 int nargin = args.
length ();
61 if (nargin < 1 || nargin > 2)
73 else if (arg_is_empty > 0)
84 tol = args(1).float_value ();
91 error (
"pinv: TOL must be greater than zero");
104 tol = args(1).double_value ();
111 error (
"pinv: TOL must be greater than zero");
129 tol = args(1).float_value ();
136 error (
"pinv: TOL must be greater than zero");
163 tol = args(1).double_value ();
170 error (
"pinv: TOL must be greater than zero");
FloatComplexDiagMatrix float_complex_diag_matrix_value(bool force=false) const
bool is_real_type(void) const
void gripe_wrong_type_arg(const char *name, const char *s, bool is_error)
octave_idx_type rows(void) const
FloatComplexMatrix float_complex_matrix_value(bool frc_str_conv=false) const
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
void error(const char *fmt,...)
bool is_perm_matrix(void) const
DiagMatrix pseudo_inverse(double tol=0.0) const
int empty_arg(const char *, octave_idx_type nr, octave_idx_type nc)
ComplexDiagMatrix pseudo_inverse(double tol=0.0) const
ComplexDiagMatrix complex_diag_matrix_value(bool force=false) const
FloatComplexMatrix pseudo_inverse(float tol=0.0) const
octave_idx_type columns(void) const
FloatComplexDiagMatrix pseudo_inverse(float tol=0.0f) const
PermMatrix inverse(void) const
FloatDiagMatrix float_diag_matrix_value(bool force=false) const
bool is_complex_type(void) const
octave_idx_type length(void) const
Matrix matrix_value(bool frc_str_conv=false) const
DiagMatrix diag_matrix_value(bool force=false) const
FloatDiagMatrix pseudo_inverse(float tol=0.0f) const
ComplexMatrix pseudo_inverse(double tol=0.0) const
ComplexMatrix complex_matrix_value(bool frc_str_conv=false) const
FloatMatrix float_matrix_value(bool frc_str_conv=false) const
PermMatrix perm_matrix_value(void) const
bool is_single_type(void) const
bool is_diag_matrix(void) const
Matrix pseudo_inverse(double tol=0.0) const
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))
FloatMatrix pseudo_inverse(float tol=0.0) const