diff -r 2b13f8a0c8ba -r 593912dc3293 src/nalgebra_support.rs --- a/src/nalgebra_support.rs Mon May 12 20:40:14 2025 -0500 +++ b/src/nalgebra_support.rs Mon May 12 23:29:17 2025 -0500 @@ -275,12 +275,16 @@ impl HasDual for Vector where M: Dim, - S: Storage + Clone, + S: StorageMut + Clone, E: Float + Scalar + Zero + One + RealField, DefaultAllocator: Allocator, { // TODO: Doesn't work with different storage formats. - type DualSpace = Self; + type DualSpace = Vector; + + fn dual_origin(&self) -> OVector { + OVector::zeros_generic(M::from_usize(self.len()), Const) + } } impl Norm for Vector