dimforge / dimforge/nalgebra

impl DoubleEndedIterator for {MatrixIter, MatrixIterMut}

Open
#794 3 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Currently `vec.iter().rev()` fails because [`DoubleEndedIterator`](https://doc.rust-lang.org/stable/core/iter/trait.DoubleEndedIterator.html) is not implemented for [`MatrixIter`](https://docs.rs/nalgebra/0.23.0/nalgebra/base/iter/struct.MatrixIter.html). By a quick layman's glance at [the source](https://docs.rs/nalgebra/0.23.0/src/nalgebra/base/iter.rs.html#13-20) it seems straightforward to implement, but please tell me what I'm missing before I attempt this.

My usecase is Horner evaluating a coefficient vector. There are plenty workarounds, but `iter().rev()` seems the most natural to me.

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.