solve doesn't return the expected vector
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the supplied test_solve case with solve and inspect the implementation and linear-algebra backend it exercises. Compare the returned vector with the stated expected vector and add or update a regression test once the cause is identified; done means solve returns [1.0, 0.0, 1.0, 0.0] for this input.
Written by the indexing model from the issue text.
Description
The following test fails:
#[test]
pub fn test_solve() {
let a = array![
[0.2, 0.4, -0.2, -1.0],
[0.4, 0.8, -0.4, -1.0],
[0.2, 0.4, 0.0, 0.0],
[1.0, 1.0, 0.0, 0.0]
];
let b = array![0.0, 0.0, 0.2, 1.0];
let x = a.solve(&b).unwrap();
let y = array![1.0, 0.0, 1.0, 0.0];
assert_eq!(y, x);
}
Instead of [1.0, 0.0, 1.0, 0.0], the solve returns the vector [-2.7333333333333325, 3.7333333333333334, 3.2666666666666657, -5.106666666666666].
This happens on:
os: macos 13.4 (22F66)
processor: 1.2 GHz Quad-Core Intel Core i7
rustc: 1.66.1 (90743e729 2023-01-10)
rust edition: 2021
ndarrary: v0.15.6
ndarray-linalg: v0.16.0
ndarray-linalg features: ["openblas-static"]
- Dominant language
- Rust
- Stars
- 452
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-ndarray/ndarray-linalg
-
Thin SVD Open
Difficulty 5/5 Over a week Newbie friendliness 38/100
rust-ndarray/ndarray-linalg#414 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
rust-ndarray/ndarray-linalg#413 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rust-ndarray/ndarray-linalg#404 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rust-ndarray/ndarray-linalg#402 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rust-ndarray/ndarray-linalg#401 · 2 reactions ·
All issues in rust-ndarray/ndarray-linalg
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100