pub struct Static;Expand description
Space where all tensors are stored statically and unboxed.
Trait Implementations§
impl Copy for Static
Source§impl Space<1> for Static
impl Space<1> for Static
type VecStore = [f64; 1]
type MatStore = [f64; 1]
type SymStore = [f64; 1]
type SymVecStore = [f64; 1]
type SymSymStore = [f64; 1]
type SymVecVecStore = [f64; 1]
Source§fn sum<const R: usize>(f: impl Fn([usize; R]) -> f64) -> f64
fn sum<const R: usize>(f: impl Fn([usize; R]) -> f64) -> f64
Sums over all indices of the given rank.
Source§fn vector(f: impl Fn([usize; 1]) -> f64) -> Tensor<N, 1, Gen, Self::VecStore>
fn vector(f: impl Fn([usize; 1]) -> f64) -> Tensor<N, 1, Gen, Self::VecStore>
Constructs an
N dimensional vector.Source§impl Space<2> for Static
impl Space<2> for Static
type VecStore = [f64; 2]
type MatStore = [f64; 4]
type SymStore = [f64; 3]
type SymVecStore = [f64; 6]
type SymSymStore = [f64; 9]
type SymVecVecStore = [f64; 12]
Source§fn sum<const R: usize>(f: impl Fn([usize; R]) -> f64) -> f64
fn sum<const R: usize>(f: impl Fn([usize; R]) -> f64) -> f64
Sums over all indices of the given rank.
Source§fn vector(f: impl Fn([usize; 1]) -> f64) -> Tensor<N, 1, Gen, Self::VecStore>
fn vector(f: impl Fn([usize; 1]) -> f64) -> Tensor<N, 1, Gen, Self::VecStore>
Constructs an
N dimensional vector.Auto Trait Implementations§
impl Freeze for Static
impl RefUnwindSafe for Static
impl Send for Static
impl Sync for Static
impl Unpin for Static
impl UnsafeUnpin for Static
impl UnwindSafe for Static
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