| 298 fn norm(&self, _: L1) -> E { |
298 fn norm(&self, _: L1) -> E { |
| 299 nalgebra::Norm::norm(&LpNorm(1), self) |
299 nalgebra::Norm::norm(&LpNorm(1), self) |
| 300 } |
300 } |
| 301 } |
301 } |
| 302 |
302 |
| 303 impl<E, M, S> Dist<E, L1> for Vector<E, M, S> |
303 impl<E, M, S> Dist<L1, E> for Vector<E, M, S> |
| 304 where |
304 where |
| 305 M: Dim, |
305 M: Dim, |
| 306 S: Storage<E, M> + Clone, |
306 S: Storage<E, M> + Clone, |
| 307 E: Float + Scalar + Zero + One + RealField, |
307 E: Float + Scalar + Zero + One + RealField, |
| 308 DefaultAllocator: Allocator<M>, |
308 DefaultAllocator: Allocator<M>, |
| 324 fn norm(&self, _: L2) -> E { |
324 fn norm(&self, _: L2) -> E { |
| 325 nalgebra::Norm::norm(&LpNorm(2), self) |
325 nalgebra::Norm::norm(&LpNorm(2), self) |
| 326 } |
326 } |
| 327 } |
327 } |
| 328 |
328 |
| 329 impl<E, M, S> Dist<E, L2> for Vector<E, M, S> |
329 impl<E, M, S> Dist<L2, E> for Vector<E, M, S> |
| 330 where |
330 where |
| 331 M: Dim, |
331 M: Dim, |
| 332 S: Storage<E, M> + Clone, |
332 S: Storage<E, M> + Clone, |
| 333 E: Float + Scalar + Zero + One + RealField, |
333 E: Float + Scalar + Zero + One + RealField, |
| 334 DefaultAllocator: Allocator<M>, |
334 DefaultAllocator: Allocator<M>, |
| 350 fn norm(&self, _: Linfinity) -> E { |
350 fn norm(&self, _: Linfinity) -> E { |
| 351 nalgebra::Norm::norm(&UniformNorm, self) |
351 nalgebra::Norm::norm(&UniformNorm, self) |
| 352 } |
352 } |
| 353 } |
353 } |
| 354 |
354 |
| 355 impl<E, M, S> Dist<E, Linfinity> for Vector<E, M, S> |
355 impl<E, M, S> Dist<Linfinity, E> for Vector<E, M, S> |
| 356 where |
356 where |
| 357 M: Dim, |
357 M: Dim, |
| 358 S: Storage<E, M> + Clone, |
358 S: Storage<E, M> + Clone, |
| 359 E: Float + Scalar + Zero + One + RealField, |
359 E: Float + Scalar + Zero + One + RealField, |
| 360 DefaultAllocator: Allocator<M>, |
360 DefaultAllocator: Allocator<M>, |