mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 19:50:38 +08:00
fixed small matrix inversion using Cholesky algorithm (ticket #536)
This commit is contained in:
parent
f9753a5a88
commit
4f9a72eaa7
@ -488,7 +488,7 @@ double invert( const Mat& src, Mat& dst, int method )
|
||||
result = LU((float*)src1.data, n, (float*)dst1.data, n);
|
||||
else if( method == DECOMP_LU && type == CV_64F )
|
||||
result = LU((double*)src1.data, n, (double*)dst1.data, n);
|
||||
else if( method == DECOMP_LU && type == CV_32F )
|
||||
else if( method == DECOMP_CHOLESKY && type == CV_32F )
|
||||
result = Cholesky((float*)src1.data, n, (float*)dst1.data, n);
|
||||
else
|
||||
result = Cholesky((double*)src1.data, n, (double*)dst1.data, n);
|
||||
|
Loading…
Reference in New Issue
Block a user