Logo Search packages:      
Sourcecode: blender version File versions  Download package

template<typename _Scalar, int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
EIGEN_STRONG_INLINE Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > & Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::setIdentity ( int  rows,
int  cols 
) [inline]

Resizes to the given size, and writes the identity expression (not necessarily square) into *this.

rows the new number of rows
cols the new number of columns

See also:
MatrixBase::setIdentity(), class CwiseNullaryOp, MatrixBase::Identity()

Definition at line 689 of file CwiseNullaryOp.h.

References Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols >::resize(), and MatrixBase< Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > >::setIdentity().

Referenced by Transform< _Scalar, _Dim >::setIdentity().

  resize(rows, cols);
  return setIdentity();

Generated by  Doxygen 1.6.0   Back to index