use num_complex::Complex;
use num_traits::Float;
use crate::Vector;
pub trait VConj: Vector
where
Self::Output: Vector
{
type Output;
fn conj(&self) -> Self::Output;
}
impl<F: Float, const L: usize> VConj for [Complex<F>; L]
where
Self: Vector
{
type Output = Self;
fn conj(&self) -> Self::Output
{
self.map(|x| x.conj())
}
}