Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Annotating the ufuncs

未关闭
#230 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
numpy, python
领域
tooling

调研方向

先解决前置 Issue #88,然后使用此 issue 中分组的 checklist 作为 ufunc 注解的范围。payload 中没有指定源文件或测试;完成意味着覆盖剩余列出的 ufunc 签名和操作,包括在有指定时它们的 call、reduction、accumulation、outer 和 linear-algebra 变体。

由索引模型根据 Issue 内容生成。

描述

numpy.ufunc stubs: Enhancement

requires #88


1 in, 1 out

  • isnat
    • __call__ - #328
    • at
  • signbit
    • __call__ - #372
    • at
  • is{finite,inf,nan}
    • __call__ - #320
    • at
  • bitwise_count
  • logical_not
    • __call__ - #324
    • at
  • spacing
    • __call__ - #363
    • at
  • [arc]{cos,sin,tan}[h], exp[{2,m1}], log[{2,10,1p}], rint, sqrt
    • __call__ - #379
    • at
  • cbrt, fabs, deg2rad, degrees, radians, rad2deg
    • __call__ - #373
    • at
  • 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 - #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__ - #324
    • at
    • reduce
    • reduceat
    • accumulate
    • outer
  • {greater,less}[_equal], [not_]equal
    • __call__
    • at
    • reduce
    • reduceat
    • accumulate
    • outer
  • ldexp
  • float_power
  • copysign, heaviside, logaddexp, logaddexp2, nextafter
    • __call__ - #376
    • at
    • 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
主要语言
Python
星标
80
派生
9
平均合并
3 分钟
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

numpy/numtype 的其他 Issue

查看 numpy/numtype 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。