docs icon indicating copy to clipboard operation
docs copied to clipboard

Complex accessor vectorization

Open spinkney opened this issue 2 years ago • 3 comments

Complex accessors are vectorized but documentation just shows that the output is a real.

https://mc-stan.org/docs/functions-reference/complex-constructors.html#complex-accessors

spinkney avatar Nov 01 '23 16:11 spinkney

OK, I'll submit a patch for this now.

bob-carpenter avatar Nov 01 '23 16:11 bob-carpenter

The vectorized versions are currently documented elsewhere: https://mc-stan.org/docs/functions-reference/vectorized-accessor-functions.html#real-and-imaginary-component-accessor-functions

We could unify these, but there's a bit of extra explanation on the types that is nice to call out

WardBrian avatar Nov 01 '23 18:11 WardBrian

I'd be in favor of combining them or at least cross-referencing. There's also the issue of any downstream tools. I hadn't thought that through using complexes and reals.

bob-carpenter avatar Nov 01 '23 18:11 bob-carpenter