Skip to content

Commit

Permalink
Fix indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaligarmo committed Sep 23, 2024
1 parent 1d0df0e commit 5ff7cac
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/sage/groups/perm_gps/partn_ref/data_structures.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -144,28 +144,28 @@ cdef inline void OP_make_set(OrbitPartition *OP) noexcept:
cdef int *int_array = <int *> sig_malloc(4*(n+1) * sizeof(int))
if int_array is NULL:
raise MemoryError("MemoryError allocating int_array in make_set method")
else:
OP.degree = n + 1
OP.num_cells = OP.num_cells + 1
new_parent = int_array
new_rank = int_array + (n + 1)
new_mcr = int_array + (2*n + 2)
new_size = int_array + (3 * n + 3)

memcpy(new_parent, OP.parent, n * sizeof(int))
memcpy(new_rank, OP.rank, n * sizeof(int))
memcpy(new_mcr, OP.mcr, n * sizeof(int))
memcpy(new_size, OP.size, n * sizeof(int))

new_parent[n] = n
new_rank[n] = 0
new_mcr[n] = n
new_size[n] = 1

OP.parent = new_parent
OP.rank = new_rank
OP.mcr = new_mcr
OP.size = new_size

OP.degree = n + 1
OP.num_cells = OP.num_cells + 1
new_parent = int_array
new_rank = int_array + (n + 1)
new_mcr = int_array + (2*n + 2)
new_size = int_array + (3 * n + 3)

memcpy(new_parent, OP.parent, n * sizeof(int))
memcpy(new_rank, OP.rank, n * sizeof(int))
memcpy(new_mcr, OP.mcr, n * sizeof(int))
memcpy(new_size, OP.size, n * sizeof(int))

new_parent[n] = n
new_rank[n] = 0
new_mcr[n] = n
new_size[n] = 1

OP.parent = new_parent
OP.rank = new_rank
OP.mcr = new_mcr
OP.size = new_size

cdef inline int OP_merge_list_perm(OrbitPartition *OP, int *gamma) noexcept:
"""
Expand Down

0 comments on commit 5ff7cac

Please sign in to comment.