From df56518b5c31049cb68dcf83e959ff7fb515ba83 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 11 Aug 2017 00:49:22 -0400 Subject: [PATCH] Directly create an ArrayView from a table. --- source/grid/manifold.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source/grid/manifold.cc b/source/grid/manifold.cc index 1968c74bbc..c455a8a759 100644 --- a/source/grid/manifold.cc +++ b/source/grid/manifold.cc @@ -122,18 +122,12 @@ add_new_points (const ArrayView> &surrounding_points, { AssertDimension(surrounding_points.size(), weights.size(1)); - const std::size_t n_points = surrounding_points.size(); - // TODO find a better dimension-dependent estimate for the size of this - // vector - boost::container::small_vector local_weights(n_points); for (unsigned int row=0; row