26 #if defined (HAVE_CONFIG_H)
60 int nargin = args.length ();
62 if (nargin < 1 || nargin > 2)
83 tol = args(1).float_value ();
86 error (
"pinv: TOL must be greater than zero");
97 tol = args(1).double_value ();
100 error (
"pinv: TOL must be greater than zero");
116 tol = args(1).float_value ();
119 error (
"pinv: TOL must be greater than zero");
125 retval =
m.pseudo_inverse (tol);
131 retval =
m.pseudo_inverse (tol);
140 tol = args(1).double_value ();
143 error (
"pinv: TOL must be greater than zero");
149 retval =
m.pseudo_inverse (tol);
155 retval =
m.pseudo_inverse (tol);
OCTAVE_API ComplexDiagMatrix pseudo_inverse(double tol=0.0) const
OCTAVE_API DiagMatrix pseudo_inverse(double tol=0.0) const
OCTAVE_API FloatComplexDiagMatrix pseudo_inverse(float tol=0.0f) const
OCTAVE_API FloatDiagMatrix pseudo_inverse(float tol=0.0f) const
OCTAVE_API 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 isnumeric(void) 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
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
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_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.