Registry / utility / ndarray-einsum-beta

ndarray-einsum-beta

JSON →
library0.7.0rscratesunverified

Implementation of the einsum function for the Rust ndarray crate, enabling general multidimensional tensor contraction as popularized in numpy

# Cargo.toml [dependencies] ndarray_einsum_beta = "0.7.0"
INSTALL
IMPORT
SIG · NDARRAY-EINSUM-BET
N
ndarray-einsum-beta
utilityrustv0.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

einsum
use ndarray_einsum_beta::einsum;

Performs Einstein summation on ndarray tensors

use ndarray_einsum_beta::einsum; use ndarray::arr2; fn main() { let a = arr2(&[[1, 2], [3, 4]]); let b = arr2(&[[5, 6], [7, 8]]); let result = einsum("ij,jk->ik", &[&a, &b]).unwrap(); println!("{:?}", result); }
Debug
Known issues
gotchaThis crate is in beta and may have API changes
fix
Pin to a specific version and test thoroughly
affects: >=0.7.0
Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ndarray-einsum-beta — cargo add ndarray-einsum-beta · libregistry