56 #if defined (HAVE_CONFIG_H)
98 qt = (qt + 1) % (
N + 1);
107 qh = (qh + 1) % (
N + 1);
112 #define Q_empty(Q, N, qh, qt) ((qh) == (qt))
117 #define LEFT(i) (((i) << 1) + 1)
119 #define RIGHT(i) (((i) << 1) + 2)
121 #define PARENT(i) (((i) - 1) >> 1)
136 if (l < size &&
A[l].deg <
A[j].deg)
141 if (
r < size &&
A[
r].deg <
A[smallest].deg)
146 std::swap (
A[j],
A[smallest]);
168 if (H[i].deg < H[p].deg)
170 std::swap (H[i], H[p]);
194 #define H_empty(H, h) ((h) == 0)
239 while (j1 < cidx[i+1] || j2 < cidx2[i+1])
259 else if (j2 == cidx2[i+1])
315 if (max_dist <
x.dist)
371 else if (ridx[l] > j)
425 DEFUN (symrcm, args, ,
452 if (args.length () != 1)
484 if (nr == 0 && nc == 0)
545 for (i = 0; i <
N; i++)
592 while (j1 < cidx[i+1] || j2 < cidx2[i+1])
609 else if (j2 == cidx2[i+1])
OCTARRAY_API T * fortran_vec(void)
Size of the specified dimension.
OCTARRAY_OVERRIDABLE_FUNC_API T & elem(octave_idx_type n)
Size of the specified dimension.
octave_idx_type * xcidx(void)
octave_idx_type * xridx(void)
Vector representing the dimensions (size) of an Array.
SparseMatrix sparse_matrix_value(bool frc_str_conv=false) const
octave_idx_type rows(void) const
octave_idx_type columns(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.
void err_square_matrix_required(const char *fcn, const char *name)
F77_RET_T const F77_INT F77_CMPLX const F77_INT F77_CMPLX * B
F77_RET_T const F77_INT const F77_INT const F77_INT F77_DBLE const F77_INT F77_DBLE const F77_INT F77_DBLE * Q
F77_RET_T const F77_INT F77_CMPLX * A
F77_RET_T const F77_INT & N
F77_RET_T const F77_DBLE * x
std::complex< double > w(std::complex< double > z, double relerr=0)
#define OCTAVE_LOCAL_BUFFER(T, buf, size)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.
static void Q_enq(CMK_Node *Q, octave_idx_type N, octave_idx_type &qt, const CMK_Node &o)
static CMK_Node Q_deq(CMK_Node *Q, octave_idx_type N, octave_idx_type &qh)
static void H_heapify_min(CMK_Node *A, octave_idx_type i, octave_idx_type size)
static void H_insert(CMK_Node *H, octave_idx_type &h, const CMK_Node &o)
#define Q_empty(Q, N, qh, qt)
static CMK_Node H_remove_min(CMK_Node *H, octave_idx_type &h, int reorg)
static octave_idx_type calc_degrees(octave_idx_type N, const octave_idx_type *ridx, const octave_idx_type *cidx, octave_idx_type *D)
static void transpose(octave_idx_type N, const octave_idx_type *ridx, const octave_idx_type *cidx, octave_idx_type *ridx2, octave_idx_type *cidx2)
static octave_idx_type find_starting_node(octave_idx_type N, const octave_idx_type *ridx, const octave_idx_type *cidx, const octave_idx_type *ridx2, const octave_idx_type *cidx2, octave_idx_type *D, octave_idx_type start)