Skip to content

Nalgebra false error #9843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
vctibor opened this issue Aug 10, 2021 · 1 comment
Closed

Nalgebra false error #9843

vctibor opened this issue Aug 10, 2021 · 1 comment

Comments

@vctibor
Copy link

vctibor commented Aug 10, 2021

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

@Veykril
Copy link
Member

Veykril commented Aug 10, 2021

Duplicate of #5441

@Veykril Veykril marked this as a duplicate of #5441 Aug 10, 2021
@Veykril Veykril closed this as completed Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants