summaryrefslogtreecommitdiff
path: root/src/gen_laplacian.c
diff options
context:
space:
mode:
authorpants <jaron@kent-dobias.com>2016-08-31 11:57:40 -0400
committerpants <jaron@kent-dobias.com>2016-08-31 11:57:40 -0400
commit0f6782c9e5a9171d69d8e62dff33a558ba542d58 (patch)
tree79ebe235b2c9fb957946428e87d2629f07dfde10 /src/gen_laplacian.c
parentc2164e4a38b79c8a02bd7c0f4481f222c7b4dae6 (diff)
downloadfuse_networks-0f6782c9e5a9171d69d8e62dff33a558ba542d58.tar.gz
fuse_networks-0f6782c9e5a9171d69d8e62dff33a558ba542d58.tar.bz2
fuse_networks-0f6782c9e5a9171d69d8e62dff33a558ba542d58.zip
did some refactoring
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++) {