File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ netlib = ["lapack-src/netlib", "blas-src/netlib"]
11
11
openblas = [" lapack-src/openblas" , " blas-src/openblas" ]
12
12
13
13
[dependencies ]
14
- thiserror = " 1"
15
- cauchy = " 0.2"
16
- lapacke = " 0.2.0"
14
+ thiserror = " 1.0"
15
+ cauchy = " 0.2.0"
17
16
num-traits = " 0.2"
18
- lapack = " * "
17
+ lapack = " 0.16.0 "
19
18
20
19
[dependencies .blas-src ]
21
20
version = " 0.6.1"
Original file line number Diff line number Diff line change @@ -80,15 +80,12 @@ impl MatrixLayout {
80
80
self . len ( ) == 0
81
81
}
82
82
83
- pub fn lapacke_layout ( & self ) -> lapacke:: Layout {
84
- match * self {
85
- MatrixLayout :: C { .. } => lapacke:: Layout :: RowMajor ,
86
- MatrixLayout :: F { .. } => lapacke:: Layout :: ColumnMajor ,
87
- }
88
- }
89
-
90
83
pub fn same_order ( & self , other : & MatrixLayout ) -> bool {
91
- self . lapacke_layout ( ) == other. lapacke_layout ( )
84
+ match ( self , other) {
85
+ ( MatrixLayout :: C { .. } , MatrixLayout :: C { .. } ) => true ,
86
+ ( MatrixLayout :: F { .. } , MatrixLayout :: F { .. } ) => true ,
87
+ _ => false ,
88
+ }
92
89
}
93
90
94
91
pub fn toggle_order ( & self ) -> Self {
You can’t perform that action at this time.
0 commit comments