Skip to content

Commit 29bef1a

Browse files
committed
Remove lapacke dep
1 parent f86d104 commit 29bef1a

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

lax/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ netlib = ["lapack-src/netlib", "blas-src/netlib"]
1111
openblas = ["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"
1716
num-traits = "0.2"
18-
lapack = "*"
17+
lapack = "0.16.0"
1918

2019
[dependencies.blas-src]
2120
version = "0.6.1"

lax/src/layout.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)