Skip to main content

CrossProduct

Trait CrossProduct 

Source
pub trait CrossProduct<T> {
    type Output;

    // Required method
    fn cross(self, other: T) -> Self::Output;
}
Expand description

The cross product of two rank-1 tensors.

Required Associated Types§

Source

type Output

The specific return type.

Required Methods§

Source

fn cross(self, other: T) -> Self::Output

Returns the cross product with another rank-1 tensor.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<const I: usize> CrossProduct<&TensorRank1<3, I>> for &TensorRank1<3, I>

Source§

impl<const I: usize> CrossProduct<TensorRank1<3, I>> for &TensorRank1<3, I>