lsst.geom  21.0.0-2-g8f08a60+4fac22bdb7
Public Member Functions | List of all members
lsst.geom._Interval.IntervalI Class Reference

Public Member Functions

def range (self)
 
def arange (self, dtype=np.int32)
 
def slice (self)
 

Detailed Description

Definition at line 31 of file _Interval.py.

Member Function Documentation

◆ arange()

def lsst.geom._Interval.IntervalI.arange (   self,
  dtype = np.int32 
)
Return an array containing all points in the interval.

Parameters
----------
dtype : convertible to `numpy.dtype`
    The data type of the returned arrays.

Returns
-------
points : `numpy.ndarray`
    1-d array with `size == self.size` containing points.

Definition at line 44 of file _Interval.py.

◆ range()

def lsst.geom._Interval.IntervalI.range (   self)
Return a `range` object containing all points in the interval.

Returns
-------
range : `range`
    Range instance that can be used to iterate over all points in the
    interval.

Definition at line 33 of file _Interval.py.

◆ slice()

def lsst.geom._Interval.IntervalI.slice (   self)
Return a `slice` object corresponding to the interval's points.

Returns
-------
slice : `slice`
    Slice instance that can be used to select the elements of a
    container that correspond to the points in the interval.

Definition at line 59 of file _Interval.py.


The documentation for this class was generated from the following file: