-
Notifications
You must be signed in to change notification settings - Fork 38
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
Inexact error when constructing SymmetricTensor
#224
Comments
Is there a reason why symmetric(N ⋅ D ⋅ N') If you need to keep them as matrices, perhaps casting to symmetric(Tensor{2, 𝔇}(N * diagm(S) * N')) |
Hi Thank you for your quick answer. This actually helped me. I didn't know about the |
Note that |
Could be usefule to export Lines 68 to 75 in b7dae0e
|
Thank you fir your help, this is indeed very useful. |
Dear all,
I now came across the following behavior multiple times.
When costructing a
SymmetricTensor
, either from an expression or aMatrix
i sometimes get anInexactError
.produces
as you can see the off diagonal entry only differs at the last digit. Is there somehow a way to set a tolerance for the symmetry check?
As far as i can tell the check happens here:
Tensors.jl/src/symmetric.jl
Line 86 in b7dae0e
Of course you can circumvent the check by doing the construction via a function
But this adds another line and sometimes a symmetry check (with a tolerance) might be beneficial.
Thank you so much
The text was updated successfully, but these errors were encountered: