Skip to content

Cargo workspace #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/ndarray-linalg.yml
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
50 changes: 0 additions & 50 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,6 @@ on:
pull_request: {}

jobs:
windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: actions-rs/cargo@v1
with:
command: test
args: --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: --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: --features=${{ matrix.feature }} --no-default-features

check-format:
runs-on: ubuntu-18.04
steps:
Expand Down
68 changes: 2 additions & 66 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,66 +1,2 @@
[package]
name = "ndarray-linalg"
version = "0.13.0-alpha.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
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"
thiserror = "1.0.20"

[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"]
66 changes: 66 additions & 0 deletions ndarray-linalg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[package]
name = "ndarray-linalg"
version = "0.13.0-alpha.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
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"
thiserror = "1.0.20"

[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"]
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.
File renamed without changes.
File renamed without changes.