Skip to content

Commit

Permalink
fix conversion warnig (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth authored Aug 30, 2024
1 parent 0274d40 commit 169f2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdi/dimensionality_reduction/hierarchical_sne_inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ namespace hdi {
std::vector<std::unordered_map<unsigned_int_type, scalar_type>> influence;
hsne.getInfluenceOnDataPoint(pnt_id, influence);

res = std::tuple<unsigned_int_type, int_type, scalar_type>(_cluster_tree.size() - 1, -1, 1);
res = std::tuple<unsigned_int_type, int_type, scalar_type>(static_cast<unsigned_int_type>(_cluster_tree.size() - 1), -1, 1.0f);
std::vector<unsigned_int_type> clusters_to_analyze(_cluster_tree[_cluster_tree.size() - 1].size());
std::iota(clusters_to_analyze.begin(), clusters_to_analyze.end(), 0);

Expand Down

0 comments on commit 169f2b1

Please sign in to comment.