backport 964558: add missing setZero (etc) overloads that were mentioned in the tutorial

this should be safe as it's covered by the updated unit-test
This commit is contained in:
Benoit Jacob
2009-05-06 21:42:31 +00:00
parent e47593fb28
commit 1304e43f15
5 changed files with 206 additions and 3 deletions

View File

@@ -438,6 +438,25 @@ class Matrix
{ return AlignedMapType(data, rows, cols); }
//@}
using Base::setConstant;
Matrix& setConstant(int size, const Scalar& value);
Matrix& setConstant(int rows, int cols, const Scalar& value);
using Base::setZero;
Matrix& setZero(int size);
Matrix& setZero(int rows, int cols);
using Base::setOnes;
Matrix& setOnes(int size);
Matrix& setOnes(int rows, int cols);
using Base::setRandom;
Matrix& setRandom(int size);
Matrix& setRandom(int rows, int cols);
using Base::setIdentity;
Matrix& setIdentity(int rows, int cols);
/////////// Geometry module ///////////
template<typename OtherDerived>