text: from __future__ import absolute_import
  
  import ctypes
  from .._base import _LIB
  from .. import ndarray as _nd
  
  
  def matrix_elementwise_multiply(matA, matB, matC, stream=None):
      assert isinstance(matA, _nd.NDArray)
      assert isinstance(matB, _nd.NDArray)
      assert isinstance(matC, _nd.NDArray)
      _LIB.DLGpuMatrixElementwiseMultiply(
          matA.handle, matB.handle, matC.handle, stream.handle if stream else None)
  