--- a/src/nalgebra_support.rs Wed Sep 03 20:52:21 2025 -0500 +++ b/src/nalgebra_support.rs Wed Sep 03 21:03:47 2025 -0500 @@ -146,19 +146,6 @@ ShapeConstraint: StridesOk<E, M, K, S1> + StridesOk<E, M, K, S2>, { #[inline] - fn either<'b, R>( - self, - f: impl FnOnce(MyCow<'b, OMatrix<E, M, K>>) -> R, - _g: impl FnOnce(MatrixView<'b, E, M, K, Dyn, Dyn>) -> R, - ) -> R - where - Self: 'b, - { - // TODO: should not turn non-owned matrices into owned - f(MyCow::Owned(self.into_owned())) - } - - #[inline] fn eval_ref<'b, R>( &'b self, f: impl FnOnce(<MatrixDecomposition as Decomposition<Matrix<E, M, K, S1>>>::Reference<'b>) -> R, @@ -203,18 +190,6 @@ DefaultAllocator: Allocator<M, K>, ShapeConstraint: StridesOk<E, M, K, S1> + StridesOk<E, M, K, S2>, { - #[inline] - fn either<'b, R>( - self, - _f: impl FnOnce(MyCow<'b, OMatrix<E, M, K>>) -> R, - g: impl FnOnce(MatrixView<'b, E, M, K, Dyn, Dyn>) -> R, - ) -> R - where - Self: 'b, - { - g(self.as_view()) - } - fn eval_ref<'b, R>( &'b self, f: impl FnOnce(<MatrixDecomposition as Decomposition<Matrix<E, M, K, S1>>>::Reference<'b>) -> R, @@ -259,18 +234,6 @@ ShapeConstraint: StridesOk<E, M, K, S1> + StridesOk<E, M, K>, { #[inline] - fn either<'b, R>( - self, - f: impl FnOnce(MyCow<'b, OMatrix<E, M, K>>) -> R, - _g: impl FnOnce(MatrixView<'b, E, M, K, Dyn, Dyn>) -> R, - ) -> R - where - Self: 'b, - { - f(self) - } - - #[inline] fn eval_ref<'b, R>( &'b self, f: impl FnOnce(<MatrixDecomposition as Decomposition<Matrix<E, M, K, S1>>>::Reference<'b>) -> R,