Yes, it's possible. Check out the doc for operator* to see
what the possible arguments are. For products, we have both:
outer product:
matrix operator*(vector,row_vector)
inner product:
real operator*(row_vector,vector)
and both are written just as (a * b) with a and b of different
types. Basically, Stan figures out what the operation entails and
the tightest return type that can be inferred. That way, you can
just use matrix notation for everything.
- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.