From 6b9181e2d254c2e44dec591354ad1979a63e5760 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Mon, 18 Nov 2024 21:44:19 +0900 Subject: [PATCH] Add a feature to turn on/off blas backend ndarray by default turns off blas backend, but ndarray-linalg turns it on by default and there is no way to turn it off. This change adds a cargo feature to control it. It's a default feature, so users who don't want to use blas backend need `default-features = false` in their Cargo.toml. --- ndarray-linalg/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ndarray-linalg/Cargo.toml b/ndarray-linalg/Cargo.toml index e06fa675..c904fe6d 100644 --- a/ndarray-linalg/Cargo.toml +++ b/ndarray-linalg/Cargo.toml @@ -13,7 +13,8 @@ readme = "../README.md" categories = ["algorithms", "science"] [features] -default = [] +default = ["blas"] +blas = ["ndarray/blas"] netlib = ["lax/netlib"] openblas = ["lax/openblas"] @@ -38,7 +39,7 @@ thiserror = "1.0.24" [dependencies.ndarray] version = "0.15.2" -features = ["blas", "approx", "std"] +features = ["approx", "std"] default-features = false [dependencies.lax]