Closed WardBrian closed 2 years ago
Closes #1221
New function to_int which can down cast reals and real arrays to ints. This is only permitted if the argument is data to avoid breaking autodiffability.
to_int
data
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)
Closes #1221
Submission Checklist
Release notes
New function
to_int
which can down cast reals and real arrays to ints. This is only permitted if the argument isdata
to avoid breaking autodiffability.Copyright and Licensing
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)