src/nalgebra_support.rs

branch
dev
changeset 184
b7b60b3b3eff
parent 181
f159287bc191
equal deleted inserted replaced
183:d077dff509f1 184:b7b60b3b3eff
459 fn adjoint(&self) -> Self::Adjoint<'_> { 459 fn adjoint(&self) -> Self::Adjoint<'_> {
460 Matrix::adjoint(self) 460 Matrix::adjoint(self)
461 } 461 }
462 } 462 }
463 463
464 impl<'own, SM, N, M, K, E> SimplyAdjointable<OMatrix<E, M, K>, OMatrix<E, N, K>>
465 for Matrix<E, N, M, SM>
466 where
467 SM: Storage<E, N, M>,
468 N: Dim,
469 M: Dim,
470 K: Dim,
471 E: Float + RealField,
472 DefaultAllocator: Allocator<N, K> + Allocator<M, K> + Allocator<M, N>,
473 ShapeConstraint: StridesOk<E, N, K> + StridesOk<E, M, K>,
474 {
475 type AdjointCodomain = OMatrix<E, M, K>;
476 type SimpleAdjoint = OMatrix<E, M, N>;
477
478 #[inline]
479 fn adjoint(&self) -> Self::SimpleAdjoint {
480 Matrix::adjoint(self)
481 }
482 }
464 /// This function is [`nalgebra::EuclideanNorm::metric_distance`] without the `sqrt`. 483 /// This function is [`nalgebra::EuclideanNorm::metric_distance`] without the `sqrt`.
465 #[inline] 484 #[inline]
466 fn metric_distance_squared<T, R1, C1, S1, R2, C2, S2>( 485 fn metric_distance_squared<T, R1, C1, S1, R2, C2, S2>(
467 /*ed: &EuclideanNorm,*/ 486 /*ed: &EuclideanNorm,*/
468 m1: &Matrix<T, R1, C1, S1>, 487 m1: &Matrix<T, R1, C1, S1>,

mercurial