extras.pyi 2.6 KB

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