diff options
author | 2016-06-23 14:27:20 +0200 | |
---|---|---|
committer | 2016-06-23 14:27:20 +0200 | |
commit | 76faf4a9657efeed089aeedc98a769410c32d3d7 (patch) | |
tree | bbfe9d39d8e12ae5cd90ac8cbcb69a54ae81c953 /test/block.cpp | |
parent | 67c12531e567629e84713fbb3150560c916bd08c (diff) |
Introduce a NumTraits<T>::Literal type to be used for literals, and
improve mixing type support in operations between arrays and scalars:
- 2 * ArrayXcf is now optimized in the sense that the integer 2 is properly promoted to a float instead of a complex<float> (fix a regression)
- 2.1 * ArrayXi is now forbiden (previously, 2.1 was converted to 2)
- This mechanism should be applicable to any custom scalar type, assuming NumTraits<T>::Literal is properly defined (it defaults to T)
Diffstat (limited to 'test/block.cpp')
0 files changed, 0 insertions, 0 deletions