pub trait MatSub<Rhs: MatrixKind>: MatrixKind {
type Output: MatrixKind;
// Required method
fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <Rhs as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>;
}
Expand description
Matrix subtraction.
Required Associated Types§
Sourcetype Output: MatrixKind
type Output: MatrixKind
Result matrix type.
Required Methods§
Sourcefn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>(
lhs: <Self as MatrixKind>::Ref<'_, LhsE>,
rhs: <Rhs as MatrixKind>::Ref<'_, RhsE>,
) -> <Self::Output as MatrixKind>::Own<E>
fn mat_sub<E: ComplexField, LhsE: Conjugate<Canonical = E>, RhsE: Conjugate<Canonical = E>>( lhs: <Self as MatrixKind>::Ref<'_, LhsE>, rhs: <Rhs as MatrixKind>::Ref<'_, RhsE>, ) -> <Self::Output as MatrixKind>::Own<E>
Returns lhs - rhs
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.