Expand description

Information about the available feature flags.

Default features:

  • “std”
  • “numpy”


Enabled by default

Enables usage of the standard library. Otherwise no_std_compat is used.


dfdx = { version = "...", default-features = false }

Note that allocations are necessary, so the no_std_compat dependency looks like:

no-std-compat = { version = "0.4.1", features = [ "alloc", "compat_hash" ] }


Enables using the Intel MKL libraries (assuming you installed it already) for matrix multiplication.

Linking is currently tested & verified on the following platforms:

  • Windows
  • Linux
  • macOS


dfdx = { version = "...", features = ["intel-mkl"] }
Installing Intel MKL libraries

It’s pretty easy!

You will need to install Intel MKL on your own from this page.

build.rs will fail helpfully if you don’t have the correct path/environment variables.


Enabled by default

Enables saving and loading arrays to .npy files, and saving and loading nn to .npz files.


dfdx = { version = "...", features = ["numpy"] }


Enables using all features that currently require the nightly rust compiler.


dfdx = { version = "...", features = ["nightly"] }


The library used for BLAS. Configure with crate features.