Open t4c1 opened 4 years ago
This was brought up by Bob a while ago when we were doing the complex stuff.
https://github.com/stan-dev/math/pull/1838#issuecomment-616135990
Is there a benefit to using Eigen's multiply vs. our multiply? I had a branch up that fixed this but it was a lot of pretty goofy things
This is not about ours vs Eigen. We are using c++ operators to do most operations on matrices. It is mildly strange to have to use a function call instead of the operator for just one of them (especially since this special case is not documented). If the Eigen implementation does not work with our types we should specialize operator* for these types to use our implementation.
Description
operator*
(matrix multiplication) does not compile for one input matrix with double and other with var scalars.Both stan and tests always use multiply function, so this went undetected.
Example
Does not compile.
Expected Output
operator*
compiles and does the same as multiply function.Current Version:
v3.3.0