dimforge / dimforge/nalgebra

Reshaping a matrix?

Open
#350 1 comment 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 need to convert a 6 by 6 matrix to a 31 by 1 (vector), similarly to Matlab's [`reshape`](https://www.mathworks.com/help/matlab/ref/reshape.html). I'm currently trying to use [`fixed_resize`](http://nalgebra.org/rustdoc/nalgebra/base/struct.Matrix.html#method.fixed_resize) , but, as said in the documentation, it populates each missing row with the provided `val: f64`.

Is there currently a method provided to perform this?

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.