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 >::setConstant ( int  rows,
int  cols,
const Scalar &  value 
) [inline]

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

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

See also:
MatrixBase::setConstant(const Scalar&), setConstant(int,const Scalar&), class CwiseNullaryOp, MatrixBase::Constant(const Scalar&)

Definition at line 302 of file CwiseNullaryOp.h.

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

  resize(rows, cols);
  return setConstant(value);

Generated by  Doxygen 1.6.0   Back to index