def copyto(dst, src, casting='same_kind', where=None):
 if (not numpy.can_cast(src.dtype, dst.dtype, casting)):
  raise TypeError(('Cannot cast %s to %s in %s casting mode' % (src.dtype, dst.dtype, casting)))
 if (dst.size == 0):
  return
 if (where is None):
  if _can_memcpy(dst, src):
   dst.data.copy_from(src.data, src.nbytes)
  else:
   core.elementwise_copy(src, dst)
 else:
  core.elementwise_copy_where(src, where, dst)

def copyto ( dst , src , casting = 'same_kind' , where = None ) : if ( not numpy . can_cast ( src . dtype , dst . dtype , casting ) ) : raise TypeError ( ( 'Cannot cast %s to %s in %s casting mode' % ( src . dtype , dst . dtype , casting ) ) ) if ( dst . size == 0 ) : return if ( where is None ) : if _can_memcpy ( dst , src ) : dst . data . copy_from ( src . data , src . nbytes ) else : core . elementwise_copy ( src , dst ) else : core . elementwise_copy_where ( src , where , dst )
copies values from one array to another with broadcasting .