Skip to main content

ComplexConjugate

Trait ComplexConjugate 

Source
pub trait ComplexConjugate {
    // Required method
    fn complex_conjugate(&self) -> Self;
}

Required Methods§

Source

fn complex_conjugate(&self) -> Self

§Example
use stwo::core::fields::m31::P;
use stwo::core::fields::qm31::QM31;
use stwo::core::fields::ComplexConjugate;

let x = QM31::from_u32_unchecked(1, 2, 3, 4);
assert_eq!(
    x.complex_conjugate(),
    QM31::from_u32_unchecked(1, 2, P - 3, P - 4)
);

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§