Skip to content

Commit d5d51e4

Browse files
authored
Merge pull request #80 from termoshtt/neg
Support negate
2 parents 8e496e1 + c2fa7f3 commit d5d51e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use rand::Rng;
77
use rand::distributions::*;
88
use std::fmt::Debug;
99
use std::iter::Sum;
10+
use std::ops::Neg;
1011

1112
use super::lapack_traits::LapackScalar;
1213

@@ -34,6 +35,7 @@ pub trait Scalar
3435
+ Exponential
3536
+ Conjugate
3637
+ RandNormal
38+
+ Neg<Output = Self>
3739
+ Debug {
3840
fn from_f64(f64) -> Self;
3941
}

0 commit comments

Comments
 (0)