src/nalgebra_support.rs

branch
dev
changeset 173
102421d462d1
parent 172
73608862ef54
child 174
53ab61a41d70
--- 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,

mercurial