From 5cc4d23d1e25e5db2edc0daa5610d99169419781 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 23 May 2012 12:52:46 +0000 Subject: [PATCH] fixed description of cv::invert() (ticket #1972) --- modules/core/doc/operations_on_arrays.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/doc/operations_on_arrays.rst b/modules/core/doc/operations_on_arrays.rst index 8151319..445d135 100644 --- a/modules/core/doc/operations_on_arrays.rst +++ b/modules/core/doc/operations_on_arrays.rst @@ -1434,7 +1434,7 @@ Finds the inverse or pseudo-inverse of a matrix. The function ``invert`` inverts the matrix ``src`` and stores the result in ``dst`` . When the matrix ``src`` is singular or non-square, the function computes the pseudo-inverse matrix (the ``dst`` matrix) so that ``norm(src*dst - I)`` is minimal, where I is an identity matrix. -In case of the ``DECOMP_LU`` method, the function returns the ``src`` determinant ( ``src`` must be square). If it is 0, the matrix is not inverted and ``dst`` is filled with zeros. +In case of the ``DECOMP_LU`` method, the function returns non-zero value if the inverse has been successfully computed and 0 if ``src`` is singular. In case of the ``DECOMP_SVD`` method, the function returns the inverse condition number of ``src`` (the ratio of the smallest singular value to the largest singular value) and 0 if ``src`` is singular. The SVD method calculates a pseudo-inverse matrix if ``src`` is singular. -- 2.7.4