Sha256: 33142d16a976c19cf9fcf12ae646a932d971593cabf57baa69a9e355313d8f93

Contents?: true

Size: 1011 Bytes

Versions: 5

Compression:

Stored size: 1011 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
hnswlib-0.6.1 ext/hnswlib/hnswlibext.cpp
hnswlib-0.6.0 ext/hnswlib/hnswlibext.cpp
hnswlib-0.5.3 ext/hnswlib/hnswlibext.cpp
hnswlib-0.5.2 ext/hnswlib/hnswlibext.cpp
hnswlib-0.5.1 ext/hnswlib/hnswlibext.cpp