-
Notifications
You must be signed in to change notification settings - Fork 0
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
Promote all values before constructing types? #25
Comments
We need to add |
Similar issues: FluxML/Zygote.jl#686 |
singularitti
added a commit
that referenced
this issue
Feb 22, 2023
singularitti
added a commit
that referenced
this issue
Feb 22, 2023
singularitti
added a commit
to MineralsCloud/LinearElasticity.jl
that referenced
this issue
Feb 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example, in the following code:
e
will haveReal
as its element type, notFloat64
. However,Real
is not a bits type:which will cause the following error when setting indices:
So we must promote the element type before constructing any of
EngineeringStrain
, etc.The text was updated successfully, but these errors were encountered: