diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 3d12c12b..61434bb9 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -722,7 +722,7 @@ impl> Matrix { /// Replaces each component of `self` by the result of a closure `f` applied on its components /// joined with the components from `rhs`. #[inline] - pub fn zip_apply(&mut self, rhs: Matrix, mut f: impl FnMut(N, N2) -> N) + pub fn zip_apply(&mut self, rhs: &Matrix, mut f: impl FnMut(N, N2) -> N) where N2: Scalar, R2: Dim, C2: Dim, @@ -750,7 +750,7 @@ impl> Matrix { /// Replaces each component of `self` by the result of a closure `f` applied on its components /// joined with the components from `b` and `c`. #[inline] - pub fn zip_zip_apply(&mut self, b: Matrix, c: Matrix, mut f: impl FnMut(N, N2, N3) -> N) + pub fn zip_zip_apply(&mut self, b: &Matrix, c: &Matrix, mut f: impl FnMut(N, N2, N3) -> N) where N2: Scalar, R2: Dim, C2: Dim,