Fix spelling in givens.rs

This commit is contained in:
Rasmus Brönnegård 2023-11-09 00:48:13 +01:00
parent c6ff3eeb7e
commit b6e094c82f
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ pub struct GivensRotation<T: ComplexField> {
// Matrix = UnitComplex * Matrix
impl<T: ComplexField> GivensRotation<T> {
/// The Givents rotation that does nothing.
/// The Givens rotation that does nothing.
pub fn identity() -> Self {
Self {
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]
pub fn c(&self) -> T::RealField {
self.c.clone()
}
/// The sin part of this roration.
/// The sin part of this rotation.
#[must_use]
pub fn s(&self) -> T {
self.s.clone()