Cargo Features

[dependencies]
ndarray = { version = "0.16.1", default-features = false, features = ["blas", "serde", "serde-1", "test", "docs", "std", "rayon", "matrixmultiply-threading", "portable-atomic-critical-section"] }
default = std

The std feature is set by default whenever ndarray is added without default-features = false somewhere in the dependency tree.

blas

Enable blas usage
See README for more instructions

Enables cblas-sys and libc

cblas-sys:

Use via the blas crate feature

serde docs?

Enables serde

Affects arraytraits::ARRAY_FORMAT_VERSION

serde-1

Old name for the serde feature

Enables serde

test

These features are used for testing

docs = approx, rayon, serde

This feature is used for docs

Affects ndarray::doc

std default rayon?

Enables std of matrixmultiply and num-traits

Affects linalg_traits::NdFloat

rayon docs? = std

Enables rayon

Affects ndarray::parallel

matrixmultiply-threading

Enables threading of matrixmultiply

portable-atomic-critical-section

Enables critical-section of portable-atomic

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

approx docs?