Skip to content

Commit 2659f80

Browse files
committed
Split ndarray_linalg::lapack sub module into linalg crate
1 parent f4e5e81 commit 2659f80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+88
-66
lines changed

Cargo.toml

Lines changed: 5 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,6 @@
1-
[package]
2-
name = "ndarray-linalg"
3-
version = "0.13.0-alpha.0"
4-
authors = ["Toshiki Teramura <[email protected]>"]
5-
edition = "2018"
1+
[workspace]
2+
members = [
3+
"linalg",
4+
"ndarray-linalg",
5+
]
66

7-
description = "Linear algebra package for rust-ndarray using LAPACK"
8-
documentation = "https://docs.rs/ndarray-linalg/"
9-
repository = "https://github.com/rust-ndarray/ndarray-linalg"
10-
keywords = ["ndarray", "lapack", "matrix"]
11-
license = "MIT"
12-
readme = "README.md"
13-
categories = ["algorithms", "science"]
14-
15-
[features]
16-
default = []
17-
intel-mkl = ["lapack-src/intel-mkl", "blas-src/intel-mkl"]
18-
netlib = ["lapack-src/netlib", "blas-src/netlib"]
19-
openblas = ["lapack-src/openblas", "blas-src/openblas"]
20-
serde-1 = ["ndarray/serde-1", "num-complex/serde"]
21-
22-
static = ["openblas-static"]
23-
openblas-static = ["openblas", "openblas-src"]
24-
25-
[dependencies]
26-
lapacke = "0.2.0"
27-
num-traits = "0.2.11"
28-
cauchy = "0.2.2"
29-
num-complex = "0.2.4"
30-
rand = "0.5"
31-
lapack = "0.16.0"
32-
blas = "0.20.0"
33-
34-
[dependencies.ndarray]
35-
version = "0.13.0"
36-
features = ["blas", "approx"]
37-
default-features = false
38-
39-
[dependencies.blas-src]
40-
version = "0.6.1"
41-
default-features = false
42-
43-
[dependencies.lapack-src]
44-
version = "0.6.0"
45-
default-features = false
46-
47-
[dependencies.openblas-src]
48-
version = "0.9.0"
49-
default-features = false
50-
features = ["static"]
51-
optional = true
52-
53-
[dev-dependencies]
54-
paste = "0.1.9"
55-
criterion = "0.3.1"
56-
approx = { version = "0.3.2", features = ["num-complex"] }
57-
58-
[[bench]]
59-
name = "truncated_eig"
60-
harness = false
61-
62-
[[bench]]
63-
name = "eigh"
64-
harness = false
65-
66-
[package.metadata.docs.rs]
67-
rustdoc-args = ["--html-in-header", "katex-header.html"]

linalg/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "linalg"
3+
version = "0.1.0"
4+
authors = ["Toshiki Teramura <[email protected]>"]
5+
edition = "2018"
6+
7+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8+
9+
[dependencies]

linalg/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#[cfg(test)]
2+
mod tests {
3+
#[test]
4+
fn it_works() {
5+
assert_eq!(2 + 2, 4);
6+
}
7+
}

ndarray-linalg/Cargo.toml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[package]
2+
name = "ndarray-linalg"
3+
version = "0.13.0-alpha.0"
4+
authors = ["Toshiki Teramura <[email protected]>"]
5+
edition = "2018"
6+
7+
description = "Linear algebra package for rust-ndarray using LAPACK"
8+
documentation = "https://docs.rs/ndarray-linalg/"
9+
repository = "https://github.com/rust-ndarray/ndarray-linalg"
10+
keywords = ["ndarray", "lapack", "matrix"]
11+
license = "MIT"
12+
readme = "README.md"
13+
categories = ["algorithms", "science"]
14+
15+
[features]
16+
default = []
17+
intel-mkl = ["lapack-src/intel-mkl", "blas-src/intel-mkl"]
18+
netlib = ["lapack-src/netlib", "blas-src/netlib"]
19+
openblas = ["lapack-src/openblas", "blas-src/openblas"]
20+
serde-1 = ["ndarray/serde-1", "num-complex/serde"]
21+
22+
static = ["openblas-static"]
23+
openblas-static = ["openblas", "openblas-src"]
24+
25+
[dependencies]
26+
lapacke = "0.2.0"
27+
num-traits = "0.2.11"
28+
cauchy = "0.2.2"
29+
num-complex = "0.2.4"
30+
rand = "0.5"
31+
lapack = "0.16.0"
32+
blas = "0.20.0"
33+
34+
[dependencies.ndarray]
35+
version = "0.13.0"
36+
features = ["blas", "approx"]
37+
default-features = false
38+
39+
[dependencies.blas-src]
40+
version = "0.6.1"
41+
default-features = false
42+
43+
[dependencies.lapack-src]
44+
version = "0.6.0"
45+
default-features = false
46+
47+
[dependencies.openblas-src]
48+
version = "0.9.0"
49+
default-features = false
50+
features = ["static"]
51+
optional = true
52+
53+
[dev-dependencies]
54+
paste = "0.1.9"
55+
criterion = "0.3.1"
56+
approx = { version = "0.3.2", features = ["num-complex"] }
57+
58+
[[bench]]
59+
name = "truncated_eig"
60+
harness = false
61+
62+
[[bench]]
63+
name = "eigh"
64+
harness = false
65+
66+
[package.metadata.docs.rs]
67+
rustdoc-args = ["--html-in-header", "katex-header.html"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)