25 double* xv =
gv_calloc(n,
sizeof(
double));
26 double* yv =
gv_calloc(n,
sizeof(
double));
27 int numberofedges = 0;
29 for (i = 0; i < n; i++) {
39 for (i = 0; i < numberofedges; i++) {
49 for (i = 0; i < n; i++) {
73 for (
size_t i = 0; i < n; i++) {
74 x[i] = xx[
dim * (int)i];
75 y[i] = xx[
dim * (int)i + 1];
82 for (
size_t i = 0; i < n; i++) {
83 for (j = 1; j < delaunay[i].
nedges; j++) {
87 for (
size_t i = 0; i < n; i++) {
SparseMatrix SparseMatrix_new(size_t m, int n, size_t nz, int type, int format)
SparseMatrix SparseMatrix_from_coordinate_format(SparseMatrix A)
SparseMatrix SparseMatrix_symmetrize(SparseMatrix A, bool pattern_symmetric_only)
void SparseMatrix_delete(SparseMatrix A)
#define SparseMatrix_coordinate_form_add_entry(A, irn, jcn, val)
wrap SparseMatrix_coordinate_form_add_entry_ for type safety
Memory allocation wrappers that exit on failure.
static void * gv_calloc(size_t nmemb, size_t size)
SparseMatrix call_tri2(size_t n, int dim, double *xx)
SparseMatrix call_tri(int n, double *x)
void freeGraph(v_data *graph)
v_data * UG_graph(double *x, double *y, int n)
int * delaunay_tri(double *x, double *y, int n, int *nedges)