diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-03 21:01:55 +0000 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2008-12-03 21:01:55 +0000 |
commit | c1e2156d8a45e28a07474c483af7580e055feb70 (patch) | |
tree | 9898a7e039393908fd99b68f13d433ec02567794 /Eigen/src/LU | |
parent | 84cc69f0f3fb0e232435d2318006500f47277e4d (diff) |
* Much better, consistent error msgs when mixing different scalar types:
- in matrix-matrix product, static assert on the two scalar types to be the same.
- Similarly in CwiseBinaryOp. POTENTIALLY CONTROVERSIAL: we don't allow anymore binary
ops to take two different scalar types. The functors that we defined take two args
of the same type anyway; also we still allow the return type to be different.
Again the reason is that different scalar types are incompatible with vectorization.
Better have the user realize explicitly what mixing different numeric types costs him
in terms of performance.
See comment in CwiseBinaryOp constructor.
- This allowed to fix a little mistake in test/regression.cpp, mixing float and double
- Remove redundant semicolon (;) after static asserts
Diffstat (limited to 'Eigen/src/LU')
-rw-r--r-- | Eigen/src/LU/Inverse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/LU/Inverse.h b/Eigen/src/LU/Inverse.h index e08ece2c4..cd59290ab 100644 --- a/Eigen/src/LU/Inverse.h +++ b/Eigen/src/LU/Inverse.h @@ -220,7 +220,7 @@ inline void MatrixBase<Derived>::computeInverse(EvalType *result) const { typedef typename ei_eval<Derived>::type MatrixType; ei_assert(rows() == cols()); - EIGEN_STATIC_ASSERT(NumTraits<Scalar>::HasFloatingPoint,scalar_type_must_be_floating_point); + EIGEN_STATIC_ASSERT(NumTraits<Scalar>::HasFloatingPoint,numeric_type_must_be_floating_point) ei_compute_inverse<MatrixType>::run(eval(), result); } |