#![deny(missing_docs)]
#![doc = env!("CARGO_PKG_DESCRIPTION")]
pub mod allocator;
#[cfg(feature = "bincode")]
pub mod bincode;
#[cfg(feature = "serde")]
pub mod serde;
pub mod storage;
pub mod tensor;
pub mod view;
pub use crate::allocator::{CpuAllocator, TensorAllocator};
pub(crate) use crate::tensor::get_strides_from_shape;
pub use crate::tensor::{Tensor, TensorError};
pub type Tensor1<T, A> = Tensor<T, 1, A>;
pub type Tensor2<T, A> = Tensor<T, 2, A>;
pub type Tensor3<T, A> = Tensor<T, 3, A>;
pub type Tensor4<T, A> = Tensor<T, 4, A>;
pub type CpuTensor2<T> = Tensor2<T, CpuAllocator>;