-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[*] argmin-math: ndarray 16 tests added.
- Loading branch information
1 parent
0c0b9f0
commit 280c604
Showing
3 changed files
with
80 additions
and
0 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
25 changes: 25 additions & 0 deletions
25
crates/argmin-math/ndarray-linalg-tests/ndarray_0_16/Cargo.toml
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,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
51
crates/argmin-math/ndarray-linalg-tests/ndarray_0_16/src/lib.rs
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,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")); | ||
} |