-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Change the centroids type to MatType instead of Mat<double> #3568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
rcurtin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here look good to me too, but I do think it's worth adding a very simple test for RangeSearch and DBSCAN just to ensure they can work with arma::fmat and float as ElemType. You could even adapt one of the simple existing tests from a one-type TEST_CASE() to a multi-type TEMPLATE_TEST_CASE().
Signed-off-by: Omar Shrit <[email protected]>
Signed-off-by: Omar Shrit <[email protected]>
|
@rcurtin Tests have been added, this one should be good to go and for review 👍 |
Signed-off-by: Omar Shrit <[email protected]>
rcurtin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test---the changes are looking good. Just some small comments. I'm excited about properly supporting alternate matrix types for DBSCAN... this will make the documentation task much easier too. 😄
Signed-off-by: Omar Shrit <[email protected]>
rcurtin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me---just a couple small style comments. Hopefully we can fix FloatKDTree soon 😄
| //! Easy access to the MatType. | ||
| typedef typename RangeSearchType::Mat MatType; | ||
| //! Easy access to Element Type of the matrix. | ||
| typedef typename RangeSearchType::Mat::elem_type ElemType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make sure to write in the documentation that specifying MatType inside of RangeSearchType is the way to do it for DBSCAN... maybe it's a little awkward, but until we think of something better, it's better than having to specify MatType in two places. 👍
Co-authored-by: Ryan Curtin <[email protected]>
Co-authored-by: Ryan Curtin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second approval provided automatically after 24 hours. 👍
No description provided.