1
1
//! Charactor flags, e.g. `'T'`, used in LAPACK API
2
2
3
3
/// Upper/Lower specification for seveal usages
4
- #[ derive( Debug , Clone , Copy ) ]
4
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
5
5
#[ repr( u8 ) ]
6
6
pub enum UPLO {
7
7
Upper = b'U' ,
@@ -22,7 +22,7 @@ impl UPLO {
22
22
}
23
23
}
24
24
25
- #[ derive( Debug , Clone , Copy ) ]
25
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
26
26
#[ repr( u8 ) ]
27
27
pub enum Transpose {
28
28
No = b'N' ,
@@ -37,7 +37,7 @@ impl Transpose {
37
37
}
38
38
}
39
39
40
- #[ derive( Debug , Clone , Copy ) ]
40
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
41
41
#[ repr( u8 ) ]
42
42
pub enum NormType {
43
43
One = b'O' ,
@@ -61,7 +61,7 @@ impl NormType {
61
61
}
62
62
63
63
/// Flag for calculating eigenvectors or not
64
- #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
64
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
65
65
#[ repr( u8 ) ]
66
66
pub enum JobEv {
67
67
/// Calculate eigenvectors in addition to eigenvalues
@@ -95,7 +95,7 @@ impl JobEv {
95
95
/// Specifies how many of the columns of *U* and rows of *V*ᵀ are computed and returned.
96
96
///
97
97
/// For an input array of shape *m*×*n*, the following are computed:
98
- #[ derive( Clone , Copy , Eq , PartialEq ) ]
98
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
99
99
#[ repr( u8 ) ]
100
100
pub enum JobSvd {
101
101
/// All *m* columns of *U* and all *n* rows of *V*ᵀ.
@@ -121,7 +121,7 @@ impl JobSvd {
121
121
}
122
122
123
123
/// Specify whether input triangular matrix is unit or not
124
- #[ derive( Debug , Clone , Copy ) ]
124
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
125
125
#[ repr( u8 ) ]
126
126
pub enum Diag {
127
127
/// Unit triangular matrix, i.e. all diagonal elements of the matrix are `1`
0 commit comments