From 79d442692441263fdefa2eaeaf3cd987ad3cadc9 Mon Sep 17 00:00:00 2001 From: Tom Spooner Date: Thu, 18 Jan 2018 11:40:51 +0000 Subject: [PATCH] refactor: replace `Array1` with `Vector` in `Polynomial` --- src/fa/projection/polynomial.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fa/projection/polynomial.rs b/src/fa/projection/polynomial.rs index 17a1aa78..e8824c09 100644 --- a/src/fa/projection/polynomial.rs +++ b/src/fa/projection/polynomial.rs @@ -1,7 +1,7 @@ +use Vector; use super::{Projector, Projection}; use geometry::RegularSpace; use geometry::dimensions::{BoundedDimension, Continuous}; -use ndarray::Array1; use utils::cartesian_product; @@ -49,7 +49,7 @@ impl Projector> for Polynomial { scaled_state.iter().zip(exps).map(|(v, e)| v.powi(*e)).product() }); - Projection::Dense(Array1::from_iter(activations)) + Projection::Dense(Vector::from_iter(activations)) } fn dim(&self) -> usize {