Formatting

This commit is contained in:
metric-space 2022-02-03 06:43:41 -05:00 committed by Saurabh
parent 5828a0a6ad
commit 4c50d882a3
2 changed files with 15 additions and 10 deletions

View File

@ -42,11 +42,11 @@ where
{ {
alphar: OVector<T, D>, alphar: OVector<T, D>,
alphai: OVector<T, D>, alphai: OVector<T, D>,
beta: OVector<T, D>, beta: OVector<T, D>,
vsl: OMatrix<T, D, D>, vsl: OMatrix<T, D, D>,
s: OMatrix<T, D, D>, s: OMatrix<T, D, D>,
vsr: OMatrix<T, D, D>, vsr: OMatrix<T, D, D>,
t: OMatrix<T, D, D>, t: OMatrix<T, D, D>,
} }
impl<T: Scalar + Copy, D: Dim> Copy for QZ<T, D> impl<T: Scalar + Copy, D: Dim> Copy for QZ<T, D>
@ -183,12 +183,17 @@ where
where where
DefaultAllocator: Allocator<(Complex<T>, T), D>, DefaultAllocator: Allocator<(Complex<T>, T), D>,
{ {
let mut out = Matrix::from_element_generic(self.vsl.shape_generic().0, Const::<1>, (Complex::zero(), T::RealField::zero())); let mut out = Matrix::from_element_generic(
self.vsl.shape_generic().0,
Const::<1>,
(Complex::zero(), T::RealField::zero()),
);
for i in 0..out.len() { for i in 0..out.len() {
out[i] = (Complex::new(self.alphar[i].clone(), out[i] = (
self.alphai[i].clone()), Complex::new(self.alphar[i].clone(), self.alphai[i].clone()),
self.beta[i].clone()) self.beta[i].clone(),
)
} }
out out

View File

@ -1,8 +1,8 @@
mod cholesky; mod cholesky;
mod generalized_eigenvalues;
mod lu; mod lu;
mod qr; mod qr;
mod qz; mod qz;
mod generalized_eigenvalues;
mod real_eigensystem; mod real_eigensystem;
mod schur; mod schur;
mod svd; mod svd;