Can anyone tell me what the R stands for in the absolute function defined in the function reference manual?
R abs(T x)
Can anyone tell me what the R stands for in the absolute function defined in the function reference manual?
R abs(T x)
Good question. @Bob_Carpenter answered a question like this on GitHub here
but to be honest I can’t find this information in the functions reference anywhere. @Bob_Carpenter @mitzimorris am I just missing it or is this not covered anywhere?
I think this is something that should be covered in the unary vectorisation section of the manual here, since it refers to the vectorised functions returning the same container/shape as the input, but the type will be promoted as relevant.
For example:
real abs(int x)
vector abs(vector x)
and so on.
@hasibul212003 does that help?
Thanks. That made it clear.