Skip to content

Commit

Permalink
Add to_string method to eliminate unused function warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnbaker committed Apr 22, 2020
1 parent 66c3c89 commit 849df8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion distmat
Submodule distmat updated 1 files
+7 −1 distmat.h
5 changes: 5 additions & 0 deletions include/minocore/coreset/coreset.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ struct CoresetSampler {
std::equal(weights_.get(), weights_.get() + np_, o.weights_.get())); // They're both the same
}

std::string to_string() const {
char buf[256];
return std::string(buf, std::sprintf(buf, "CoresetSampler<>[np=%zu|k=%zu|b=%zu|SM=%s\n", np_, k_, b_, sm2str(sens_)));
}

CoresetSampler(CoresetSampler &&o) = default;
CoresetSampler(const CoresetSampler &o) = delete;
CoresetSampler(std::string s) {
Expand Down

0 comments on commit 849df8e

Please sign in to comment.