SameDimension in nalgebra::base::constraint - Rust
Description: Constraints D1 and D2 to be equivalent, where they both designate dimensions of algebraic entities (e.g. square matrices).
Keywords: rust, rustlang, rust-lang, SameDimension

# Trait nalgebra::base::constraint::SameDimension

source ·

    pub trait SameDimension<D1: Dim, D2: Dim>: SameNumberOfRows<D1, D2> + SameNumberOfColumns<D1, D2> {
        type Representative: Dim;
    }

Expand description

Constraints D1 and D2 to be equivalent, where they both designate dimensions of algebraic entities (e.g. square matrices).

## Required Associated Types§

source

#### type Representative: Dim

This is either equal to `D1` or `D2`, always choosing the one (if any) which is a type-level constant.

## Implementors§

source§

### impl<D: Dim> SameDimension<D, D> for ShapeConstraint

§

#### type Representative = D

source§

### impl<D: DimName> SameDimension<Dyn, D> for ShapeConstraint

§

#### type Representative = D

source§

### impl<D: DimName> SameDimension<D, Dyn> for ShapeConstraint

§

#### type Representative = D