| 593 } |
593 } |
| 594 } |
594 } |
| 595 |
595 |
| 596 impl<F: Float, const N: usize> HasDual<F> for Loc<N, F> { |
596 impl<F: Float, const N: usize> HasDual<F> for Loc<N, F> { |
| 597 type DualSpace = Self; |
597 type DualSpace = Self; |
| |
598 |
| |
599 fn dual_origin(&self) -> Self::DualSpace { |
| |
600 self.similar_origin() |
| |
601 } |
| 598 } |
602 } |
| 599 |
603 |
| 600 impl<F: Float, const N: usize> Norm<L2, F> for Loc<N, F> { |
604 impl<F: Float, const N: usize> Norm<L2, F> for Loc<N, F> { |
| 601 #[inline] |
605 #[inline] |
| 602 fn norm(&self, _: L2) -> F { |
606 fn norm(&self, _: L2) -> F { |