MCPcopy Create free account
hub / github.com/creatale/node-dv / cvSolve

Function cvSolve

deps/opencv/modules/core/src/lapack.cpp:1691–1703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1689
1690
1691CV_IMPL int
1692cvSolve( const CvArr* Aarr, const CvArr* barr, CvArr* xarr, int method )
1693{
1694 cv::Mat A = cv::cvarrToMat(Aarr), b = cv::cvarrToMat(barr), x = cv::cvarrToMat(xarr);
1695
1696 CV_Assert( A.type() == x.type() && A.cols == x.rows && x.cols == b.cols );
1697 bool is_normal = (method & CV_NORMAL) != 0;
1698 method &= ~CV_NORMAL;
1699 return cv::solve( A, b, x, (method == CV_CHOLESKY ? cv::DECOMP_CHOLESKY :
1700 method == CV_SVD ? cv::DECOMP_SVD :
1701 method == CV_SVD_SYM ? cv::DECOMP_EIG :
1702 A.rows > A.cols ? cv::DECOMP_QR : cv::DECOMP_LU) + (is_normal ? cv::DECOMP_NORMAL : 0) );
1703}
1704
1705
1706CV_IMPL void

Callers 1

cvFitEllipse2Function · 0.85

Calls 2

cvarrToMatFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected