Trait MatNeg

Source
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§

Source

type Output: MatrixKind

Result matrix type.

Required Methods§

Source

fn mat_neg<E: Conjugate>( mat: <Self as MatrixKind>::Ref<'_, E>, ) -> <Self::Output as MatrixKind>::Own<E::Canonical>

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.

Implementors§