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++) {
74 for (i = 0; i < n; i++) {
76 y[i] = xx[
dim * i + 1];
83 for (i = 0; i < n; i++) {
84 for (j = 1; j < delaunay[i].
nedges; j++) {
88 for (i = 0; i < n; i++) {
SparseMatrix SparseMatrix_from_coordinate_format(SparseMatrix A)
SparseMatrix SparseMatrix_symmetrize(SparseMatrix A, bool pattern_symmetric_only)
SparseMatrix SparseMatrix_coordinate_form_add_entry(SparseMatrix A, int irn, int jcn, const void *val)
void SparseMatrix_delete(SparseMatrix A)
SparseMatrix SparseMatrix_new(int m, int n, int nz, int type, int format)
Memory allocation wrappers that exit on failure.
static void * gv_calloc(size_t nmemb, size_t size)
SparseMatrix call_tri2(int 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)