ChainRules.jl
ChainRules.jl copied to clipboard
Replace withsomezeros_rewrap with ProjectTo
code in a few places e.g. norm.jl uses a helper function called withsomezeros that handles making Triangular and Diagonal (etc) matrixes back into the correct types.
This seems very similar to ProjectTo and we could likely replace it with that