add norm() and norm2(); some polishing

This commit is contained in:
Benoit Jacob
2007-10-08 10:19:49 +00:00
parent ac6ff5efd6
commit 7f0a546a81
2 changed files with 11 additions and 6 deletions

View File

@@ -83,7 +83,8 @@ EiScalarProduct<Derived> \
operator/(const EiObject<Scalar, Derived>& matrix, \
OtherScalar scalar) \
{ \
return matrix * (static_cast<typename Derived::Scalar>(1) / scalar); \
assert(EiTraits<Scalar>::HasFloatingPoint); \
return matrix * (static_cast<Scalar>(1) / scalar); \
} \
\
template<typename Scalar, typename Derived> \