Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Goal here was to refactor the code to make it easy for us to call in our pipelines and use the intel MKL instead of the GPLed
fftw
library.init/step/free
methods. Extract from themain
class theload
andrun
methods it calls, and place in a new file10X_tsne.[h|cpp] a class that maintains state with a C++ class and has a
TSNEStateclass which has initialization and
step_tsne_bymethod along with a destructor to free resources. This is mostly cut/paste, but I made a few changes (e.g. I added a
verbose` field to only print statements if requested.extern "C"
interface to this library so it can be called from Rust.#ifdef ORIGINAL_TSNE_PROGRAM
but leave the files around to make it easier to compare things to the older state.clang-format
on the changed files. This led to some churn but I think was worth it overall.