diff --git a/src/linalg/udu.rs b/src/linalg/udu.rs index bce2ea41..46b1497c 100644 --- a/src/linalg/udu.rs +++ b/src/linalg/udu.rs @@ -5,7 +5,7 @@ use crate::allocator::Allocator; use crate::base::{DefaultAllocator, MatrixN, VectorN, U1}; use crate::dimension::Dim; use crate::storage::Storage; -use simba::scalar::ComplexField; +use simba::scalar::RealField; /// UDU factorization #[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))] @@ -20,7 +20,7 @@ use simba::scalar::ComplexField; )) )] #[derive(Clone, Debug)] -pub struct UDU +pub struct UDU where DefaultAllocator: Allocator + Allocator, { @@ -30,7 +30,7 @@ where pub d: VectorN, } -impl Copy for UDU +impl Copy for UDU where DefaultAllocator: Allocator + Allocator, VectorN: Copy, @@ -38,7 +38,7 @@ where { } -impl UDU +impl UDU where DefaultAllocator: Allocator + Allocator, {