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);
240 OCTAVE_END_NAMESPACE(
octave)
ComplexDET determinant() const
FloatComplexDET determinant() const
FloatDET determinant() const
octave_idx_type determinant() const
void resize(octave_idx_type n, const octave_value &rfv=octave_value())
bool is_diag_matrix() const
SparseMatrix sparse_matrix_value(bool frc_str_conv=false) const
DiagMatrix diag_matrix_value(bool force=false) const
octave_idx_type rows() 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
octave_idx_type columns() 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
SparseComplexMatrix sparse_complex_matrix_value(bool frc_str_conv=false) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#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.