1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #27322 from vrabaud:zeros

Add missing Mat_<_Tp>::zeros(int _ndims, const int* _sizes)
This commit is contained in:
Alexander Smorkalov
2025-05-17 09:55:05 +03:00
committed by GitHub
2 changed files with 13 additions and 0 deletions
@@ -3024,6 +3024,12 @@ Mat_<_Tp>& Mat_<_Tp>::operator = (const MatExpr& e)
return *this;
}
template<typename _Tp> inline
MatExpr Mat_<_Tp>::zeros(int _ndims, const int* _sizes)
{
return Mat::zeros(_ndims, _sizes, traits::Type<_Tp>::value);
}
template<typename _Tp> inline
MatExpr Mat_<_Tp>::zeros(int rows, int cols)
{