JuliaDiff / JuliaDiff/ChainRules.jl

Audit use of `zeros` vs `Zero`

Open
#102 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

design performance
Dominant language
Julia
Stars
475
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Some of the code used
zero(X), or @thunk(zero(X))
I feel like if Zero is working right we should be able to replace that with Zero()

E.g.
https://github.com/JuliaDiff/ChainRules.jl/blob/master/test/rules/linalg/factorization.jl

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the repository for zero(X) and @thunk(zero(X)), then inspect the example in test/rules/linalg/factorization.jl. Determine which uses can be replaced with Zero() and confirm the relevant tests still pass; done means the applicable uses are audited and updated consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.