pub struct DotGeneralConfig<'a> {
pub lhs_contracting_dims: &'a [usize],
pub rhs_contracting_dims: &'a [usize],
pub lhs_batch_dims: &'a [usize],
pub rhs_batch_dims: &'a [usize],
}Expand description
DotGeneral dimension configuration.
The output shape is [lhs_free..., rhs_free..., batch...], matching
tenferro’s batch-trailing col-major convention.
Fields§
§lhs_contracting_dims: &'a [usize]§rhs_contracting_dims: &'a [usize]§lhs_batch_dims: &'a [usize]§rhs_batch_dims: &'a [usize]Implementations§
Source§impl DotGeneralConfig<'_>
impl DotGeneralConfig<'_>
Sourcepub fn validate_dims_with_ranks(
&self,
lhs_rank: usize,
rhs_rank: usize,
) -> Result<(), EinsumError>
pub fn validate_dims_with_ranks( &self, lhs_rank: usize, rhs_rank: usize, ) -> Result<(), EinsumError>
Validate dimension indices for explicit operand ranks.
Sourcepub fn expected_output_shape(
&self,
lhs_shape: &[usize],
rhs_shape: &[usize],
) -> Result<Vec<usize>, EinsumError>
pub fn expected_output_shape( &self, lhs_shape: &[usize], rhs_shape: &[usize], ) -> Result<Vec<usize>, EinsumError>
Compute the output shape [lhs_free..., rhs_free..., batch...].
Trait Implementations§
Source§impl<'a> Clone for DotGeneralConfig<'a>
impl<'a> Clone for DotGeneralConfig<'a>
Source§fn clone(&self) -> DotGeneralConfig<'a>
fn clone(&self) -> DotGeneralConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DotGeneralConfig<'a>
impl<'a> Debug for DotGeneralConfig<'a>
Source§impl<'a> Hash for DotGeneralConfig<'a>
impl<'a> Hash for DotGeneralConfig<'a>
Source§impl<'a> PartialEq for DotGeneralConfig<'a>
impl<'a> PartialEq for DotGeneralConfig<'a>
impl<'a> Copy for DotGeneralConfig<'a>
impl<'a> Eq for DotGeneralConfig<'a>
impl<'a> StructuralPartialEq for DotGeneralConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for DotGeneralConfig<'a>
impl<'a> RefUnwindSafe for DotGeneralConfig<'a>
impl<'a> Send for DotGeneralConfig<'a>
impl<'a> Sync for DotGeneralConfig<'a>
impl<'a> Unpin for DotGeneralConfig<'a>
impl<'a> UnsafeUnpin for DotGeneralConfig<'a>
impl<'a> UnwindSafe for DotGeneralConfig<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more