def update_array_info(aryty, array):
 context = array._context
 builder = array._builder
 nitems = context.get_constant(types.intp, 1)
 unpacked_shape = cgutils.unpack_tuple(builder, array.shape, aryty.ndim)
 for axlen in unpacked_shape:
  nitems = builder.mul(nitems, axlen, flags=['nsw'])
 array.nitems = nitems
 array.itemsize = context.get_constant(types.intp, get_itemsize(context, aryty))

def update_array_info ( aryty , array ) : context = array . _context builder = array . _builder nitems = context . get_constant ( types . intp , 1 ) unpacked_shape = cgutils . unpack_tuple ( builder , array . shape , aryty . ndim ) for axlen in unpacked_shape : nitems = builder . mul ( nitems , axlen , flags = [ 'nsw' ] ) array . nitems = nitems array . itemsize = context . get_constant ( types . intp , get_itemsize ( context , aryty ) )
update some auxiliary information in *array* after some of its fields were changed .