Sha256: ea38e81f9929ec2a234a1f6e349b77d836fa644c6d3498a3f038e2b081a734d9

Contents?: true

Size: 1006 Bytes

Versions: 4

Compression:

Stored size: 1006 Bytes

Contents

/**
 * hnswlib.rb is a Ruby binding for the Hnswlib.
 *
 * Copyright (c) 2021 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 "hnswlibext.hpp"

VALUE rb_mHnswlib;

extern "C"
void Init_hnswlibext(void) {
  rb_mHnswlib = rb_define_module("Hnswlib");
  RbHnswlibL2Space::define_class(rb_mHnswlib);
  RbHnswlibInnerProductSpace::define_class(rb_mHnswlib);
  RbHnswlibHierarchicalNSW::define_class(rb_mHnswlib);
  RbHnswlibBruteforceSearch::define_class(rb_mHnswlib);
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hnswlib-0.5.0 ext/hnswlib/hnswlibext.cpp
hnswlib-0.4.0 ext/hnswlib/hnswlibext.cpp
hnswlib-0.3.0 ext/hnswlib/hnswlibext.cpp
hnswlib-0.2.0 ext/hnswlib/hnswlibext.cpp