tensor_rs/
lib.rs

1//! A simple tensor implementation
2//! =============================================================
3//!
4//!
5//! Introduction
6//! ------------
7//! This is a type less tensor library with the option to use
8//! built-in operators or third-party acceleration library.
9//! Some API for tensor to implement are listed in [tensor_trait].
10//! [typed_tensor] is an enum to cover the tensor type information for [tensor].
11//!
12//! Currently, there are over 80 methods for [tensor].
13//!
14//! Install
15//! ------------
16//! cargo install tensor-rs
17//!
18//! Example
19//! ------------
20//! The following example shows a dip to using the package.
21//!
22//!     use tensor_rs::tensor_impl::gen_tensor::*;
23//!     let m1 = GenTensor::<f64>::new_raw(&vec![0.; 3*5*2], &vec![3,5,2]);
24//!     assert_eq!(m1.stride(), vec![10,2,1]);
25//!
26//! Licese
27//! ------------
28
29
30pub mod tensor;
31pub mod quaternion;
32pub mod typed_tensor;
33pub mod tensor_trait;
34pub mod tensor_impl;
35#[cfg(feature = "use-serde")]
36pub mod serde;