[package]
edition = "2024"
rust-version = "1.89"
name = "numr"
version = "0.1.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance numerical computing with multi-backend GPU acceleration (CPU/CUDA/WebGPU)"
documentation = "https://docs.rs/numr"
readme = "README.md"
keywords = [
"tensor",
"ndarray",
"linear-algebra",
"gpu",
"fft",
]
categories = [
"science",
"mathematics",
"data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/ml-rust/numr"
[package.metadata.docs.rs]
features = [
"f16",
"sparse",
]
[features]
cpu = []
cuda = ["dep:cudarc"]
default = [
"cpu",
"rayon",
]
f16 = [
"dep:half",
"cudarc?/f16",
]
rayon = ["dep:rayon"]
sparse = []
wgpu = [
"dep:wgpu",
"dep:pollster",
]
[lib]
name = "numr"
path = "src/lib.rs"
[[test]]
name = "advanced_random_ops"
path = "tests/advanced_random_ops.rs"
[[test]]
name = "complex_ops"
path = "tests/complex_ops.rs"
[[test]]
name = "conv_ops"
path = "tests/conv_ops.rs"
[[test]]
name = "cpu_runtime"
path = "tests/cpu_runtime.rs"
[[test]]
name = "cumulative_ops"
path = "tests/cumulative_ops.rs"
[[test]]
name = "eigendecomposition_ops"
path = "tests/eigendecomposition_ops.rs"
[[test]]
name = "external_backend_api"
path = "tests/external_backend_api.rs"
[[test]]
name = "fft_ops"
path = "tests/fft_ops.rs"
[[test]]
name = "index_ops"
path = "tests/index_ops.rs"
[[test]]
name = "iterative_eigen"
path = "tests/iterative_eigen.rs"
[[test]]
name = "iterative_solvers"
path = "tests/iterative_solvers.rs"
[[test]]
name = "linalg_statistics_ops"
path = "tests/linalg_statistics_ops.rs"
[[test]]
name = "matmul_bias"
path = "tests/matmul_bias.rs"
[[test]]
name = "matrix_functions_expm"
path = "tests/matrix_functions_expm.rs"
[[test]]
name = "matrix_functions_logm"
path = "tests/matrix_functions_logm.rs"
[[test]]
name = "matrix_functions_other"
path = "tests/matrix_functions_other.rs"
[[test]]
name = "matrix_functions_sqrtm"
path = "tests/matrix_functions_sqrtm.rs"
[[test]]
name = "polynomial_ops"
path = "tests/polynomial_ops.rs"
[[test]]
name = "random_ops"
path = "tests/random_ops.rs"
[[test]]
name = "reduction_ops"
path = "tests/reduction_ops.rs"
[[test]]
name = "shape_ops"
path = "tests/shape_ops.rs"
[[test]]
name = "sort_ops"
path = "tests/sort_ops.rs"
[[test]]
name = "sparse_ops"
path = "tests/sparse_ops.rs"
[[test]]
name = "special_functions"
path = "tests/special_functions.rs"
[[test]]
name = "statistics_cov"
path = "tests/statistics_cov.rs"
[[test]]
name = "statistics_histogram"
path = "tests/statistics_histogram.rs"
[[test]]
name = "statistics_mode"
path = "tests/statistics_mode.rs"
[[test]]
name = "statistics_moments"
path = "tests/statistics_moments.rs"
[[test]]
name = "statistics_quantile"
path = "tests/statistics_quantile.rs"
[[test]]
name = "svd_ops"
path = "tests/svd_ops.rs"
[[test]]
name = "wgpu_buffer_lifetime"
path = "tests/wgpu_buffer_lifetime.rs"
[[test]]
name = "wgpu_integer_ops"
path = "tests/wgpu_integer_ops.rs"
[dependencies.bytemuck]
version = "1.24"
features = ["derive"]
[dependencies.cudarc]
version = "0.18"
features = ["cuda-version-from-build-system"]
optional = true
[dependencies.half]
version = "2.7"
features = [
"bytemuck",
"num-traits",
]
optional = true
[dependencies.num-traits]
version = "0.2"
[dependencies.parking_lot]
version = "0.12"
[dependencies.paste]
version = "1.0.15"
[dependencies.pollster]
version = "0.4"
optional = true
[dependencies.rand]
version = "0.9"
[dependencies.rand_distr]
version = "0.5"
[dependencies.rayon]
version = "1.11"
optional = true
[dependencies.rkyv]
version = "0.8"
[dependencies.smallvec]
version = "1"
[dependencies.thiserror]
version = "2.0"
[dependencies.wgpu]
version = "28.0"
optional = true
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.rand]
version = "0.9"
[profile.bench]
lto = "thin"
codegen-units = 1
[profile.release]
lto = "thin"
codegen-units = 1