Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy Supported functions #981

Open
hgrecco opened this issue Jan 10, 2020 · 4 comments
Open

Numpy Supported functions #981

hgrecco opened this issue Jan 10, 2020 · 4 comments
Labels
numpy Numpy related bug/enhancement

Comments

@hgrecco
Copy link
Owner

hgrecco commented Jan 10, 2020

This will be a tracking issue for numpy supported functions with NEP-18 array function protocol to serve as information but also inspiration to contribute.

Please do not change existing entries. A new one be added when more functions are supported, just reference this issue with any PR that adds more supported functions.

@hgrecco hgrecco added the numpy Numpy related bug/enhancement label Jan 10, 2020
@hgrecco
Copy link
Owner Author

hgrecco commented Jan 10, 2020

numpy: 1.17.4
pint: 0.10.1
supported: 96 / 227

  • alen
  • all
  • allclose
  • alltrue
  • amax
  • amin
  • angle
  • any
  • append
  • apply_along_axis
  • apply_over_axes
  • argmax
  • argmin
  • argpartition
  • argsort
  • argwhere
  • around
  • array2string
  • array_equal
  • array_equiv
  • array_repr
  • array_split
  • array_str
  • asfarray
  • asscalar
  • atleast_1d
  • atleast_2d
  • atleast_3d
  • average
  • bincount
  • block
  • broadcast_arrays
  • broadcast_to
  • busday_count
  • busday_offset
  • can_cast
  • choose
  • clip
  • column_stack
  • common_type
  • compress
  • concatenate
  • convolve
  • copy
  • copyto
  • corrcoef
  • correlate
  • count_nonzero
  • cov
  • cross
  • cumprod
  • cumproduct
  • cumsum
  • datetime_as_string
  • delete
  • diag
  • diag_indices_from
  • diagflat
  • diagonal
  • diff
  • digitize
  • dot
  • dsplit
  • dstack
  • ediff1d
  • einsum
  • einsum_path
  • empty_like
  • expand_dims
  • extract
  • fill_diagonal
  • fix
  • flatnonzero
  • flip
  • fliplr
  • flipud
  • full_like
  • fv
  • geomspace
  • gradient
  • histogram
  • histogram2d
  • histogram_bin_edges
  • histogramdd
  • hsplit
  • hstack
  • i0
  • imag
  • in1d
  • inner
  • insert
  • interp
  • intersect1d
  • ipmt
  • irr
  • is_busday
  • isclose
  • iscomplex
  • iscomplexobj
  • isin
  • isneginf
  • isposinf
  • isreal
  • isrealobj
  • ix_
  • kron
  • lexsort
  • linspace
  • logspace
  • max
  • may_share_memory
  • mean
  • median
  • meshgrid
  • min
  • min_scalar_type
  • mirr
  • moveaxis
  • msort
  • nan_to_num
  • nanargmax
  • nanargmin
  • nancumprod
  • nancumsum
  • nanmax
  • nanmean
  • nanmedian
  • nanmin
  • nanpercentile
  • nanprod
  • nanquantile
  • nanstd
  • nansum
  • nanvar
  • ndim
  • nonzero
  • nper
  • npv
  • ones_like
  • outer
  • packbits
  • pad
  • partition
  • percentile
  • piecewise
  • place
  • pmt
  • poly
  • polyadd
  • polyder
  • polydiv
  • polyfit
  • polyint
  • polymul
  • polysub
  • polyval
  • ppmt
  • prod
  • product
  • ptp
  • put
  • put_along_axis
  • putmask
  • pv
  • quantile
  • rank
  • rate
  • ravel
  • ravel_multi_index
  • real
  • real_if_close
  • repeat
  • reshape
  • resize
  • result_type
  • roll
  • rollaxis
  • roots
  • rot90
  • round
  • round_
  • row_stack
  • save
  • savetxt
  • savez
  • savez_compressed
  • searchsorted
  • select
  • setdiff1d
  • setxor1d
  • shape
  • shares_memory
  • sinc
  • size
  • sometrue
  • sort
  • sort_complex
  • split
  • squeeze
  • stack
  • std
  • sum
  • swapaxes
  • take
  • take_along_axis
  • tensordot
  • tile
  • trace
  • transpose
  • trapz
  • tril
  • tril_indices_from
  • trim_zeros
  • triu
  • triu_indices_from
  • union1d
  • unique
  • unpackbits
  • unravel_index
  • unwrap
  • vander
  • var
  • vdot
  • vsplit
  • vstack
  • where
  • zeros_like

@hgrecco
Copy link
Owner Author

hgrecco commented Jan 10, 2020

numpy: 1.17.4
pint: 0.10.2.dev4+g2da1be7
supported: 98 / 227

  • alen
  • all
  • allclose
  • alltrue
  • amax
  • amin
  • angle
  • any
  • append
  • apply_along_axis
  • apply_over_axes
  • argmax
  • argmin
  • argpartition
  • argsort
  • argwhere
  • around
  • array2string
  • array_equal
  • array_equiv
  • array_repr
  • array_split
  • array_str
  • asfarray
  • asscalar
  • atleast_1d
  • atleast_2d
  • atleast_3d
  • average
  • bincount
  • block
  • broadcast_arrays
  • broadcast_to
  • busday_count
  • busday_offset
  • can_cast
  • choose
  • clip
  • column_stack
  • common_type
  • compress
  • concatenate
  • convolve
  • copy
  • copyto
  • corrcoef
  • correlate
  • count_nonzero
  • cov
  • cross
  • cumprod
  • cumproduct
  • cumsum
  • datetime_as_string
  • delete
  • diag
  • diag_indices_from
  • diagflat
  • diagonal
  • diff
  • digitize
  • dot
  • dsplit
  • dstack
  • ediff1d
  • einsum
  • einsum_path
  • empty_like
  • expand_dims
  • extract
  • fill_diagonal
  • fix
  • flatnonzero
  • flip
  • fliplr
  • flipud
  • full_like
  • fv
  • geomspace
  • gradient
  • histogram
  • histogram2d
  • histogram_bin_edges
  • histogramdd
  • hsplit
  • hstack
  • i0
  • imag
  • in1d
  • inner
  • insert
  • interp
  • intersect1d
  • ipmt
  • irr
  • is_busday
  • isclose
  • iscomplex
  • iscomplexobj
  • isin
  • isneginf
  • isposinf
  • isreal
  • isrealobj
  • ix_
  • kron
  • lexsort
  • linspace
  • logspace
  • max
  • may_share_memory
  • mean
  • median
  • meshgrid
  • min
  • min_scalar_type
  • mirr
  • moveaxis
  • msort
  • nan_to_num
  • nanargmax
  • nanargmin
  • nancumprod
  • nancumsum
  • nanmax
  • nanmean
  • nanmedian
  • nanmin
  • nanpercentile
  • nanprod
  • nanquantile
  • nanstd
  • nansum
  • nanvar
  • ndim
  • nonzero
  • nper
  • npv
  • ones_like
  • outer
  • packbits
  • pad
  • partition
  • percentile
  • piecewise
  • place
  • pmt
  • poly
  • polyadd
  • polyder
  • polydiv
  • polyfit
  • polyint
  • polymul
  • polysub
  • polyval
  • ppmt
  • prod
  • product
  • ptp
  • put
  • put_along_axis
  • putmask
  • pv
  • quantile
  • rank
  • rate
  • ravel
  • ravel_multi_index
  • real
  • real_if_close
  • repeat
  • reshape
  • resize
  • result_type
  • roll
  • rollaxis
  • roots
  • rot90
  • round
  • round_
  • row_stack
  • save
  • savetxt
  • savez
  • savez_compressed
  • searchsorted
  • select
  • setdiff1d
  • setxor1d
  • shape
  • shares_memory
  • sinc
  • size
  • sometrue
  • sort
  • sort_complex
  • split
  • squeeze
  • stack
  • std
  • sum
  • swapaxes
  • take
  • take_along_axis
  • tensordot
  • tile
  • trace
  • transpose
  • trapz
  • tril
  • tril_indices_from
  • trim_zeros
  • triu
  • triu_indices_from
  • union1d
  • unique
  • unpackbits
  • unravel_index
  • unwrap
  • vander
  • var
  • vdot
  • vsplit
  • vstack
  • where
  • zeros_like

Repository owner locked and limited conversation to collaborators Jan 10, 2020
Repository owner unlocked this conversation Jan 10, 2020
@theRealSuperMario
Copy link

Are you guys open for PRs on adding some operations? I feel like it could not be too hard to do it if I encounter a missing functionality.

I am asking to double check if you have a roadmap for this, just to prevent duplicate efforts.

@hgrecco
Copy link
Owner Author

hgrecco commented Oct 23, 2020

It would be great if you can provide a PR. The list above might be a little bit outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
numpy Numpy related bug/enhancement
Projects
None yet
Development

No branches or pull requests

2 participants