26 #if defined (HAVE_CONFIG_H)
43 #if defined (OCTAVE_ENABLE_64)
44 # define CXSPARSE_NAME(name) cs_dl ## name
46 # define CXSPARSE_NAME(name) cs_di ## name
49 #if defined (HAVE_CXSPARSE)
56 ret.
xelem (i) = p[i] + 1;
61 dmperm_internal (
bool rank,
const octave_value arg,
int nargout)
89 if (nargout <= 1 || rank)
96 if (jmatch[nr+i] >= 0)
98 retval(0) =
static_cast<double> (
r);
101 retval(0) = put_int (jmatch + nr, nc);
108 retval =
ovl (put_int (dm->p, nr), put_int (dm->q, nc),
109 put_int (dm->r, dm->nb+1), put_int (dm->s, dm->nb+1),
110 put_int (dm->cc, 5), put_int (dm->rr, 5));
125 DEFUN (dmperm, args, nargout,
189 #if defined (HAVE_CXSPARSE)
191 if (args.length () != 1)
194 return dmperm_internal (
false, args(0), nargout);
198 octave_unused_parameter (args);
199 octave_unused_parameter (nargout);
222 DEFUN (sprank, args, nargout,
237 #if defined (HAVE_CXSPARSE)
239 if (args.length () != 1)
242 return dmperm_internal (
true, args(0), nargout);
246 octave_unused_parameter (args);
247 octave_unused_parameter (nargout);
263 OCTAVE_END_NAMESPACE(
octave)
T & xelem(octave_idx_type n)
Size of the specified dimension.
octave_idx_type * xcidx()
octave_idx_type nzmax() const
Amount of storage for nonzero elements.
octave_idx_type nnz() const
Actual number of nonzero terms.
octave_idx_type * xridx()
SparseMatrix sparse_matrix_value(bool frc_str_conv=false) const
octave_idx_type rows() const
octave_idx_type columns() 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 CXSPARSE_NAME(name)
void err_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
F77_RET_T const F77_DBLE * x
suitesparse_integer * to_suitesparse_intptr(octave_idx_type *i)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.