Inlining fixes + fixed typo.

Removed ei_assert in presence of static assert.
This commit is contained in:
Hauke Heibel
2009-10-15 21:07:14 +02:00
parent 1503043981
commit d177c1f3ac
2 changed files with 11 additions and 2 deletions

View File

@@ -147,7 +147,6 @@ EIGEN_STRONG_INLINE const CwiseNullaryOp<CustomNullaryOp, Derived>
MatrixBase<Derived>::NullaryExpr(int size, const CustomNullaryOp& func)
{
EIGEN_STATIC_ASSERT_VECTOR_ONLY(Derived)
ei_assert(IsVectorAtCompileTime);
if(RowsAtCompileTime == 1) return CwiseNullaryOp<CustomNullaryOp, Derived>(1, size, func);
else return CwiseNullaryOp<CustomNullaryOp, Derived>(size, 1, func);
}