[opencv] 57/71: fixed optional args processing in SVD::compute()
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Mon Oct 17 20:16:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 2.4.13.1
in repository opencv.
commit cb52d249fed9c72fb2bb75a7c5f46a915ec209b6
Author: Rostislav Vasilikhin <rostislav.vasilikhin at intel.com>
Date: Tue Sep 6 14:09:44 2016 +0300
fixed optional args processing in SVD::compute()
---
modules/core/src/lapack.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/core/src/lapack.cpp b/modules/core/src/lapack.cpp
index 0168610..3084a53 100644
--- a/modules/core/src/lapack.cpp
+++ b/modules/core/src/lapack.cpp
@@ -1560,18 +1560,18 @@ static void _SVDcompute( InputArray _aarr, OutputArray _w,
JacobiSVD(temp_a.ptr<double>(), temp_u.step, temp_w.ptr<double>(),
temp_v.ptr<double>(), temp_v.step, m, n, compute_uv ? urows : 0);
}
- temp_w.copyTo(_w);
+ if(_w.needed()) temp_w.copyTo(_w);
if( compute_uv )
{
if( !at )
{
- transpose(temp_u, _u);
- temp_v.copyTo(_vt);
+ if(_u.needed()) transpose(temp_u, _u);
+ if(_vt.needed()) temp_v.copyTo(_vt);
}
else
{
- transpose(temp_v, _u);
- temp_u.copyTo(_vt);
+ if(_u.needed()) transpose(temp_v, _u);
+ if(_vt.needed()) temp_u.copyTo(_vt);
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list