Fix macros for nightly
This commit is contained in:
parent
532702f554
commit
532d16136b
|
@ -618,13 +618,13 @@ impl<N: ApproxEq<N>> ApproxEq<N> for DMat<N> {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn approx_eq_eps(&self, other: &DMat<N>, epsilon: &N) -> bool {
|
fn approx_eq_eps(&self, other: &DMat<N>, epsilon: &N) -> bool {
|
||||||
let zip = self.mij.iter().zip(other.mij.iter());
|
let mut zip = self.mij.iter().zip(other.mij.iter());
|
||||||
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
|
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn approx_eq_ulps(&self, other: &DMat<N>, ulps: u32) -> bool {
|
fn approx_eq_ulps(&self, other: &DMat<N>, ulps: u32) -> bool {
|
||||||
let zip = self.mij.iter().zip(other.mij.iter());
|
let mut zip = self.mij.iter().zip(other.mij.iter());
|
||||||
zip.all(|(a, b)| ApproxEq::approx_eq_ulps(a, b, ulps))
|
zip.all(|(a, b)| ApproxEq::approx_eq_ulps(a, b, ulps))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -319,13 +319,13 @@ macro_rules! dvec_impl(
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn approx_eq_eps(&self, other: &$dvec<N>, epsilon: &N) -> bool {
|
fn approx_eq_eps(&self, other: &$dvec<N>, epsilon: &N) -> bool {
|
||||||
let zip = self.as_slice().iter().zip(other.as_slice().iter());
|
let mut zip = self.as_slice().iter().zip(other.as_slice().iter());
|
||||||
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
|
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn approx_eq_ulps(&self, other: &$dvec<N>, ulps: u32) -> bool {
|
fn approx_eq_ulps(&self, other: &$dvec<N>, ulps: u32) -> bool {
|
||||||
let zip = self.as_slice().iter().zip(other.as_slice().iter());
|
let mut zip = self.as_slice().iter().zip(other.as_slice().iter());
|
||||||
zip.all(|(a, b)| ApproxEq::approx_eq_ulps(a, b, ulps))
|
zip.all(|(a, b)| ApproxEq::approx_eq_ulps(a, b, ulps))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -646,13 +646,13 @@ macro_rules! approx_eq_impl(
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn approx_eq_eps(&self, other: &$t<N>, epsilon: &N) -> bool {
|
fn approx_eq_eps(&self, other: &$t<N>, epsilon: &N) -> bool {
|
||||||
let zip = self.iter().zip(other.iter());
|
let mut zip = self.iter().zip(other.iter());
|
||||||
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
|
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn approx_eq_ulps(&self, other: &$t<N>, ulps: u32) -> bool {
|
fn approx_eq_ulps(&self, other: &$t<N>, ulps: u32) -> bool {
|
||||||
let zip = self.iter().zip(other.iter());
|
let mut zip = self.iter().zip(other.iter());
|
||||||
zip.all(|(a, b)| ApproxEq::approx_eq_ulps(a, b, ulps))
|
zip.all(|(a, b)| ApproxEq::approx_eq_ulps(a, b, ulps))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue