pub trait MatNeg: MatrixKind {
type Output: MatrixKind;
// Required method
fn mat_neg<E: Conjugate>(
mat: <Self as MatrixKind>::Ref<'_, E>,
) -> <Self::Output as MatrixKind>::Own<E::Canonical>
where E::Canonical: ComplexField;
}
Expand description
Matrix negation.
Required Associated Types§
Sourcetype Output: MatrixKind
type Output: MatrixKind
Result matrix type.
Required Methods§
Sourcefn mat_neg<E: Conjugate>(
mat: <Self as MatrixKind>::Ref<'_, E>,
) -> <Self::Output as MatrixKind>::Own<E::Canonical>where
E::Canonical: ComplexField,
fn mat_neg<E: Conjugate>(
mat: <Self as MatrixKind>::Ref<'_, E>,
) -> <Self::Output as MatrixKind>::Own<E::Canonical>where
E::Canonical: ComplexField,
Returns -mat
.
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.