From ecf11a6710a354db52dfb5fe073ee1ce6e15bd3e Mon Sep 17 00:00:00 2001 From: Elliott Forney Date: Mon, 10 Oct 2016 16:33:45 -0600 Subject: Fix to meshgrid allows passing array sub-classes --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index bbd5eb984..29de703d8 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3463,7 +3463,7 @@ def meshgrid(*xi, **kwargs): if not sparse and len(output) > 0: # Return the full N-D matrix (not only the 1-D vector) - output = np.broadcast_arrays(*output) + output = np.broadcast_arrays(*output, subok=True) return output -- cgit v1.2.1