pub trait MConj: Matrix{
type Output;
// Required method
fn conj(&self) -> Self::Output;
}
Required Associated Types§
Required Methods§
Sourcefn conj(&self) -> Self::Output
fn conj(&self) -> Self::Output
Returns the complex-conjugate matrix
A*
§Examples
let a = [
[Complex::new(1.0, 1.0), Complex::new(2.0, -1.0)],
[Complex::new(3.0, 1.0), Complex::new(4.0, -1.0)]
];
let a_ = [
[a[0][0].conj(), a[0][1].conj()],
[a[1][0].conj(), a[1][1].conj()]
];
assert_eq!(a.conj(), a_);
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.