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);
226 OCTAVE_END_NAMESPACE(
octave)
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() const
bool is_diag_matrix() 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_perm_matrix() const
bool is_single_type() const
ComplexDiagMatrix complex_diag_matrix_value(bool force=false) const
FloatMatrix float_matrix_value(bool frc_str_conv=false) const
Matrix matrix_value(bool frc_str_conv=false) const
FloatComplexMatrix float_complex_matrix_value(bool frc_str_conv=false) const
PermMatrix perm_matrix_value() const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#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.