lance_linalg/lib.rs
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright The Lance Authors
3
4//! High-performance [Apache Arrow](https://docs.rs/arrow/latest/arrow/) native Linear Algebra algorithms.
5
6#![deny(clippy::unused_async)]
7#![cfg_attr(target_arch = "loongarch64", feature(stdarch_loongarch))]
8
9use arrow_schema::ArrowError;
10
11mod clustering;
12pub mod distance;
13pub mod kernels;
14pub mod kmeans;
15pub mod simd;
16
17#[cfg(test)]
18pub(crate) mod test_utils;
19
20pub use clustering::Clustering;
21
22type Error = ArrowError;
23pub type Result<T> = std::result::Result<T, Error>;