solve doesn't return the expected vector
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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"]
- 主要言語
- Rust
- スター
- 452
- フォーク
- 95
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-ndarray/ndarray-linalg のほかの issue
-
Thin SVD オープン
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
rust-ndarray/ndarray-linalg#414 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
rust-ndarray/ndarray-linalg#413 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
rust-ndarray/ndarray-linalg#404 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
rust-ndarray/ndarray-linalg#402 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
rust-ndarray/ndarray-linalg#401 · リアクション 2 件 ·
rust-ndarray/ndarray-linalg の issue をすべて見る
似ている issue
-
risk:low runtime status:in-progress type:test
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
bevyengine/bevy#25861 ·