lance_linalg/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright The Lance Authors

//! High-performance [Apache Arrow](https://docs.rs/arrow/latest/arrow/) native Linear Algebra algorithms.

#![deny(clippy::unused_async)]
#![cfg_attr(target_arch = "loongarch64", feature(stdarch_loongarch))]

use arrow_schema::ArrowError;

mod clustering;
pub mod distance;
pub mod kernels;
pub mod kmeans;
pub mod simd;

#[cfg(test)]
pub(crate) mod test_utils;

pub use clustering::Clustering;

type Error = ArrowError;
pub type Result<T> = std::result::Result<T, Error>;