1
0
mirror of https://github.com/tensorchord/pgvecto.rs.git synced 2025-07-30 19:23:05 +03:00

fix: remove ctor (#339)

Signed-off-by: usamoi <usamoi@outlook.com>
This commit is contained in:
Usamoi
2024-02-02 18:37:07 +08:00
committed by GitHub
parent 7ec3c88c1e
commit 4eb1f87ae6
9 changed files with 28 additions and 26 deletions

View File

@ -2,6 +2,7 @@
#[test]
fn test_v_f16_cosine() {
detect::initialize();
const EPSILON: f32 = f16::EPSILON.to_f32_const();
use half::f16;
unsafe fn v_f16_cosine(a: *const u16, b: *const u16, n: usize) -> f32 {
@ -46,6 +47,7 @@ fn test_v_f16_cosine() {
#[test]
fn test_v_f16_dot() {
detect::initialize();
const EPSILON: f32 = 1.0f32;
use half::f16;
unsafe fn v_f16_dot(a: *const u16, b: *const u16, n: usize) -> f32 {
@ -86,6 +88,7 @@ fn test_v_f16_dot() {
#[test]
fn test_v_f16_sl2() {
detect::initialize();
const EPSILON: f32 = 1.0f32;
use half::f16;
unsafe fn v_f16_sl2(a: *const u16, b: *const u16, n: usize) -> f32 {