| 116 | */ |
| 117 | EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE |
| 118 | Block(XprType& xpr, Index i) : Impl(xpr,i) |
| 119 | { |
| 120 | eigen_assert( (i>=0) && ( |
| 121 | ((BlockRows==1) && (BlockCols==XprType::ColsAtCompileTime) && i<xpr.rows()) |
| 122 | ||((BlockRows==XprType::RowsAtCompileTime) && (BlockCols==1) && i<xpr.cols()))); |
| 123 | } |
| 124 | |
| 125 | /** Fixed-size constructor |
| 126 | */ |