pub struct TensorTrain {
pub modes: Vec<usize>,
pub ranks: Vec<usize>,
pub cores: Vec<Vec<f64>>,
}Expand description
A tensor train in row-major core storage.
Fields§
§modes: Vec<usize>Mode sizes n_k.
ranks: Vec<usize>Bond ranks r₀..r_d (r₀ = r_d = 1).
cores: Vec<Vec<f64>>Cores, G_k as (r_{k−1}·n_k) × r_k row-major.
Implementations§
Source§impl TensorTrain
impl TensorTrain
Trait Implementations§
Source§impl Clone for TensorTrain
impl Clone for TensorTrain
Source§impl Debug for TensorTrain
impl Debug for TensorTrain
Source§impl PartialEq for TensorTrain
impl PartialEq for TensorTrain
impl StructuralPartialEq for TensorTrain
Auto Trait Implementations§
impl Freeze for TensorTrain
impl RefUnwindSafe for TensorTrain
impl Send for TensorTrain
impl Sync for TensorTrain
impl Unpin for TensorTrain
impl UnsafeUnpin for TensorTrain
impl UnwindSafe for TensorTrain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more