stan-dev / stanc3

The Stan transpiler (from Stan to C++ and beyond).
BSD 3-Clause "New" or "Revised" License
140 stars 44 forks source link

Vectorize to_complex #1208

Closed WardBrian closed 2 years ago

WardBrian commented 2 years ago

This also refactors some of the binary function helpers we have to re-use code between them.

Submission Checklist

Release notes

to_complex is now vectorized. This means signatures like to_complex(matrix, matrix) => complex_matrix are now available.

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)