Skip to content

Commit

Permalink
experiement with flipping the ordering for in-patch permutation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahdhn committed Sep 17, 2024
1 parent c8a191b commit fb99f6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/NDReorder/count_nnz_fillin.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ int count_nnz_fillin(const EigeMatT& eigen_mat,
Eigen::internal::permute_symm_to_fullsymm<Eigen::Lower, false>(
eigen_mat, permuted_mat, perm.indices().data());

// exportToPlainText(permuted_mat,
// std::string("C:\\Github\\Matlab_Reordering_Trial\\") +
// st + std::string(".txt"));

exportToPlainText(permuted_mat, st + std::string(".txt"));

Expand Down
3 changes: 3 additions & 0 deletions include/rxmesh/matrix/kmeans_patch.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,14 @@ struct PatchKMeans

if (m_s_separator(v)) {
v_permute(vh) = sum - m_s_index[v] - 1;
// v_permute(vh) = m_s_index[v];
} else if (m_s_partition_b_v(v)) {
v_permute(vh) = sum - s_num_sep - m_s_index[v] - 1;
// v_permute(vh) = s_num_sep + m_s_index[v];
} else if (m_s_partition_a_v(v)) {
v_permute(vh) =
sum - (s_num_sep + s_num_b) - m_s_index[v] - 1;
// v_permute(vh) = s_num_sep + s_num_b + m_s_index[v];
}
}
}
Expand Down

0 comments on commit fb99f6e

Please sign in to comment.