Sha256: 27c95e3f15833d7481e4c702e28272dbec2a572ce8bd025691881c4db92b2015
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
/** * Annoy.rb is a Ruby binding for the Annoy (Approximate Nearest Neighbors Oh Yeah). * * Copyright (c) 2020 Atsushi Tatsuma * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "annoyext.hpp" extern "C" void Init_annoyext(void) { VALUE rb_mAnnoy = rb_define_module("Annoy"); RbAnnoyIndex<AnnoyIndexAngular, double>::define_class(rb_mAnnoy, "AnnoyIndexAngular"); RbAnnoyIndex<AnnoyIndexDotProduct, double>::define_class(rb_mAnnoy, "AnnoyIndexDotProduct"); RbAnnoyIndex<AnnoyIndexHamming, uint64_t>::define_class(rb_mAnnoy, "AnnoyIndexHamming"); RbAnnoyIndex<AnnoyIndexEuclidean, double>::define_class(rb_mAnnoy, "AnnoyIndexEuclidean"); RbAnnoyIndex<AnnoyIndexManhattan, double>::define_class(rb_mAnnoy, "AnnoyIndexManhattan"); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
annoy-rb-0.5.0 | ext/annoy/annoyext.cpp |
annoy-rb-0.4.0 | ext/annoy/annoyext.cpp |
annoy-rb-0.3.0 | ext/annoy/annoyext.cpp |