class_docstr: This class simply exists to hold the methods necessary for fancy indexing.
class_docstr_tok: ["This","class","simply","exists","to","hold","the","methods","necessary","for","fancy","indexing","."]
docstr: Given a slice object, use numpy arange to change it to a 1D
  array.
docstr_tok: ["Given","a","slice","object",",","use","numpy","arange","to","change","it","to","a","1D","array","."]
code: def _slicetoarange(self, j, shape):
      """Given a slice object, use numpy arange to change it to a 1D
      array.
      """
      start, stop, step = j.indices(shape)
      return np.arange(start, stop, step)
  
imports: from __future__ import division, print_function, absolute_import
  import operator
  import warnings
  import numpy
  from scipy._lib._version import NumpyVersion
label_desc: Use image node_id 1 for calling the IndexMixin obj's underlying member method code with example usage: obj._slicetoarange(j, shape) and returns: np