-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
91 changed files
with
836 additions
and
759 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: ndarray-linalg | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: {} | ||
|
||
jobs: | ||
windows: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path=ndarray-linalg/Cargo.toml --features=intel-mkl --no-default-features | ||
|
||
macos: | ||
runs-on: macos-10.15 | ||
env: | ||
CC: gcc-9 | ||
FC: gfortran-9 | ||
LIBRARY_PATH: /usr/local/opt/gcc/lib/gcc/9 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
feature: | ||
- netlib | ||
- openblas | ||
- intel-mkl | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path=ndarray-linalg/Cargo.toml --features=${{ matrix.feature }} --no-default-features | ||
|
||
linux: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
feature: | ||
- netlib | ||
- openblas | ||
- intel-mkl | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: apt-install gfortran | ||
run: | | ||
sudo apt update | ||
sudo apt install -y gfortran | ||
if: ${{ matrix.feature != 'intel-mkl' }} | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --manifest-path=ndarray-linalg/Cargo.toml --features=${{ matrix.feature }} --no-default-features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
target/ | ||
*.rustfmt | ||
rusty-tags.* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,5 @@ | ||
[package] | ||
name = "ndarray-linalg" | ||
version = "0.13.0-alpha.0" | ||
authors = ["Toshiki Teramura <[email protected]>"] | ||
edition = "2018" | ||
|
||
description = "Linear algebra package for rust-ndarray using LAPACK" | ||
documentation = "https://docs.rs/ndarray-linalg/" | ||
repository = "https://github.com/rust-ndarray/ndarray-linalg" | ||
keywords = ["ndarray", "lapack", "matrix"] | ||
license = "MIT" | ||
readme = "README.md" | ||
categories = ["algorithms", "science"] | ||
|
||
[features] | ||
default = [] | ||
intel-mkl = ["lapack-src/intel-mkl", "blas-src/intel-mkl"] | ||
netlib = ["lapack-src/netlib", "blas-src/netlib"] | ||
openblas = ["lapack-src/openblas", "blas-src/openblas"] | ||
serde-1 = ["ndarray/serde-1", "num-complex/serde"] | ||
|
||
static = ["openblas-static"] | ||
openblas-static = ["openblas", "openblas-src"] | ||
|
||
[dependencies] | ||
lapacke = "0.2.0" | ||
num-traits = "0.2.11" | ||
cauchy = "0.2.2" | ||
num-complex = "0.2.4" | ||
rand = "0.5" | ||
lapack = "0.16.0" | ||
blas = "0.20.0" | ||
|
||
[dependencies.ndarray] | ||
version = "0.13.0" | ||
features = ["blas", "approx"] | ||
default-features = false | ||
|
||
[dependencies.blas-src] | ||
version = "0.6.1" | ||
default-features = false | ||
|
||
[dependencies.lapack-src] | ||
version = "0.6.0" | ||
default-features = false | ||
|
||
[dependencies.openblas-src] | ||
version = "0.9.0" | ||
default-features = false | ||
features = ["static"] | ||
optional = true | ||
|
||
[dev-dependencies] | ||
paste = "0.1.9" | ||
criterion = "0.3.1" | ||
approx = { version = "0.3.2", features = ["num-complex"] } | ||
|
||
[[bench]] | ||
name = "truncated_eig" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "eigh" | ||
harness = false | ||
|
||
[package.metadata.docs.rs] | ||
rustdoc-args = ["--html-in-header", "katex-header.html"] | ||
[workspace] | ||
members = [ | ||
"ndarray-linalg", | ||
"lax", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[package] | ||
name = "lax" | ||
version = "0.1.0" | ||
authors = ["Toshiki Teramura <[email protected]>"] | ||
edition = "2018" | ||
|
||
[features] | ||
default = [] | ||
intel-mkl = ["lapack-src/intel-mkl", "blas-src/intel-mkl"] | ||
netlib = ["lapack-src/netlib", "blas-src/netlib"] | ||
openblas = ["lapack-src/openblas", "blas-src/openblas"] | ||
|
||
[dependencies] | ||
thiserror = "1" | ||
cauchy = "0.2" | ||
lapacke = "0.2.0" | ||
num-traits = "0.2" | ||
lapack = "0.16.0" | ||
blas = "0.20.0" | ||
|
||
[dependencies.blas-src] | ||
version = "0.6.1" | ||
default-features = false | ||
|
||
[dependencies.lapack-src] | ||
version = "0.6.0" | ||
default-features = false | ||
|
||
[dependencies.openblas-src] | ||
version = "0.9.0" | ||
default-features = false | ||
features = ["static"] | ||
optional = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.