Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
move trait bounds into where clause
  • Loading branch information
PaulXiCao committed Oct 25, 2025
commit bed1daac07ea9beeb11b923a669aa06d21dd0c9c
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,10 @@ impl<T: Clone + Num> Mul<Complex<T>> for Complex<T> {
}

// (a + i b) * (c + i d) + (e + i f) == (a*c - (b*d - e)) + i (a*d + (b*c + f))
impl<T: Clone + Num + MulAdd<Output = T> + Neg<Output = T>> MulAdd<Complex<T>> for Complex<T> {
impl<T> MulAdd<Complex<T>> for Complex<T>
where
T: Clone + Num + MulAdd<Output = T> + Neg<Output = T>,
{
type Output = Complex<T>;

#[inline]
Expand Down