Closed SheldonFung98 closed 6 months ago
Hey @SheldonFung98! You are creating and index with 256 dimensions and passing a pointer to a buffer with only 3 floats. That's undefined behavior.
error: ‘struct unum::usearch::index_gt<float, long unsigned int, unsigned int, unum::usearch::aligned_allocator_gt<>, unum::usearch::memory_mapping_allocator_gt<64> >::match_t’ has no member named ‘element’
As for this, can you please open a PR patching the documentation? Much appreciated 🤗
Appreciate it! I will!
Describe the bug
Thanks for the hard work. I run the provided C++ example:
It gives an error saying:
error: ‘struct unum::usearch::index_gt<float, long unsigned int, unsigned int, unum::usearch::aligned_allocator_gt<>, unum::usearch::memory_mapping_allocator_gt<64> >::match_t’ has no member named ‘element’
Then I did some modification:
It compile successfully, however the output gives:
Could you help me fix it? Also, is it possible that you could provide an example of using C++ Eigen lib?
Steps to reproduce
At the repo root folder, I add a test.cpp file:
Then compile:
Expected behavior
Expect to give correct distance value.
USearch version
v2.12.0
Operating System
Ubuntu 22.04
Hardware architecture
x86
Which interface are you using?
C++ implementation
Contact Details
No response
Are you open to being tagged as a contributor?
.git
history as a contributorIs there an existing issue for this?
Code of Conduct