Example failing on mac os
まだ誰も着手していません。
評価
調査の方向性
Reproduce the test from the issue using the shown Cargo.toml dependencies and the solve_into entry point on macOS. Inspect the OpenBLAS backend configuration and the ndarray-linalg solve path to determine whether the incorrect result is backend-specific. Done means identifying the cause and adding or updating a regression test for the expected solution.
索引モデルが issue の本文から書いたものです。
説明
I'm having an issue getting the crate to work reliably on OSX. My product requires some simple linear algebra, using the solve functions. My Cargo.toml looks like this
[dependencies]
ndarray = { version = "0.14" }
num-complex = { version = "0.3.1" }
ndarray-linalg = { version = "0.13.1", features=["openblas"] }
and I am trying to run a simple test I lifted the examples in the crate docs
#[test]
fn test_mat_mul() {
use ndarray::prelude::*;
use ndarray_linalg::Solve;
let a: Array2<f64> = array![[3., 2., -1.], [2., -2., 4.], [-2., 1., -2.]];
let b: Array1<f64> = array![1., -2., 0.];
let x = a.solve_into(b).unwrap();
assert!(x.all_close(&array![1., -2., -2.], 1e-9));
}
which I would expect to pass fine. Instead it finds x = [1.0, 1.2000000000000002, -0.40000000000000013].
Any ideas? Is this a problem with using the openblas backend on osx?
- 主要言語
- 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
-
bug CLI custom-model
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
rust-bitcoin/rust-bitcoin#6930 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
A-allocators A-docs C-enhancement T-libs
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100