From 22f8b07159a2428e483eeec9e28e4d08e2251df1 Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Wed, 12 Apr 2017 23:56:57 +0200 Subject: [PATCH] replacing init_array with init_tensor --- include/xtensor-python/pytensor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xtensor-python/pytensor.hpp b/include/xtensor-python/pytensor.hpp index e75a141..d06b3e5 100644 --- a/include/xtensor-python/pytensor.hpp +++ b/include/xtensor-python/pytensor.hpp @@ -323,7 +323,7 @@ namespace xt shape_type shape = forward_sequence(e.derived_cast().shape()); strides_type strides = make_sequence(N, size_type(0)); compute_strides(shape, layout::row_major, strides); - init_array(shape, strides); + init_tensor(shape, strides); semantic_base::assign(e); }