You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IndexedSliceLink.py 485 B

5 years ago
12345678910111213
  1. from __future__ import absolute_import
  2. import ctypes
  3. from .._base import _LIB
  4. from .. import ndarray as _nd
  5. def indexedslice_oneside_add(indslice, output, stream=None):
  6. assert isinstance(indslice.indices, _nd.NDArray)
  7. assert isinstance(indslice.values, _nd.NDArray)
  8. assert isinstance(output, _nd.NDArray)
  9. _LIB.IndexedSlicesOneSideAdd(indslice.indices.handle, indslice.values.handle, output.handle,
  10. stream.handle if stream else None)