30 if (MatrixType::SizeAtCompileTime ==
Dynamic || MatrixType::SizeAtCompileTime == 0)
33 if (MatrixType::RowsAtCompileTime ==
Dynamic)
35 if (MatrixType::ColsAtCompileTime ==
Dynamic)
38 if (MatrixType::RowsAtCompileTime ==
Dynamic && MatrixType::ColsAtCompileTime ==
Dynamic)
50 if(MatrixType::MaxColsAtCompileTime!=0 && MatrixType::MaxRowsAtCompileTime!=0)
52 Index rows = MatrixType::RowsAtCompileTime==
Dynamic ? internal::random<Index>(1,10) :
Index(MatrixType::RowsAtCompileTime);
53 Index cols = MatrixType::ColsAtCompileTime==
Dynamic ? internal::random<Index>(1,10) :
Index(MatrixType::ColsAtCompileTime);
55 zeroReduction(m.template block<0,MatrixType::ColsAtCompileTime>(0,0,0,cols));
56 zeroReduction(m.template block<MatrixType::RowsAtCompileTime,0>(0,0,rows,0));
59 Matrix<Scalar,Dynamic,Dynamic> prod = m.template block<MatrixType::RowsAtCompileTime,0>(0,0,
rows,0) * m.template block<0,MatrixType::ColsAtCompileTime>(0,0,0,cols);
62 prod = m.template block<1,0>(0,0) * m.template block<0,1>(0,0);
72 if (VectorType::SizeAtCompileTime ==
Dynamic || VectorType::SizeAtCompileTime==0)
86 zeroSizedMatrix<Matrix2d>();
87 zeroSizedMatrix<Matrix3i>();
88 zeroSizedMatrix<Matrix<float, 2, Dynamic> >();
89 zeroSizedMatrix<MatrixXf>();
90 zeroSizedMatrix<Matrix<float, 0, 0> >();
91 zeroSizedMatrix<Matrix<float, Dynamic, 0, 0, 0, 0> >();
92 zeroSizedMatrix<Matrix<float, 0, Dynamic, 0, 0, 0> >();
93 zeroSizedMatrix<Matrix<float, Dynamic, Dynamic, 0, 0, 0> >();
94 zeroSizedMatrix<Matrix<float, 0, 4> >();
95 zeroSizedMatrix<Matrix<float, 4, 0> >();
97 zeroSizedVector<Vector2d>();
98 zeroSizedVector<Vector3i>();
99 zeroSizedVector<VectorXf>();
100 zeroSizedVector<Matrix<float, 0, 1> >();
101 zeroSizedVector<Matrix<float, 1, 0> >();
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index cols() const
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rows() const
void zeroReduction(const MatrixType &m)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DONT_INLINE void prod(const Lhs &a, const Rhs &b, Res &c)
EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex