pub trait Conjugate: Copy {
// Provided method
fn conj(self) -> Self { ... }
}Expand description
Complex conjugation for tensor element types.
Default implementation returns self unchanged, which is correct
for real-valued types. Complex types override with actual conjugation.
§Examples
use tenferro_algebra::Conjugate;
// Real types: conj is identity
assert_eq!(3.14_f64.conj(), 3.14_f64);
// Complex types: conj negates imaginary part
use num_complex::Complex64;
let z = Complex64::new(1.0, 2.0);
assert_eq!(z.conj(), Complex64::new(1.0, -2.0));Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.