Skip to content

SIGSEGV on qr decomposition #402

Description

@supinie

I am trying to use the qr decomposition method but am getting signal: 11, SIGSEGV: invalid memory reference whenever I call it.

Cargo.toml:

[dependencies]
ndarray = { version = "0.16.1", features = ["blas", "rayon"] }
ndarray-linalg = { version = "0.17.0", features = ["openblas-system"] }

shell.nix:

with import <nixpkgs> { };
mkShell {
  buildInputs = [
    rustup
    gcc
    bacon
    pkg-config
    openssl.dev
    openblas
  ];
}

Minimal reproduction:

        let mut rng = rand::rng();
        let test = Array2::from_shape_fn((5, 5), |_| rng.random::<i8>() as f64);
        let (q, r) = test .qr().unwrap();

removing the last line, this runs fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions