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 unary minus #1266

Closed WardBrian closed 1 year ago

WardBrian commented 1 year ago

Closes #529, depends on https://github.com/stan-dev/math/pull/2840

Submission Checklist

Release notes

The negation operator - can now accept arrays, e.g. array[N] int foo = {...}; print(-foo);

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)