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"]
1111openblas = [" lapack-src/openblas" , " blas-src/openblas" ]
1212
1313[dependencies ]
14- thiserror = " 1"
15- cauchy = " 0.2"
16- lapacke = " 0.2.0"
14+ thiserror = " 1.0"
15+ cauchy = " 0.2.0"
1716num-traits = " 0.2"
18- lapack = " * "
17+ lapack = " 0.16.0 "
1918
2019[dependencies .blas-src ]
2120version = " 0.6.1"
Original file line number Diff line number Diff line change @@ -80,15 +80,12 @@ impl MatrixLayout {
8080 self . len ( ) == 0
8181 }
8282
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-
9083 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+ }
9289 }
9390
9491 pub fn toggle_order ( & self ) -> Self {
You can’t perform that action at this time.
0 commit comments