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 >::setZero ( int  size  )  [inline]

Resizes to the given size, and sets all coefficients in this expression to zero.

Example:

Output:

See also:
MatrixBase::setZero(), setZero(int,int), class CwiseNullaryOp, MatrixBase::Zero()

Definition at line 416 of file CwiseNullaryOp.h.

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

Referenced by SVD< MatrixType >::compute().

{
  resize(size);
  return setConstant(Scalar(0));
}


Generated by  Doxygen 1.6.0   Back to index