pub trait SingletonContractor<A>: Debug {
// Required method
fn contract_singleton<'a, 'b>(
&self,
tensor: &'b ArrayViewD<'a, A>,
) -> ArrayD<A>
where A: Clone + LinalgScalar,
'a: 'b;
}Expand description
let new_array = obj.contract_singleton(tensor_view);
All singleton contractions should implement this trait. It returns a new owned ArrayD.
Required Methods§
fn contract_singleton<'a, 'b>(&self, tensor: &'b ArrayViewD<'a, A>) -> ArrayD<A>where
A: Clone + LinalgScalar,
'a: 'b,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".