MCPcopy
hub / github.com/numpy/numpy / array

Function array

numpy/ma/core.py:6859–6872  ·  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

6857
6858
6859def array(data, dtype=None, copy=False, order=None,
6860 mask=nomask, fill_value=None, keep_mask=True,
6861 hard_mask=False, shrink=True, subok=True, ndmin=0):
6862 """
6863 Shortcut to MaskedArray.
6864
6865 The options are in a different order for convenience and backwards
6866 compatibility.
6867
6868 """
6869 return MaskedArray(data, mask=mask, dtype=dtype, copy=copy,
6870 subok=subok, keep_mask=keep_mask,
6871 hard_mask=hard_mask, fill_value=fill_value,
6872 ndmin=ndmin, shrink=shrink, order=order)
6873
6874
6875array.__doc__ = masked_array.__doc__

Callers 15

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
test_dtypeMethod · 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…