numpy.ma.vander#

ma.vander(x, n=None)[source]#

Generate a Vandermonde matrix.

Masked values in the input array result in rows of zeros.

Parameters:
xarray_like

1-D input array.

nint, optional

Number of columns in the output. If n is not specified, a square array is returned.

Returns:
outndarray

Vandermonde matrix.

See also

numpy.vander

Equivalent function for ndarrays.