uttarayan21 df17c36193
Some checks failed
build / checks-matrix (push) Successful in 9m57s
build / codecov (push) Failing after 10m39s
docs / docs (push) Failing after 29m22s
build / checks-build (push) Has been cancelled
feat: clamp the cosine similarity values from 0 to 1
2025-08-28 13:53:42 +05:30
2025-06-23 15:38:28 +05:30
2025-06-23 15:38:28 +05:30
2025-06-23 15:38:28 +05:30
2025-06-23 15:21:17 +05:30

ndarray-math

Additional math operations for ndarray

  1. Cosine Similarity
use ndarray::*;
use ndarray_math::*;
fn test_orthogonal_vectors() {
    let a = array![1.0, 0.0, 0.0];
    let b = array![0.0, 1.0, 0.0];
    assert_eq!(a.cosine_similarity(b).unwrap(), 0.0);
}
Description
No description provided
Readme 64 KiB
Languages
Rust 66.5%
Nix 33.5%