Skip to content

Nalgebra false error #9843

Closed
Closed
@vctibor

Description

@vctibor

Trying out nalgebra crate, many functions are reported as error, but running cargo run from command line works.

Cargo.toml:

[package]
name = "rnn2"
version = "0.1.0"
edition = "2018"

[dependencies]
nalgebra = "0.29"

main.rs:

use nalgebra::DMatrix;

fn main() {
    let mut result: DMatrix<f32> = DMatrix::zeros(2, 3);
}

DMatrix::zeros(2, 3) is reported as error with expected 0 arguments, found 2 but actually the function exists and is correct, as confirmed by running compiler from terminal.

rust analyzer version: v0.2.702
VS Code version: 1.59
rustup version: 1.24.3

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