Public Types | Public Member Functions | Protected Attributes

Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess > Class Template Reference

Expression of a fixed-size or dynamic-size block. More...

#include <Block.h>

List of all members.

Public Types

typedef
internal::dense_xpr_base
< Block >::type 
Base

Public Member Functions

 Block (XprType &xpr, Index i)
 Block (XprType &xpr, Index startRow, Index startCol)
 Block (XprType &xpr, Index startRow, Index startCol, Index blockRows, Index blockCols)
Index rows () const
Index cols () const
Scalar & coeffRef (Index row, Index col)
const Scalar & coeffRef (Index row, Index col) const
EIGEN_STRONG_INLINE const
CoeffReturnType 
coeff (Index row, Index col) const
Scalar & coeffRef (Index index)
const Scalar & coeffRef (Index index) const
const CoeffReturnType coeff (Index index) const
template<int LoadMode>
PacketScalar packet (Index row, Index col) const
template<int LoadMode>
void writePacket (Index row, Index col, const PacketScalar &x)
template<int LoadMode>
PacketScalar packet (Index index) const
template<int LoadMode>
void writePacket (Index index, const PacketScalar &x)

Protected Attributes

const XprType::Nested m_xpr
const
internal::variable_if_dynamic
< Index,
XprType::RowsAtCompileTime==1?0:Dynamic
m_startRow
const
internal::variable_if_dynamic
< Index,
XprType::ColsAtCompileTime==1?0:Dynamic
m_startCol
const
internal::variable_if_dynamic
< Index, RowsAtCompileTime > 
m_blockRows
const
internal::variable_if_dynamic
< Index, ColsAtCompileTime > 
m_blockCols

Detailed Description

template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
class Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >

Expression of a fixed-size or dynamic-size block.

Parameters:
XprType the type of the expression in which we are taking a block
BlockRows the number of rows of the block we are taking at compile time (optional)
BlockCols the number of columns of the block we are taking at compile time (optional)
_DirectAccessStatus 

Member Typedef Documentation

template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
typedef internal::dense_xpr_base<Block>::type Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::Base

Constructor & Destructor Documentation

template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::Block ( XprType &  xpr,
Index  i 
) [inline]

Column or Row constructor

template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::Block ( XprType &  xpr,
Index  startRow,
Index  startCol 
) [inline]

Fixed-size constructor

template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::Block ( XprType &  xpr,
Index  startRow,
Index  startCol,
Index  blockRows,
Index  blockCols 
) [inline]

Dynamic-size constructor


Member Function Documentation

template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
EIGEN_STRONG_INLINE const CoeffReturnType Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeff ( Index  row,
Index  col 
) const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const CoeffReturnType Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeff ( Index  index  )  const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
Scalar& Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef ( Index  row,
Index  col 
) [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const Scalar& Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef ( Index  row,
Index  col 
) const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
Scalar& Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef ( Index  index  )  [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const Scalar& Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::coeffRef ( Index  index  )  const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
Index Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::cols (  )  const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
template<int LoadMode>
PacketScalar Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::packet ( Index  row,
Index  col 
) const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
template<int LoadMode>
PacketScalar Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::packet ( Index  index  )  const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
Index Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::rows (  )  const [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
template<int LoadMode>
void Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::writePacket ( Index  index,
const PacketScalar &  x 
) [inline]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
template<int LoadMode>
void Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::writePacket ( Index  row,
Index  col,
const PacketScalar &  x 
) [inline]

Member Data Documentation

template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const internal::variable_if_dynamic<Index, ColsAtCompileTime> Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_blockCols [protected]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const internal::variable_if_dynamic<Index, RowsAtCompileTime> Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_blockRows [protected]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const internal::variable_if_dynamic<Index, XprType::ColsAtCompileTime == 1 ? 0 : Dynamic> Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_startCol [protected]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const internal::variable_if_dynamic<Index, XprType::RowsAtCompileTime == 1 ? 0 : Dynamic> Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_startRow [protected]
template<typename XprType, int BlockRows, int BlockCols, bool InnerPanel, bool HasDirectAccess>
const XprType::Nested Block< XprType, BlockRows, BlockCols, InnerPanel, HasDirectAccess >::m_xpr [protected]

The documentation for this class was generated from the following file: