[moved to stan-dev for general discussion]
Expose to what? Do you mean having something in
the language like:
complex a;
with some support for something like
real real_part(complex a);
real complex_part(complex a);
And then support through all the containers (matrices/vectors
and arrays) and user-defined functions.
And what about basic arithmetic operators? Other functions?
I think we could cobble together some I/O format---I don't know
if there's a usual way to do this in any of the interface
languages already.
- Bob
> On Mar 5, 2016, at 12:21 PM, Michael Betancourt <
notifi...@github.com> wrote:
>
> Exposing a complex type which is just a pair would be
> handy as we could then expose FFTs.
>
> On Mar 4, 2016, at 10:38 PM, bgoodri <
notifi...@github.com> wrote:
>
> > I think we should put off the idea of auto-diffing complex vars but fix the original issue that Stan Math can be compiled a std::complex<stan::math::var>.
> >
> > —
> > Reply to this email directly or view it on GitHub.
> >
>
> —
> Reply to this email directly or view it on GitHub.
>