dimforge / dimforge/nalgebra

assert_relative_eq! does not compile for DMatrix and Matrix2xX

Open
#1,191 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I use the latest `approx` 0.5.1 with `nalgebra` 0.31.4 (both latest).
Consider the following code:
```rust
let a: Matrix, Dynamic, VecStorage, Dynamic>> = result();
let b: Matrix> = expected();
a.relative_eq(&b, 0.1, 0.1); // Compiles
assert_relative_eq!(result_table, expected_result_table); // Error
```
Compile error:
```
mismatched types
expected reference `&Matrix, Dynamic, VecStorage, Dynamic>>`
found reference `&Matrix>`
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.