Large Statically Sized Matrices
- Dominant language
- Rust
- Stars
- 4.8k
- Forks
- 565
- PR merge metrics
- No merged PRs in 30d
Description
Hello! I'm currently using statically sized matrices which are typically very large (1024 x 1024). The main issue is I have a struct like this:
```rust
pub struct Foo {
pub shape: SMatrix,
pub mean: i128
}
```
The size of these matrices causes a stack overflow, so I would like to create matrices which are dynamically allocated. However, I also would like to keep the constant size.
I tried using a type such as
```rust
pub type Mat = Matrix, Const, VecStorage, Const>>;
```
but `VecStorage, Const>`doesn't implement `RawStorage` or `Storage`.
I also tried creating a custom storage type, but the `Storage` trait requires a `DefaultAllocator`, which uses an `ArrayStorage` internally.
Creating a custom allocator also doesn't seem to work as the `Storage` trait requires a `DefaultAllocator`, and not any custom allocator.
Is there any way to add this functionality while integrating it into the current type system? I am also not fully familiar with it currently and so I might be missing something.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.