Basic question about signature of STAN matrix arithmatic

I want to get an overview of the matrix arithmetic operations available within STAN. The documentation (5.2 Matrix arithmetic operators | Stan Functions Reference) contains the signature of the operations, however, I feel it’s incomplete without providing the return value. They are like the following

vector operator*(matrix x, vector y)
The product of the matrix x and vector y

Without mentioning if it’s a dot product or something else.

The error messages on the other hand are more perfect, showcasing signatures such as,

operation *(row_vector, vector) -> real

I am wondering where can I get such documentation without stepping into error messages.

Thanks

When the documentation states:

vector operator*(matrix x, vector y)

It means that the return type is vector

2 Likes

Damn, I feel dumb now :(

No worries, happens to the best of us!

1 Like