From b7fe6b9dc1fbd827c53e4dcf289460e97b91218d Mon Sep 17 00:00:00 2001 From: metric-space Date: Sat, 12 Feb 2022 02:37:26 -0500 Subject: [PATCH] Name change --- nalgebra-lapack/src/generalized_eigenvalues.rs | 14 +++++++------- nalgebra-lapack/src/lib.rs | 2 +- .../tests/linalg/generalized_eigenvalues.rs | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/nalgebra-lapack/src/generalized_eigenvalues.rs b/nalgebra-lapack/src/generalized_eigenvalues.rs index e9057792..467d24da 100644 --- a/nalgebra-lapack/src/generalized_eigenvalues.rs +++ b/nalgebra-lapack/src/generalized_eigenvalues.rs @@ -45,7 +45,7 @@ use lapack; ) )] #[derive(Clone, Debug)] -pub struct GE +pub struct GeneralizedEigen where DefaultAllocator: Allocator + Allocator, { @@ -56,7 +56,7 @@ where vsr: OMatrix, } -impl Copy for GE +impl Copy for GeneralizedEigen where DefaultAllocator: Allocator + Allocator, OMatrix: Copy, @@ -64,7 +64,7 @@ where { } -impl GE +impl GeneralizedEigen where DefaultAllocator: Allocator + Allocator, { @@ -170,7 +170,7 @@ where ); lapack_check!(info); - Some(GE { + Some(GeneralizedEigen { alphar, alphai, beta, @@ -300,8 +300,8 @@ where * Lapack functions dispatch. * */ -/// Trait implemented by scalars for which Lapack implements the RealField GE decomposition. -pub trait GEScalar: Scalar { +/// Trait implemented by scalars for which Lapack implements the RealField GeneralizedEigen decomposition. +pub trait GeneralizedEigenScalar: Scalar { #[allow(missing_docs)] fn xggev( jobvsl: u8, @@ -345,7 +345,7 @@ pub trait GEScalar: Scalar { macro_rules! real_eigensystem_scalar_impl ( ($N: ty, $xggev: path) => ( - impl GEScalar for $N { + impl GeneralizedEigenScalar for $N { #[inline] fn xggev(jobvsl: u8, jobvsr: u8, diff --git a/nalgebra-lapack/src/lib.rs b/nalgebra-lapack/src/lib.rs index 1e6c396f..ea2e2b53 100644 --- a/nalgebra-lapack/src/lib.rs +++ b/nalgebra-lapack/src/lib.rs @@ -96,7 +96,7 @@ use num_complex::Complex; pub use self::cholesky::{Cholesky, CholeskyScalar}; pub use self::eigen::Eigen; -pub use self::generalized_eigenvalues::GE; +pub use self::generalized_eigenvalues::GeneralizedEigen; pub use self::hessenberg::Hessenberg; pub use self::lu::{LUScalar, LU}; pub use self::qr::QR; diff --git a/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs b/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs index 8b868fc9..ab678bf3 100644 --- a/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs +++ b/nalgebra-lapack/tests/linalg/generalized_eigenvalues.rs @@ -1,6 +1,6 @@ use na::dimension::Const; use na::{DMatrix, OMatrix}; -use nl::GE; +use nl::GeneralizedEigen; use num_complex::Complex; use simba::scalar::ComplexField; @@ -20,7 +20,7 @@ proptest! { let b_c = b.clone().map(|x| Complex::new(x, 0.0)); let n = a.shape_generic().0; - let ge = GE::new(a.clone(), b.clone()); + let ge = GeneralizedEigen::new(a.clone(), b.clone()); let (vsl,vsr) = ge.clone().eigenvectors(); @@ -45,7 +45,7 @@ proptest! { #[test] fn ge_static(a in matrix4(), b in matrix4()) { - let ge = GE::new(a.clone(), b.clone()); + let ge = GeneralizedEigen::new(a.clone(), b.clone()); let a_c =a.clone().map(|x| Complex::new(x, 0.0)); let b_c = b.clone().map(|x| Complex::new(x, 0.0)); let (vsl,vsr) = ge.eigenvectors();