From: Vadim Pisarevsky Date: Wed, 23 May 2012 12:52:46 +0000 (+0000) Subject: fixed description of cv::invert() (ticket #1972) X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~4890 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cc4d23d1e25e5db2edc0daa5610d99169419781;p=platform%2Fupstream%2Fopencv.git fixed description of cv::invert() (ticket #1972) --- 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.