Remove superfluous import
This commit is contained in:
parent
d16b274fe0
commit
9679ae5ba2
|
@ -52,7 +52,6 @@ impl InterpolationOperator for Interpolation8 {
|
||||||
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
|
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
|
||||||
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
||||||
use ndarray::prelude::*;
|
use ndarray::prelude::*;
|
||||||
use std::iter::FromIterator;
|
|
||||||
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
|
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
|
||||||
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
|
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -64,7 +63,6 @@ impl InterpolationOperator for Interpolation8 {
|
||||||
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
|
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
|
||||||
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
||||||
use ndarray::prelude::*;
|
use ndarray::prelude::*;
|
||||||
use std::iter::FromIterator;
|
|
||||||
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
|
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
|
||||||
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
|
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
|
@ -53,7 +53,6 @@ impl InterpolationOperator for Interpolation9 {
|
||||||
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
|
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
|
||||||
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
||||||
use ndarray::prelude::*;
|
use ndarray::prelude::*;
|
||||||
use std::iter::FromIterator;
|
|
||||||
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
|
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
|
||||||
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
|
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -65,7 +64,6 @@ impl InterpolationOperator for Interpolation9 {
|
||||||
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
|
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
|
||||||
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
assert_eq!(fine.len(), 2 * coarse.len() - 1);
|
||||||
use ndarray::prelude::*;
|
use ndarray::prelude::*;
|
||||||
use std::iter::FromIterator;
|
|
||||||
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
|
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
|
||||||
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
|
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
|
@ -53,7 +53,6 @@ impl InterpolationOperator for Interpolation9h2 {
|
||||||
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
|
fn fine2coarse(&self, fine: ArrayView1<Float>, coarse: ArrayViewMut1<Float>) {
|
||||||
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
|
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
|
||||||
use ndarray::prelude::*;
|
use ndarray::prelude::*;
|
||||||
use std::iter::FromIterator;
|
|
||||||
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
|
let block = Array::from_iter(Self::F2C_BLOCK.iter().flatten().copied())
|
||||||
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
|
.into_shape((Self::F2C_BLOCK.len(), Self::F2C_BLOCK[0].len()))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -65,7 +64,6 @@ impl InterpolationOperator for Interpolation9h2 {
|
||||||
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
|
fn coarse2fine(&self, coarse: ArrayView1<Float>, fine: ArrayViewMut1<Float>) {
|
||||||
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
|
assert_eq!(fine.len(), 2 * (coarse.len() - 1));
|
||||||
use ndarray::prelude::*;
|
use ndarray::prelude::*;
|
||||||
use std::iter::FromIterator;
|
|
||||||
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
|
let block = Array::from_iter(Self::C2F_BLOCK.iter().flatten().copied())
|
||||||
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
|
.into_shape((Self::C2F_BLOCK.len(), Self::C2F_BLOCK[0].len()))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in New Issue