Registered Member
|
To get the desired behavior, I need to do:
Is there a simpler way of doing the above? The Scalar operations defined in Eigen DenseBase all casts the provided scalar to the Scalar type of the DenseBase. Why not make these methods templated on arbitrary scalar types? |
Moderator
|
Because we do not allow mixing types implicitly: this kills vectorization and in most cases it means the user is doing something work like multiplying integers by 0.5 instead of dividing by 2.
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]