Lines Matching full:roots
243 Finds real roots of cubic, quadratic or linear equation.
266 cvSolveCubic( const CvMat* coeffs, CvMat* roots )
281 if( !CV_IS_MAT(roots) )
282 CV_ERROR( !roots ? CV_StsNullPtr : CV_StsBadArg, "Output parameter is not a valid matrix" );
285 (CV_MAT_TYPE(roots->type) != CV_32FC1 && CV_MAT_TYPE(roots->type) != CV_64FC1) )
295 if( (roots->rows != 1 && roots->cols != 1) ||
296 roots->rows + roots->cols - 1 != 3 )
298 "The matrix of roots must be 1-dimensional vector of 3 elements" );
388 if( CV_MAT_TYPE(roots->type) == CV_32FC1 )
390 float* r = roots->data.fl;
391 if( roots->rows > 1 )
392 step = roots->step/sizeof(r[0]);
399 double* r = roots->data.db;
400 if( roots->rows > 1 )
401 step = roots->step/sizeof(r[0]);
414 Finds real and complex roots of polynomials of any degree with real
614 if (0.0 < (q - (p * p / 4.0))) { // Two complex roots
620 } else { // Two real roots
656 CV_ERROR(CV_StsUnsupportedFormat, "roots must be either CV_32FC2 or CV_64FC2");