-
-
Notifications
You must be signed in to change notification settings - Fork 5
Annotating the ufuncs #230
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
Comments
Summary of NumPy ufunc signaturesThis includes the supported This only includes the overridable (through These tables were generated with 1 in, 1 out
1 in, 2 out
2 in, 1 out
Note that the 2 in, 2 out
2 in, 3 out
These require 3 in, 1 out
3 in, 3 out
These require 4 in, 1 out
|
ufunc
signature annotationsufunc
s
requires #88
1 in, 1 out
isnat
__call__
- 🏷️ accept only datetime64 and timedelta64 input forisnat
#328at
signbit
__call__
- 🏷️ stubsignbit
#372at
is{finite,inf,nan}
__call__
- 🏷️ ufunc annotations foris{finite,inf,nan.nat}
#320at
bitwise_count
logical_not
__call__
- 🏷️ ufunc annotations forlogical_{not,and,or,xor}
#324at
spacing
__call__
- 🏷️ ufunc annotations forspacing
#363at
[arc]{cos,sin,tan}[h]
,exp[{2,m1}]
,log[{2,10,1p}]
,rint
,sqrt
__call__
- 🏷️ stub unary ufuncs[arc]{cos,sin,tan}[h]
,exp*
,log*
, andrint
#379at
cbrt
,fabs
,deg2rad
,degrees
,radians
,rad2deg
__call__
- 🏷️ ufunc annotations forcbrt
,deg2rad
,degrees
,fabs
,rad2deg
,radians
#373at
invert
ceil
,floor
,trunc
absolute
conj[ugate]
,reciprocal
,square
sign
,negative
,positive
strings
is{alnum,alpha,numeric,decimal,digit,space,lower,upper,title}
__call__
at
str_len
__call__
at
_core.umath
_core.umath._[{l,r}]strip_whitespace
- 🏷️ stub _core.umath._[{l,r}]strip_whitespace #404_core.umath._ones_like
linalg._umath_linalg
all have signature
f->f; d->d; F->F; D->D
det
:(m,m)->()
,{fdFD}->$1
qr_r_raw
:(m,n)->(p)
,{dD}->$1
svd
:(m,n)->(p)
,{fdFD}->$1
eigvals
:(m,m)->(m)
,f->F & {dD}->D
eigvalsh_{lo,up}
:(m,m)->(m)
,{fdFD}->$1
{cholesky_{lo,up}, inv}
:(m,m)->(m,m)
,{fdFD}->$1
1 in, 2 out
frexp
modf
linalg._umath_linalg
slogdet
:(m,m)->(),()
,f->ff, d->dd, F->Ff, D->Dd
eigh_{lo,up}
:(m,m)->(m),(m,m)
,f->ff, d->dd, F->fF, D->dD
eig
:(m,m)->(m),(m,m)
,f->FF, d->DD, D->DD
1 in, 3 out
linalg._umath_linalg
f->fff, d->ddd, F->FfF, D->DdD
svd_f: (m,n)->(m,m),(p),(n,n)
svd_s: (m,n)->(m,p),(p),(p,n)
2 in, 1 out
logical_{and,or,xor}
__call__
- 🏷️ ufunc annotations forlogical_{not,and,or,xor}
#324at
reduce
reduceat
accumulate
outer
{greater,less}[_equal]
,[not_]equal
__call__
at
reduce
reduceat
accumulate
outer
ldexp
float_power
copysign
,heaviside
,logaddexp
,logaddexp2
,nextafter
__call__
- 🏷️ stubcopysign
,heaviside
,logaddexp
,logaddexp2
,nextafter
#376at
reduce
reduceat
accumulate
outer
arctan2
,hypot
divide
gcd
,lcm
,{left,right}_shift
bitwise_{and,or,xor}
fmod
floor_divide
,remainder
,mod
power
multiply
,subtract
f{max,min}
maximum
,minimum
add
matmul
:(n?,k),(k,m?)->(n?,m?)
matvec
:(m,n),(n)->(m)
vecmat
:(n),(n,m)->(m)
vecdot
:(n),(n)->()
_core.umath
_expandtabs
,_zfill
_expandtabs_length
_[{l,r}]strip_chars
linalg._umath_linalg
qr_complete: (m,n),(n)->(m,m)
qr_reduced: (m,n),(k)->(m,k)
solve: (m,m),(m,n)->(m,n)
solve1: (m,m),(m)->(m)
2 in, 2 out
divmod
2 in, 3 out
_core.umath
_[r]partition
3 in, 1 out
_core.umath
_center
,_{l,r}just
clip
3 in, 3 out
_core.umath
_[r]partition_index
3 in, 4 out
linalg._umath_linalg
lstsq
:(m,n),(m,nrhs),()->(n,nrhs),(nrhs),(),(p)
,fff->ffif, ddd->ddid, FFf->Ffif, DDd->Ddid
4 in, 1 out
_core.umath
_replace
{end,start}swith
count
,[r]find
,[r]index
The text was updated successfully, but these errors were encountered: