Modify PartialEq for Matrix to allow comparison with all types of Matrix
This commit is contained in:
parent
2b8410e08b
commit
50ea55e877
|
@ -1344,10 +1344,15 @@ where
|
||||||
S: Storage<N, R, C>,
|
S: Storage<N, R, C>,
|
||||||
{}
|
{}
|
||||||
|
|
||||||
impl<N, R: Dim, C: Dim, S> PartialEq for Matrix<N, R, C, S>
|
impl<N, R, R2, C, C2, S, S2> PartialEq<Matrix<N, R2, C2, S2>> for Matrix<N, R, C, S>
|
||||||
where
|
where
|
||||||
N: Scalar,
|
N: Scalar + PartialEq,
|
||||||
|
C: Dim + PartialEq<C2>,
|
||||||
|
C2: Dim,
|
||||||
|
R: Dim + PartialEq<R2>,
|
||||||
|
R2: Dim,
|
||||||
S: Storage<N, R, C>,
|
S: Storage<N, R, C>,
|
||||||
|
S2: Storage<N, R2, C2>
|
||||||
{
|
{
|
||||||
#[inline]
|
#[inline]
|
||||||
fn eq(&self, right: &Matrix<N, R2, C2, S2>) -> bool {
|
fn eq(&self, right: &Matrix<N, R2, C2, S2>) -> bool {
|
||||||
|
|
Loading…
Reference in New Issue