26 #if defined (HAVE_CONFIG_H)
58 int nargin = args.length ();
60 if (nargin < 1 || nargin > 2)
78 tol = args(1).float_value ();
81 error (
"pinv: TOL must be greater than zero");
92 tol = args(1).double_value ();
95 error (
"pinv: TOL must be greater than zero");
111 tol = args(1).float_value ();
114 error (
"pinv: TOL must be greater than zero");
120 retval =
m.pseudo_inverse (tol);
126 retval =
m.pseudo_inverse (tol);
135 tol = args(1).double_value ();
138 error (
"pinv: TOL must be greater than zero");
144 retval =
m.pseudo_inverse (tol);
150 retval =
m.pseudo_inverse (tol);
ComplexDiagMatrix pseudo_inverse(double tol=0.0) const
DiagMatrix pseudo_inverse(double tol=0.0) const
FloatComplexDiagMatrix pseudo_inverse(float tol=0.0f) const
FloatDiagMatrix pseudo_inverse(float tol=0.0f) const
PermMatrix inverse(void) const
DiagMatrix diag_matrix_value(bool force=false) const
FloatDiagMatrix float_diag_matrix_value(bool force=false) const
ComplexMatrix complex_matrix_value(bool frc_str_conv=false) const
FloatComplexDiagMatrix float_complex_diag_matrix_value(bool force=false) const
bool is_diag_matrix(void) const
ComplexDiagMatrix complex_diag_matrix_value(bool force=false) const
FloatMatrix float_matrix_value(bool frc_str_conv=false) const
PermMatrix perm_matrix_value(void) const
bool is_single_type(void) const
Matrix matrix_value(bool frc_str_conv=false) const
bool is_perm_matrix(void) const
FloatComplexMatrix float_complex_matrix_value(bool frc_str_conv=false) const
bool iscomplex(void) const
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
void err_wrong_type_arg(const char *name, const char *s)
octave_value::octave_value(const Array< char > &chm, char type) return retval
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.