src/euclidean.rs

branch
dev
changeset 186
afe04e6b4a5b
parent 164
fd9dba51afd3
child 192
883b7d010297
equal deleted inserted replaced
185:e6829fbe2737 186:afe04e6b4a5b
88 impl<X, F: Float> EuclideanMut<F> for X where X: Euclidean<F> + AXPY<Field = F> {} 88 impl<X, F: Float> EuclideanMut<F> for X where X: Euclidean<F> + AXPY<Field = F> {}
89 89
90 /// Trait for [`Euclidean`] spaces with dimensions known at compile time. 90 /// Trait for [`Euclidean`] spaces with dimensions known at compile time.
91 pub trait StaticEuclidean<F: Float = f64>: Euclidean<F> { 91 pub trait StaticEuclidean<F: Float = f64>: Euclidean<F> {
92 /// Returns the origin 92 /// Returns the origin
93 fn origin() -> <Self as VectorSpace>::PrincipalV; 93 fn origin() -> <Self as Euclidean<F>>::PrincipalE;
94 } 94 }

mercurial