solve doesn't return the expected vector

オープン
#356 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
backend

調査の方向性

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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-ndarray/ndarray-linalg のほかの issue

rust-ndarray/ndarray-linalg の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。