Cargo Features

[dependencies]
ndarray = { version = "0.15.6", default-features = false, features = ["blas", "serde-1", "test", "docs", "std", "rayon", "matrixmultiply-threading"] }
default = std

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

blas = cblas-sys, libc

Enable blas usage
See README for more instructions

serde-1 = serde

Old name for the serde feature

test

These features are used for testing

docs = approx, approx-0_5, 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? = rayon_, std

Affects ndarray::parallel

matrixmultiply-threading

Enables threading of matrixmultiply

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?

Enables approx ^0.4

approx-0_5 docs?

Enables approx

cblas-sys blas?

Enables cblas-sys

Use via the blas crate feature!

libc blas?
serde docs? serde-1?

Affects arraytraits::ARRAY_FORMAT_VERSION

rayon_ rayon?

Enables rayon

Use via the rayon crate feature!