Lines Matching refs:BlockCols
23 * \param BlockCols the number of columns of the block we are taking at compile time (optional)
50 template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
51 struct traits<Block<XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess> > : traits<XprType>
62 ColsAtCompileTime = MatrixCols == 0 ? 0 : BlockCols,
66 MaxColsAtCompileTime = BlockCols==0 ? 0
97 template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess> class Block
98 : public internal::dense_xpr_base<Block<XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess> >::type
111 // It is a row if and only if BlockRows==1 and BlockCols==XprType::ColsAtCompileTime,
112 // and it is a column if and only if BlockRows==XprType::RowsAtCompileTime and BlockCols==1,
115 m_startRow( (BlockRows==1) && (BlockCols==XprType::ColsAtCompileTime) ? i : 0),
116 m_startCol( (BlockRows==XprType::RowsAtCompileTime) && (BlockCols==1) ? i : 0),
118 m_blockCols(BlockCols==1 ? 1 : xpr.cols())
121 ((BlockRows==1) && (BlockCols==XprType::ColsAtCompileTime) && i<xpr.rows())
122 ||((BlockRows==XprType::RowsAtCompileTime) && (BlockCols==1) && i<xpr.cols())));
129 m_blockRows(BlockRows), m_blockCols(BlockCols)
133 && startCol >= 0 && BlockCols >= 1 && startCol + BlockCols <= xpr.cols());
140 Index blockRows, Index blockCols)
142 m_blockRows(blockRows), m_blockCols(blockCols)
145 && (ColsAtCompileTime==Dynamic || ColsAtCompileTime==blockCols));
147 && startCol >= 0 && blockCols >= 0 && startCol + blockCols <= xpr.cols());
257 template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel>
258 class Block<XprType,BlockRows,BlockCols, InnerPanel,true>
259 : public MapBase<Block<XprType, BlockRows, BlockCols, InnerPanel, true> >
272 (BlockRows==1) && (BlockCols==XprType::ColsAtCompileTime) ? i : 0,
273 (BlockRows==XprType::RowsAtCompileTime) && (BlockCols==1) ? i : 0)),
275 BlockCols==1 ? 1 : xpr.cols()),
279 ((BlockRows==1) && (BlockCols==XprType::ColsAtCompileTime) && i<xpr.rows())
280 ||((BlockRows==XprType::RowsAtCompileTime) && (BlockCols==1) && i<xpr.cols())));
290 && startCol >= 0 && BlockCols >= 1 && startCol + BlockCols <= xpr.cols());
298 Index blockRows, Index blockCols)
299 : Base(internal::const_cast_ptr(&xpr.coeffRef(startRow,startCol)), blockRows, blockCols),
303 && (ColsAtCompileTime==Dynamic || ColsAtCompileTime==blockCols));
305 && startCol >= 0 && blockCols >= 0 && startCol + blockCols <= xpr.cols());
336 inline Block(XprType& xpr, const Scalar* data, Index blockRows, Index blockCols)
337 : Base(data, blockRows, blockCols), m_xpr(xpr)