Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

dot() with blas backend

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
rust
領域
backend

調査の方向性

Reproduce the two matrix examples with the openblas-static backend, then compare the results with openblas-system and native ndarray::dot(). Trace the BLAS-backed multiplication entry point and verify that the 8x3 case returns the expected nonzero matrix; add a regression check if the relevant test location is identified.

索引モデルが issue の本文から書いたものです。

説明

When I want to multiply two matrices that exceed a certain size with the ndarray-linalg blas backend enabled, it returns a matrix filled with zeros. With the native dot() from ndarray (without blas) it works as expected.

Example:

This works, if the size of a is 7x3:

fn main() {
    let a = array![
        [1., 1., 1., 1., 1., 1., 1.],
        [1., 1., 1., 1., 1., 1., 1.],
        [1., 1., 1., 1., 1., 1., 1.],
    ];
    let b = array![
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
    ];
    println!("{}", a.dot(&b));
}

now but if the size of a is 8x3 (or bigger) it returns a matrix filled with zeros: (with ndarray-linalg and blas backend)

fn main() {
    let a = array![
        [1., 1., 1., 1., 1., 1., 1., 1.],
        [1., 1., 1., 1., 1., 1., 1., 1.],
        [1., 1., 1., 1., 1., 1., 1., 1.],
    ];
    let b = array![
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
        [1., 2., 3.],
    ];
    println!("{}", a.dot(&b));
}

however, the last example works as expected without the ndarray-linalg crate. (directly implemented in ndarray itself)

Edit:

The issue only occures with openblas-static, not openblas-system.

主要言語
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 を短くまとめたダイジェスト。