Fix spelling in givens.rs
This commit is contained in:
parent
c6ff3eeb7e
commit
b6e094c82f
|
@ -17,7 +17,7 @@ pub struct GivensRotation<T: ComplexField> {
|
||||||
|
|
||||||
// Matrix = UnitComplex * Matrix
|
// Matrix = UnitComplex * Matrix
|
||||||
impl<T: ComplexField> GivensRotation<T> {
|
impl<T: ComplexField> GivensRotation<T> {
|
||||||
/// The Givents rotation that does nothing.
|
/// The Givens rotation that does nothing.
|
||||||
pub fn identity() -> Self {
|
pub fn identity() -> Self {
|
||||||
Self {
|
Self {
|
||||||
c: T::RealField::one(),
|
c: T::RealField::one(),
|
||||||
|
@ -88,13 +88,13 @@ impl<T: ComplexField> GivensRotation<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The cos part of this roration.
|
/// The cos part of this rotation.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn c(&self) -> T::RealField {
|
pub fn c(&self) -> T::RealField {
|
||||||
self.c.clone()
|
self.c.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The sin part of this roration.
|
/// The sin part of this rotation.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn s(&self) -> T {
|
pub fn s(&self) -> T {
|
||||||
self.s.clone()
|
self.s.clone()
|
||||||
|
|
Loading…
Reference in New Issue