dimforge / dimforge/nalgebra

Method `rank` exists, but its trait bounds were not satisfied

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

Description

I'm trying to compute a rank of a square 256x256 matrix. It works for smaller sizes (up to 127), but for anything bigger I get:
```
the method `rank` exists for struct `Matrix, nalgebra::Const<256_usize>, ArrayStorage>`, but its trait bounds were not satisfied
the following trait bounds were not satisfied:
`nalgebra::Const<256_usize>: DimMin>`
`nalgebra::Const<256_usize>: ToTypenum`rustc[E0599](https://doc.rust-lang.org/error-index.html#E0599)
dimension.rs(212, 1): doesn't satisfy `_: DimMin>`
dimension.rs(212, 1): doesn't satisfy `nalgebra::Const<256_usize>: ToTypenum`
```

It sounds like a pretty basic operation to do, and the matrices aren't THAT big. Is there an easy solution to this?
Many thanks!

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.