MCPcopy Create free account
hub / github.com/numpy/numpy / array

Function array

numpy/ma/core.py:6660–6673  ·  view source on GitHub ↗

Shortcut to MaskedArray. The options are in a different order for convenience and backwards compatibility.

(data, dtype=None, copy=False, order=None,
          mask=nomask, fill_value=None, keep_mask=True,
          hard_mask=False, shrink=True, subok=True, ndmin=0)

Source from the content-addressed store, hash-verified

6658
6659
6660def array(data, dtype=None, copy=False, order=None,
6661 mask=nomask, fill_value=None, keep_mask=True,
6662 hard_mask=False, shrink=True, subok=True, ndmin=0):
6663 """
6664 Shortcut to MaskedArray.
6665
6666 The options are in a different order for convenience and backwards
6667 compatibility.
6668
6669 """
6670 return MaskedArray(data, mask=mask, dtype=dtype, copy=copy,
6671 subok=subok, keep_mask=keep_mask,
6672 hard_mask=hard_mask, fill_value=fill_value,
6673 ndmin=ndmin, shrink=shrink, order=order)
6674array.__doc__ = masked_array.__doc__
6675
6676

Callers 15

polyFunction · 0.90
__init__Method · 0.90
test_basicMethod · 0.90
test_uint64Method · 0.90
test_diagMethod · 0.90
test_2dMethod · 0.90
test_diag2dMethod · 0.90
test_fortran_orderMethod · 0.90
test_simpleMethod · 0.90
test_asymMethod · 0.90
test_densityMethod · 0.90
test_emptyMethod · 0.90

Calls 1

MaskedArrayClass · 0.85

Tested by 15

test_basicMethod · 0.72
test_uint64Method · 0.72
test_diagMethod · 0.72
test_2dMethod · 0.72
test_diag2dMethod · 0.72
test_fortran_orderMethod · 0.72
test_simpleMethod · 0.72
test_asymMethod · 0.72
test_densityMethod · 0.72
test_emptyMethod · 0.72
test_dtypeMethod · 0.72