Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasberent committed Apr 26, 2024
1 parent e1c5b58 commit 95b8eac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions src_cpp/lsd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace ldpc::lsd {
return indices;
}

// TODO this should probably become a class
// TODO this should probably become a class?
struct LsdCluster {
ldpc::bp::BpSparse &pcm;
int cluster_id;
Expand All @@ -41,7 +41,6 @@ namespace ldpc::lsd {
tsl::robin_set<int> enclosed_syndromes;
std::shared_ptr<std::vector<LsdCluster*>> global_check_membership; // store which cluster a check belongs to
std::shared_ptr<std::vector<LsdCluster*>> global_bit_membership; // store which cluster a check belongs to
// LsdCluster **global_bit_membership; // store which cluster a bit belongs to
tsl::robin_set<LsdCluster *> merge_list;
gf2dense::CscMatrix cluster_pcm;
std::vector<uint8_t> cluster_pcm_syndrome;
Expand Down Expand Up @@ -547,8 +546,6 @@ namespace ldpc::lsd {
std::vector<LsdCluster *> invalid_clusters;
auto global_bit_membership = std::make_shared<std::vector<LsdCluster*>>(std::vector<LsdCluster*>(this->pcm.n));
auto global_check_membership = std::make_shared<std::vector<LsdCluster*>>(std::vector<LsdCluster*>(this->pcm.m));
// auto **global_bit_membership = new LsdCluster *[pcm.n]();
// auto **global_check_membership = new LsdCluster *[pcm.m]();
// timestep to added bits history for stats
auto *global_timestep_bits_history = new std::unordered_map<int, std::unordered_map<int, std::vector<int>>>{};
auto timestep = 0;
Expand Down Expand Up @@ -609,7 +606,6 @@ namespace ldpc::lsd {
}
}
}
// delete cl; //delete the cluster now that we have the solution.
}
} else {
this->statistics.lsd_order = lsd_order;
Expand Down
8 changes: 4 additions & 4 deletions src_python/ldpc/bplsd_decoder/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class BpLsdDecoder(BpDecoderBase):
@lsd_method.setter
def lsd_method(self, method: Union[str, int, float]) -> None:
"""
Sets the OSD method used.
Sets the LSD method used. That is, the OSD method per cluster.
Parameters
----------
Expand All @@ -135,7 +135,7 @@ class BpLsdDecoder(BpDecoderBase):
@property
def lsd_order(self) -> int:
"""
The OSD order used.
The LSD order used.
Returns
-------
Expand All @@ -147,7 +147,7 @@ class BpLsdDecoder(BpDecoderBase):
@lsd_order.setter
def lsd_order(self, order: int) -> None:
"""
Set the order for the OSD method.
Set the order for the LSD method.
Parameters
----------
Expand All @@ -162,7 +162,7 @@ class BpLsdDecoder(BpDecoderBase):
Warns
-----
UserWarning
If the OSD method is 'OSD_E' and the order is greater than 15.
If the LSD method is 'OSD_E' and the order is greater than 15.
"""

0 comments on commit 95b8eac

Please sign in to comment.