Skip to content

Commit

Permalink
Add some docs; WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
oracleofnj committed May 25, 2019
1 parent 5c594ac commit 84141f9
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 85 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ndarray_einsum_beta"
version = "0.2.0"
version = "0.2.1"
authors = ["oracleofnj <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
15 changes: 11 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,28 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! The `ndarray_einsum` crate implements the `einsum` function, originally
//! implemented for numpy by Mark Wiebe and subsequently reimplemented for
//! other tensor libraries such as Tensorflow and PyTorch. einsum (Einstein summation)
//! implements general multidimensional tensor contraction. Many linear algebra operations
//! and generalizations of those operations can be expressed as special cases of tensor
//! contraction. Examples include matrix multiplication, matrix trace, vector dot product,
//! tensor Hadamard [element-wise] product, axis permutation, outer product, batch
//! matrix multiplication, bilinear transformations, and many more.
use std::collections::HashMap;

use ndarray::prelude::*;
use ndarray::{Data, IxDyn, LinalgScalar};

mod validation;
pub use validation::{
einsum_path, validate, validate_and_optimize_order, validate_and_size, validate_and_size_from_shapes,
Contraction, OutputSize, SizedContraction,
einsum_path, validate, validate_and_optimize_order, validate_and_size,
validate_and_size_from_shapes, Contraction, SizedContraction,
};

mod optimizers;
pub use optimizers::{
generate_optimized_order, ContractionOrder, OperandNumPair,
OptimizationMethod,
generate_optimized_order, ContractionOrder, OperandNumPair, OptimizationMethod,
};

mod contractors;
Expand Down
Loading

0 comments on commit 84141f9

Please sign in to comment.