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

Expose eigenvectors and eigenvalues functions for real matrices #1192

Closed WardBrian closed 2 years ago

WardBrian commented 2 years ago

Submission Checklist

Release notes

Added eigenvectors and eigenvalues functions which return the complex-valued eigenvectors or eigenvalues of a real (asymmetrix) matrix.

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)

WardBrian commented 2 years ago

Note: just looking at the C++ for these functions in the math library, I believe this will fail expression tests. These functions are not templated

WardBrian commented 2 years ago

Currently running this against https://github.com/stan-dev/math/pull/2728. It would not be ready to merge until that is accepted