26 #if defined (HAVE_CONFIG_H)
50 #define MAYBE_CAST(VAR, CLASS) \
51 const CLASS *VAR = (arg.type_id () == CLASS::static_type_id () \
52 ? dynamic_cast<const CLASS *> (&arg.get_rep ()) \
55 DEFUN (det, args, nargout,
72 if (args.length () != 1)
146 FloatDET det =
m.determinant (mtype, info, rcond);
147 retval(0) = (info == -1 ? 0.0f : det.
value ());
150 rep->matrix_type (mtype);
165 rep->matrix_type (mtype);
179 DET det =
m.determinant (info, rcond);
180 retval(0) = (info == -1 ? 0.0 : det.
value ());
188 MatrixType mtype = (rep ? rep -> matrix_type ()
190 DET det =
m.determinant (mtype, info, rcond);
191 retval(0) = (info == -1 ? 0.0 : det.
value ());
194 rep->matrix_type (mtype);
207 retval(0) = (info == -1 ?
Complex (0.0) : det.
value ());
215 MatrixType mtype = (rep ? rep -> matrix_type ()
217 ComplexDET det =
m.determinant (mtype, info, rcond);
218 retval(0) = (info == -1 ?
Complex (0.0) : det.
value ());
221 rep->matrix_type (mtype);
OCTAVE_API double rcond(void) const
OCTAVE_API ComplexDET determinant(void) const
OCTAVE_API DET determinant(void) const
OCTAVE_API double rcond(void) const
OCTAVE_API FloatComplexDET determinant(void) const
OCTAVE_API float rcond(void) const
OCTAVE_API FloatDET determinant(void) const
OCTAVE_API float rcond(void) const
OCTAVE_API octave_idx_type determinant(void) const
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
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
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.
#define MAYBE_CAST(VAR, CLASS)
void err_square_matrix_required(const char *fcn, const char *name)
void err_wrong_type_arg(const char *name, const char *s)
std::complex< double > Complex
std::complex< float > FloatComplex
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.