From 89ca2fe5fbe7a8987096cb5d8ca0fe6da92189e8 Mon Sep 17 00:00:00 2001 From: Christopher Rabotin Date: Wed, 28 Oct 2020 16:04:46 -0600 Subject: [PATCH] UDU only supported for Real matrices, not Complex Signed-off-by: Christopher Rabotin --- src/linalg/udu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, {