Remove superfluous import

This commit is contained in:
Magnus Ulimoen 2021-11-21 11:20:42 +01:00
parent d16b274fe0
commit 9679ae5ba2
3 changed files with 0 additions and 6 deletions

View File

@ -52,7 +52,6 @@ impl InterpolationOperator for Interpolation8 {
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
assert_eq!(fine.len(), 2 * coarse.len() - 1);
use ndarray::prelude::*;
use std::iter::FromIterator;
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
.unwrap();
@ -64,7 +63,6 @@ impl InterpolationOperator for Interpolation8 {
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
assert_eq!(fine.len(), 2 * coarse.len() - 1);
use ndarray::prelude::*;
use std::iter::FromIterator;
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
.unwrap();

View File

@ -53,7 +53,6 @@ impl InterpolationOperator for Interpolation9 {
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
assert_eq!(fine.len(), 2 * coarse.len() - 1);
use ndarray::prelude::*;
use std::iter::FromIterator;
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
.unwrap();
@ -65,7 +64,6 @@ impl InterpolationOperator for Interpolation9 {
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
assert_eq!(fine.len(), 2 * coarse.len() - 1);
use ndarray::prelude::*;
use std::iter::FromIterator;
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
.unwrap();

View File

@ -53,7 +53,6 @@ impl InterpolationOperator for Interpolation9h2 {
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
use ndarray::prelude::*;
use std::iter::FromIterator;
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
.unwrap();
@ -65,7 +64,6 @@ impl InterpolationOperator for Interpolation9h2 {
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
use ndarray::prelude::*;
use std::iter::FromIterator;
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
.unwrap();