From 0f6782c9e5a9171d69d8e62dff33a558ba542d58 Mon Sep 17 00:00:00 2001 From: pants Date: Wed, 31 Aug 2016 11:57:40 -0400 Subject: did some refactoring --- src/gen_laplacian.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gen_laplacian.c') 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++) { -- cgit v1.2.3-70-g09d2