Skip to content

Commit

Permalink
[*] argmin-math: ndarray 16 tests added.
Browse files Browse the repository at this point in the history
  • Loading branch information
npatsakula committed Dec 15, 2024
1 parent 0c0b9f0 commit 280c604
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ jobs:
# ndarray without linalg
- name: argmin-math (ndarray_latest-nolinalg)
run: cargo test -p argmin-math --no-default-features --features "ndarray_latest-nolinalg"
- name: argmin-math (ndarray_v0_16-nolinalg)
run: cargo test -p argmin-math --no-default-features --features "ndarray_v0_16-nolinalg"
- name: argmin-math (ndarray_v0_15-nolinalg)
run: cargo test -p argmin-math --no-default-features --features "ndarray_v0_15-nolinalg"
- name: argmin-math (ndarray_v0_14-nolinalg)
Expand All @@ -106,6 +108,8 @@ jobs:
# ndarray with linalg
- name: argmin-math (ndarray_latest)
run: cargo test --manifest-path ./crates/argmin-math/ndarray-linalg-tests/ndarray_latest/Cargo.toml
- name: argmin-math (ndarray_v0_16)
run: cargo test --manifest-path ./crates/argmin-math/ndarray-linalg-tests/ndarray_0_16/Cargo.toml
- name: argmin-math (ndarray_v0_15)
run: cargo test --manifest-path ./crates/argmin-math/ndarray-linalg-tests/ndarray_0_15/Cargo.toml
- name: argmin-math (ndarray_v0_14)
Expand Down
25 changes: 25 additions & 0 deletions crates/argmin-math/ndarray-linalg-tests/ndarray_0_16/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "ndarray_0_16"
version = "0.0.0"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dev-dependencies]
argmin-math = { path = "../../", version = "*", features = [
"ndarray_v0_16",
] }
ndarray = { version = "0.16", default-features = false }
ndarray-linalg = { version = "0.16", default-features = false, features = ["intel-mkl-static"] }
num-complex = { version = "0.4", default-features = false }
num-traits = { version = "0.2", default-features = false }
num-integer = { version = "0.1", default-features = false }
paste = "1"
approx = "0.5.0"
rand = "*" # Should unify with whatever is currently used in argmin itself

[features]

# To make it explicit that this package is not part of the overall argmin workspace for the purpose of dependency unification
[workspace]
51 changes: 51 additions & 0 deletions crates/argmin-math/ndarray-linalg-tests/ndarray_0_16/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
mod add {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/add.rs"));
}
mod conj {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/conj.rs"));
}
mod div {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/div.rs"));
}
mod dot {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/dot.rs"));
}
mod eye {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/eye.rs"));
}
mod inv {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/inv.rs"));
}
mod l1norm {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/l1norm.rs"));
}
mod l2norm {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/l2norm.rs"));
}
mod minmax {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/minmax.rs"));
}
mod mul {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/mul.rs"));
}
mod random {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/random.rs"));
}
mod scaledadd {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/scaledadd.rs"));
}
mod scaledsub {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/scaledsub.rs"));
}
mod signum {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/signum.rs"));
}
mod sub {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/sub.rs"));
}
mod transpose {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/transpose.rs"));
}
mod zero {
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/../../ndarray-tests-src/zero.rs"));
}

0 comments on commit 280c604

Please sign in to comment.