JuliaDiff / JuliaDiff/ChainRulesCore.jl
Function to find the Differential type for a given primal type
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 267
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
When declaring rules for constructors of parameteric types (e.g. Arrays)
one needs too know what the parameter type of the elements are.
We should define a helper for this.
Its probaly something like:
differential_type(::Type{<:Any})) = Any
differential_type(T::Type{<:Real}) = Union(AbstractZero, T)
differential_type(::Array{T}) where T = Array{differential_type(T)}
This is primarily for use for type parameters of zero arg constructors.
Rather than the general way to do it
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by locating the existing rules for parameteric types and zero-argument constructors, then compare them with the proposed differential_type signatures. Done means an agreed helper API is implemented for the stated primal-type cases and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100