/ lib / numpy / ma / extras.pyi
extras.pyi
 1  from typing import Any
 2  from numpy.lib.index_tricks import AxisConcatenator
 3  
 4  from numpy.ma.core import (
 5      dot as dot,
 6      mask_rowcols as mask_rowcols,
 7  )
 8  
 9  __all__: list[str]
10  
11  def count_masked(arr, axis=...): ...
12  def masked_all(shape, dtype = ...): ...
13  def masked_all_like(arr): ...
14  
15  class _fromnxfunction:
16      __name__: Any
17      __doc__: Any
18      def __init__(self, funcname): ...
19      def getdoc(self): ...
20      def __call__(self, *args, **params): ...
21  
22  class _fromnxfunction_single(_fromnxfunction):
23      def __call__(self, x, *args, **params): ...
24  
25  class _fromnxfunction_seq(_fromnxfunction):
26      def __call__(self, x, *args, **params): ...
27  
28  class _fromnxfunction_allargs(_fromnxfunction):
29      def __call__(self, *args, **params): ...
30  
31  atleast_1d: _fromnxfunction_allargs
32  atleast_2d: _fromnxfunction_allargs
33  atleast_3d: _fromnxfunction_allargs
34  
35  vstack: _fromnxfunction_seq
36  row_stack: _fromnxfunction_seq
37  hstack: _fromnxfunction_seq
38  column_stack: _fromnxfunction_seq
39  dstack: _fromnxfunction_seq
40  stack: _fromnxfunction_seq
41  
42  hsplit: _fromnxfunction_single
43  diagflat: _fromnxfunction_single
44  
45  def apply_along_axis(func1d, axis, arr, *args, **kwargs): ...
46  def apply_over_axes(func, a, axes): ...
47  def average(a, axis=..., weights=..., returned=..., keepdims=...): ...
48  def median(a, axis=..., out=..., overwrite_input=..., keepdims=...): ...
49  def compress_nd(x, axis=...): ...
50  def compress_rowcols(x, axis=...): ...
51  def compress_rows(a): ...
52  def compress_cols(a): ...
53  def mask_rows(a, axis = ...): ...
54  def mask_cols(a, axis = ...): ...
55  def ediff1d(arr, to_end=..., to_begin=...): ...
56  def unique(ar1, return_index=..., return_inverse=...): ...
57  def intersect1d(ar1, ar2, assume_unique=...): ...
58  def setxor1d(ar1, ar2, assume_unique=...): ...
59  def in1d(ar1, ar2, assume_unique=..., invert=...): ...
60  def isin(element, test_elements, assume_unique=..., invert=...): ...
61  def union1d(ar1, ar2): ...
62  def setdiff1d(ar1, ar2, assume_unique=...): ...
63  def cov(x, y=..., rowvar=..., bias=..., allow_masked=..., ddof=...): ...
64  def corrcoef(x, y=..., rowvar=..., bias = ..., allow_masked=..., ddof = ...): ...
65  
66  class MAxisConcatenator(AxisConcatenator):
67      concatenate: Any
68      @classmethod
69      def makemat(cls, arr): ...
70      def __getitem__(self, key): ...
71  
72  class mr_class(MAxisConcatenator):
73      def __init__(self): ...
74  
75  mr_: mr_class
76  
77  def ndenumerate(a, compressed=...): ...
78  def flatnotmasked_edges(a): ...
79  def notmasked_edges(a, axis=...): ...
80  def flatnotmasked_contiguous(a): ...
81  def notmasked_contiguous(a, axis=...): ...
82  def clump_unmasked(a): ...
83  def clump_masked(a): ...
84  def vander(x, n=...): ...
85  def polyfit(x, y, deg, rcond=..., full=..., w=..., cov=...): ...