Trait MatAdd

Source
pub trait MatAdd<Rhs: MatrixKind>: MatrixKind {
    type Output: MatrixKind;

    // Required method
    fn mat_add<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 addition.

Required Associated Types§

Source

type Output: MatrixKind

Result matrix type.

Required Methods§

Source

fn mat_add<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.

Implementors§