mathru 0.16.2

Fundamental algorithms for scientific computing in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::algebra::abstr::{Field, Scalar};
use std::{iter::Iterator, vec::IntoIter};

pub struct MatrixIntoIterator<T> {
    pub iter: IntoIter<T>,
}

impl<T> Iterator for MatrixIntoIterator<T>
where
    T: Field + Scalar,
{
    type Item = T;

    fn next(&mut self) -> Option<Self::Item> {
        self.iter.next()
    }
}