, shape, order='C', **kwargs)[source]#

Fill a (masked) array following a given mask or shape with the provided data.

This will only create a masked array if kwargs are given (especially a mask). Otherwise this is simply reshaping the given data. Filling is performed in the given array order.


New object with the desired shape and same type as input. Units will be taken from the input if present. Will only be a masked array if kwargs are given.

Return type:

pint.Quantity or numpy.ndarray or

See also


Inverse operation.

Routine consuming kwargs to create a masked array.


Equivalent routine if no mask is provided.


If both mask and shape are given, they need to match in size.