Closed yurivict closed 3 weeks ago
This example from README:
from random import randint import numpy as np import simsimd as simd length1, length2 = randint(1, 100), randint(1, 100) vec1 = np.random.randint(0, 1000, length1).astype(np.uint16) vec2 = np.random.randint(0, 1000, length2).astype(np.uint16) slow_result = np.intersect1d(vec1, vec2) fast_result = simd.intersect(vec1, vec2) assert slow_result == fast_result
compares these 2 values:
slow_result=[299 926] fast_result=0.0
n/a
5.9.6
FreeBSD 14.1
x86
Python bindings
No response
.git
You are right, the length of the NumPy result should be taken. Will patch soon. Thanks!
Describe the bug
This example from README:
compares these 2 values:
Steps to reproduce
n/a
Expected behavior
n/a
SimSIMD version
5.9.6
Operating System
FreeBSD 14.1
Hardware architecture
x86
Which interface are you using?
Python bindings
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