-
Notifications
You must be signed in to change notification settings - Fork 26
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
Symmetric double counts #164
Comments
This feels to me like one of the peculiarities of using a It relates to #132 I believe. If we pretend for a minute that the Tangent{Symmetric}(parent=[1 0; 2 1]) (or something like that). I _ think_ the problem comes in when we convert between representations. In particular, we don't use a To convert between the strutural and natural cotangent for Does that make sense as an explanation for what is going on (even if it doesn't provide an obvious solution)? edit: I suspect giving the |
I wonder if it would just work if one uses the same approach as in #146 - similar to |
Right, and that would be realtively simple, in that we would fix our Triangular matrixes to do that (right now they also go via |
I agree with both of you, but I would direct you towards #132 -- we'll be changing semantics by doing this. |
Although it is a fundamental change and probably breaks some things, I think one should change I would expect This makes me wonder if there is a fundamental difference between |
Glad we all agree -- doing this should simplify a number of implementations as well, which is nice. |
Consider: we know that the derviative of any
sum
of a collection of ones similar to the input.because it is
sum(xs) = x[1] + x[2] + ...
.However for
Symmetric
it is giving2
for the anti-diagonal on a 2x2 matrix.Similar issues occur for
prod
which came up in https://github.com/JuliaDiff/ChainRules.jl/pull/335/filesSomething must be wrong with out we are defining
to_vec
.FiniteDifferences.jl/src/to_vec.jl
Lines 90 to 96 in 266d6fa
The text was updated successfully, but these errors were encountered: