summaryrefslogtreecommitdiff
path: root/src/poly
diff options
context:
space:
mode:
Diffstat (limited to 'src/poly')
-rw-r--r--src/poly/iter.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/poly/iter.rs b/src/poly/iter.rs
index 059d7e3..90cc4b5 100644
--- a/src/poly/iter.rs
+++ b/src/poly/iter.rs
@@ -1,15 +1,14 @@
-use crate::number::Number;
use std::cmp;
use std::iter::{Take, Zip};
pub struct Iter {
index: usize,
- data: Vec<Number>,
+ data: Vec<f32>,
degree: usize,
}
impl Iter {
- pub fn new(data: Vec<Number>, degree: usize) -> Iter {
+ pub fn new(data: Vec<f32>, degree: usize) -> Iter {
Iter {
index: 0,
data,
@@ -26,9 +25,9 @@ impl Iter {
}
impl Iterator for Iter {
- type Item = Number;
+ type Item = f32;
- fn next(&mut self) -> Option<Number> {
+ fn next(&mut self) -> Option<f32> {
self.index += 1;
if self.index <= self.data.len() {
Some(self.data[self.index - 1])