HAL moved back to core

This commit is contained in:
Maksim Shabunin
2015-12-15 15:55:43 +03:00
parent 3c6aa650a1
commit 84f37d352f
63 changed files with 3727 additions and 3416 deletions

View File

@@ -41,19 +41,19 @@
//M*/
#include "precomp.hpp"
#include "opencv2/core/hal/hal.hpp"
using namespace cv;
namespace {
template<typename _Tp> static inline bool
decomposeCholesky(_Tp* A, size_t astep, int m)
static inline bool decomposeCholesky(double* A, size_t astep, int m)
{
if (!hal::Cholesky(A, astep, m, 0, 0, 0))
if (!hal::Cholesky64f(A, astep, m, 0, 0, 0))
return false;
astep /= sizeof(A[0]);
for (int i = 0; i < m; ++i)
A[i*astep + i] = (_Tp)(1./A[i*astep + i]);
A[i*astep + i] = (double)(1./A[i*astep + i]);
return true;
}