summaryrefslogtreecommitdiff
path: root/src/gen_laplacian.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen_laplacian.c')
-rw-r--r--src/gen_laplacian.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gen_laplacian.c b/src/gen_laplacian.c
index a282564..d8f0c6d 100644
--- a/src/gen_laplacian.c
+++ b/src/gen_laplacian.c
@@ -28,8 +28,8 @@ cholmod_sparse *gen_adjacency(const finst *instance, bool dual, bool breakv,
cholmod_triplet *t =
CHOL_F(allocate_triplet)(nv + pad, nv + pad, nnz, 0, CHOLMOD_REAL, c);
- CHOL_INT *ri = (CHOL_INT *)t->i;
- CHOL_INT *ci = (CHOL_INT *)t->j;
+ int_t *ri = (int_t *)t->i;
+ int_t *ci = (int_t *)t->j;
double *ai = (double *)t->x;
t->nnz = nnz;
@@ -120,8 +120,8 @@ cholmod_sparse *gen_laplacian(const finst *instance, cholmod_common *c,
cholmod_triplet *temp_m =
CHOL_F(allocate_triplet)(num_gverts, num_gverts, nnz, 0, CHOLMOD_REAL, c);
- CHOL_INT *rowind = (CHOL_INT *)temp_m->i;
- CHOL_INT *colind = (CHOL_INT *)temp_m->j;
+ int_t *rowind = (int_t *)temp_m->i;
+ int_t *colind = (int_t *)temp_m->j;
double *acoo = (double *)temp_m->x;
temp_m->nnz = nnz;
@@ -133,8 +133,8 @@ cholmod_sparse *gen_laplacian(const finst *instance, cholmod_common *c,
}
cholmod_sparse *adjacency = gen_adjacency(instance, false, true, (int)num_gverts - (int)num_verts, c);
- CHOL_INT *ia = (CHOL_INT *)adjacency->p;
- CHOL_INT *ja = (CHOL_INT *)adjacency->i;
+ int_t *ia = (int_t *)adjacency->p;
+ int_t *ja = (int_t *)adjacency->i;
double *aa = (double *)adjacency->x;
for (unsigned int i = 0; i < num_verts; i++) {