26 #if defined (HAVE_CONFIG_H)
41 DEFUN (inv, args, nargout,
66 if (args.length () != 1)
102 else if (nargout > 1)
113 else if (nargout > 1)
121 else if (nargout > 1)
139 result =
m.inverse (mattyp, info, frcond, 1);
140 args(0).matrix_type (mattyp);
147 result =
m.inverse (mattyp, info, frcond, 1);
148 args(0).matrix_type (mattyp);
160 result =
m.inverse (mattyp, info, rcond, 1);
161 args(0).matrix_type (mattyp);
168 result =
m.inverse (mattyp, info, rcond, 1);
169 args(0).matrix_type (mattyp);
179 result =
m.inverse (mattyp, info, rcond, 1);
180 args(0).matrix_type (mattyp);
187 result =
m.inverse (mattyp, info, rcond, 1);
188 args(0).matrix_type (mattyp);
201 bool rcond_plus_one_eq_one =
false;
205 volatile float xrcond = frcond;
206 rcond_plus_one_eq_one = xrcond + 1.0f == 1.0f;
210 volatile double xrcond = rcond;
211 rcond_plus_one_eq_one = xrcond + 1.0 == 1.0;
214 if (nargout < 2 && (info == -1 || rcond_plus_one_eq_one))
ComplexDiagMatrix inverse(octave_idx_type &info) const
DiagMatrix inverse(void) const
FloatComplexDiagMatrix inverse(octave_idx_type &info) const
FloatDiagMatrix inverse(void) const
PermMatrix inverse(void) const
SparseMatrix sparse_matrix_value(bool frc_str_conv=false) const
bool issparse(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
octave_idx_type rows(void) const
FloatComplexDiagMatrix float_complex_diag_matrix_value(bool force=false) const
bool is_diag_matrix(void) const
octave_idx_type columns(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
SparseComplexMatrix sparse_complex_matrix_value(bool frc_str_conv=false) const
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
#define DEFALIAS(alias, name)
Macro to define an alias for another existing function name.
void err_square_matrix_required(const char *fcn, const char *name)
void err_wrong_type_arg(const char *name, const char *s)
void warn_singular_matrix(double rcond)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
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.