Example failing on mac os

Abierto
#293 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
rust
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Rust
Estrellas
452
Forks
95
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rust-ndarray/ndarray-linalg

Todos los issues de rust-ndarray/ndarray-linalg

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.