Main MRPT website > C++ reference
MRPT logo
Classes | Namespaces | Defines

StaticAssert.h File Reference

Go to the source code of this file.

Classes

struct  internal::static_assertion< condition >
struct  internal::static_assertion< true >

Namespaces

namespace  internal
 

Applies the clock wise 2D rotation j to the set of 2D vectors of cordinates x and y: $ \left ( \begin{array}{cc} x \\ y \end{array} \right ) = J \left ( \begin{array}{cc} x \\ y \end{array} \right ) $


Defines

#define EIGEN_STATIC_ASSERT(CONDITION, MSG)   if (Eigen::internal::static_assertion<bool(CONDITION)>::MSG) {}
#define EIGEN_STATIC_ASSERT_VECTOR_ONLY(TYPE)
#define EIGEN_STATIC_ASSERT_FIXED_SIZE(TYPE)
#define EIGEN_STATIC_ASSERT_DYNAMIC_SIZE(TYPE)
#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(TYPE, SIZE)
#define EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE(TYPE, ROWS, COLS)
#define EIGEN_STATIC_ASSERT_SAME_VECTOR_SIZE(TYPE0, TYPE1)
#define EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0, TYPE1)
#define EIGEN_STATIC_ASSERT_NON_INTEGER(TYPE)   EIGEN_STATIC_ASSERT(!NumTraits<TYPE>::IsInteger, THIS_FUNCTION_IS_NOT_FOR_INTEGER_NUMERIC_TYPES)
#define EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE(TYPE0, TYPE1)
#define EIGEN_STATIC_ASSERT_SIZE_1x1(TYPE)
#define EIGEN_STATIC_ASSERT_LVALUE(Derived)

Define Documentation

#define EIGEN_PREDICATE_SAME_MATRIX_SIZE (   TYPE0,
  TYPE1 
)
Value:
( \
        (int(TYPE0::SizeAtCompileTime)==0 && int(TYPE1::SizeAtCompileTime)==0) \
    || (\
          (int(TYPE0::RowsAtCompileTime)==Eigen::Dynamic \
        || int(TYPE1::RowsAtCompileTime)==Eigen::Dynamic \
        || int(TYPE0::RowsAtCompileTime)==int(TYPE1::RowsAtCompileTime)) \
      &&  (int(TYPE0::ColsAtCompileTime)==Eigen::Dynamic \
        || int(TYPE1::ColsAtCompileTime)==Eigen::Dynamic \
        || int(TYPE0::ColsAtCompileTime)==int(TYPE1::ColsAtCompileTime))\
       ) \
     )

Definition at line 161 of file StaticAssert.h.

Referenced by MatrixBase< Derived >::lazyProduct(), MatrixBase< Derived >::operator*(), and SparseSparseProduct< LhsNested, RhsNested >::SparseSparseProduct().

#define EIGEN_STATIC_ASSERT (   CONDITION,
  MSG 
)    if (Eigen::internal::static_assertion<bool(CONDITION)>::MSG) {}

Definition at line 114 of file StaticAssert.h.

Referenced by Block< VectorType, internal::traits< VectorType >::Flags &RowMajorBit?1:Size, internal::traits< VectorType >::Flags &RowMajorBit?Size:1 >::Block(), MapBase< Derived, ReadOnlyAccessors >::checkSanity(), CoeffBasedProduct< LhsNested, RhsNested, NestingFlags >::CoeffBasedProduct(), SparseMatrixBase< Derived >::col(), internal::BandMatrix< Scalar, Size, Size, Options &SelfAdjoint?0:1, 1, Options|RowMajor >::col(), AlignedBox< _Scalar, _AmbientDim >::corner(), VectorwiseOp< ExpressionType, Direction >::cross(), SparseMatrixBase< Derived >::dot(), MatrixBase< Derived >::dot(), DenseBase< TriangularProduct< Mode, true, Lhs, false, Rhs, true > >::evalTo(), Rotation2D< _Scalar >::fromRotationMatrix(), GeneralProduct< Lhs, Rhs, OuterProduct >::GeneralProduct(), GeneralProduct< Lhs, Rhs, InnerProduct >::GeneralProduct(), MatrixBase< Derived >::inverse(), MatrixBase< Derived >::lazyProduct(), QuaternionBase< Derived >::operator*(), MatrixBase< Derived >::operator*(), MatrixBase< TriangularProduct< Mode, true, Lhs, false, Rhs, true > >::operator+=(), ArrayBase< ArrayWrapper< ExpressionType > >::operator-=(), QuaternionBase< Derived >::operator=(), DenseCoeffsBase< Derived, WriteAccessors >::operator[](), DenseCoeffsBase< Derived, ReadOnlyAccessors >::operator[](), Transform< _Scalar, _Dim, _Mode >::prescale(), Transform< _Scalar, _Dim, _Mode >::preshear(), MatrixBase< TriangularProduct< Mode, true, Lhs, false, Rhs, true > >::removeRows(), Replicate< MatrixType, RowFactor, ColFactor >::Replicate(), SparseMatrixBase< Derived >::row(), internal::transform_right_product_impl< TransformType, MatrixType, false >::run(), Transform< _Scalar, _Dim, _Mode >::scale(), TriangularView< _MatrixType, _Mode >::selfadjointView(), Transform< _Scalar, _Dim, _Mode >::shear(), SparseDenseOuterProduct< Lhs, Rhs, Tr >::SparseDenseOuterProduct(), SparseSparseProduct< LhsNested, RhsNested >::SparseSparseProduct(), SparseMatrixBase< Derived >::subcols(), SparseMatrixBase< Derived >::subrows(), internal::toRotationMatrix(), Transform< _Scalar, _Dim, _Mode >::Transform(), umeyama(), and ArrayBase< ArrayWrapper< ExpressionType > >::unaryViewExpr().

#define EIGEN_STATIC_ASSERT_DYNAMIC_SIZE (   TYPE)
Value:
EIGEN_STATIC_ASSERT(TYPE::SizeAtCompileTime==Eigen::Dynamic, \
                      YOU_CALLED_A_DYNAMIC_SIZE_METHOD_ON_A_FIXED_SIZE_MATRIX_OR_VECTOR)

Definition at line 139 of file StaticAssert.h.

Referenced by internal::conservative_resize_like_impl< Derived, OtherDerived, IsVector >::run().

#define EIGEN_STATIC_ASSERT_FIXED_SIZE (   TYPE)
Value:
EIGEN_STATIC_ASSERT(TYPE::SizeAtCompileTime!=Eigen::Dynamic, \
                      YOU_CALLED_A_FIXED_SIZE_METHOD_ON_A_DYNAMIC_SIZE_MATRIX_OR_VECTOR)

Definition at line 134 of file StaticAssert.h.

Referenced by DenseBase< Derived >::Constant(), MatrixBase< Derived >::Identity(), DenseBase< Derived >::LinSpaced(), and MapBase< Derived, ReadOnlyAccessors >::MapBase().

#define EIGEN_STATIC_ASSERT_LVALUE (   Derived)
#define EIGEN_STATIC_ASSERT_MATRIX_SPECIFIC_SIZE (   TYPE,
  ROWS,
  COLS 
)
Value:
EIGEN_STATIC_ASSERT(TYPE::RowsAtCompileTime==ROWS && TYPE::ColsAtCompileTime==COLS, \
                      THIS_METHOD_IS_ONLY_FOR_MATRICES_OF_A_SPECIFIC_SIZE)

Definition at line 149 of file StaticAssert.h.

Referenced by MatrixBase< Derived >::eulerAngles(), Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Matrix(), and Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::operator=().

#define EIGEN_STATIC_ASSERT_NON_INTEGER (   TYPE)    EIGEN_STATIC_ASSERT(!NumTraits<TYPE>::IsInteger, THIS_FUNCTION_IS_NOT_FOR_INTEGER_NUMERIC_TYPES)
#define EIGEN_STATIC_ASSERT_SAME_MATRIX_SIZE (   TYPE0,
  TYPE1 
)
Value:
EIGEN_STATIC_ASSERT( \
     EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0,TYPE1),\
    YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES)

Definition at line 178 of file StaticAssert.h.

Referenced by CwiseBinaryOp< BinaryOp, Lhs, Rhs >::CwiseBinaryOp(), and SelfCwiseBinaryOp< BinaryOp, Lhs, Rhs >::lazyAssign().

#define EIGEN_STATIC_ASSERT_SAME_VECTOR_SIZE (   TYPE0,
  TYPE1 
)
Value:
EIGEN_STATIC_ASSERT( \
      (int(TYPE0::SizeAtCompileTime)==Eigen::Dynamic \
    || int(TYPE1::SizeAtCompileTime)==Eigen::Dynamic \
    || int(TYPE0::SizeAtCompileTime)==int(TYPE1::SizeAtCompileTime)),\
    YOU_MIXED_VECTORS_OF_DIFFERENT_SIZES)

Definition at line 154 of file StaticAssert.h.

Referenced by SparseMatrixBase< Derived >::dot(), and MatrixBase< Derived >::dot().

#define EIGEN_STATIC_ASSERT_SIZE_1x1 (   TYPE)
Value:
EIGEN_STATIC_ASSERT((TYPE::RowsAtCompileTime == 1 || TYPE::RowsAtCompileTime == Dynamic) && \
                          (TYPE::ColsAtCompileTime == 1 || TYPE::ColsAtCompileTime == Dynamic), \
                          THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS)

Definition at line 183 of file StaticAssert.h.

Referenced by ProductBase< SelfadjointProductMatrix< Lhs, LhsMode, false, Rhs, RhsMode, false >, Lhs, Rhs >::coeff(), and ProductBase< SelfadjointProductMatrix< Lhs, LhsMode, false, Rhs, RhsMode, false >, Lhs, Rhs >::coeffRef().

#define EIGEN_STATIC_ASSERT_VECTOR_ONLY (   TYPE)
Value:
EIGEN_STATIC_ASSERT(TYPE::IsVectorAtCompileTime, \
                      YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX)

Definition at line 129 of file StaticAssert.h.

Referenced by Array< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::Array(), SparseMatrixBase< Derived >::dot(), MatrixBase< Derived >::dot(), VectorwiseOp< ExpressionType, Direction >::extendedTo(), DenseBase< Derived >::head(), MatrixBase< Derived >::hnormalized(), MatrixBase< Derived >::homogeneous(), SparseInnerVectorSet< SparseMatrix< _Scalar, _Options, _Index >, Size >::lastCoeff(), SparseInnerVectorSet< DynamicSparseMatrix< _Scalar, _Options >, Size >::lastCoeff(), DenseBase< Derived >::LinSpaced(), MatrixBase< Derived >::makeHouseholder(), MapBase< Derived, ReadOnlyAccessors >::MapBase(), Matrix< Scalar, Rows, HDim >::Matrix(), DenseBase< Derived >::maxCoeff(), DenseBase< Derived >::minCoeff(), DenseBase< Derived >::NullaryExpr(), VectorwiseOp< ExpressionType, Direction >::operator+(), VectorwiseOp< ExpressionType, Direction >::operator+=(), VectorwiseOp< ExpressionType, Direction >::operator-(), VectorwiseOp< ExpressionType, Direction >::operator-=(), VectorwiseOp< ExpressionType, Direction >::operator=(), PlainObjectBase< Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::resize(), DenseBase< Derived >::segment(), DenseBase< Derived >::setLinSpaced(), DenseBase< Derived >::tail(), MatrixBase< Derived >::Unit(), MatrixBase< Derived >::unitOrthogonal(), and VectorBlock< VectorType, Size >::VectorBlock().

#define EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE (   TYPE,
  SIZE 
)



Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:16:28 UTC 2011