cirq_google.api.v2.ndarrays.to_int32_array

Populate a new or provided Int32Array message with given numpy array.

Supports any int type taking <=4 bytes. If given e.g. an 8-bit or 16-bit integer, it will recast (sign extend) as a 32-bit integer and serialize.

Note that this only accepts signed integers.

array Array to add.
out Message to add to.