.. _program_listing_file_src_sparsebase_feature_jaccard_weights.h: Program Listing for File jaccard_weights.h ========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/sparsebase/feature/jaccard_weights.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #include #include "sparsebase/config.h" #include "sparsebase/format/csr.h" #include "sparsebase/utils/function_matcher_mixin.h" #include "sparsebase/utils/parameterizable.h" #ifndef SPARSEBASE_PROJECT_JACCARD_WEIGHTS_H #define SPARSEBASE_PROJECT_JACCARD_WEIGHTS_H namespace sparsebase::feature { struct JaccardWeightsParams : utils::Parameters {}; template class JaccardWeights : public utils::FunctionMatcherMixin { public: typedef JaccardWeightsParams ParamsType; JaccardWeights(); JaccardWeights(ParamsType); format::Format *GetJaccardWeights(format::Format *format, std::vector, bool convert_input); #ifdef USE_CUDA static format::Format *GetJaccardWeightCUDACSR( std::vector formats, utils::Parameters *params); #endif ~JaccardWeights(); }; } // namespace sparsebase::feature #ifdef _HEADER_ONLY #include "sparsebase/feature/jaccard_weights.cc" #endif #ifdef USE_CUDA #include "sparsebase/feature/jaccard_weights_cuda.cuh" #ifdef _HEADER_ONLY #include "sparsebase/feature/jaccard_weights_cuda.cu" #endif #endif #endif // SPARSEBASE_PROJECT_JACCARD_WEIGHTS_H