Lines Matching refs:roots
266 cvSolveCubic( const CvMat* coeffs, CvMat* roots ) in cvSolveCubic() argument
281 if( !CV_IS_MAT(roots) ) in cvSolveCubic()
282 CV_ERROR( !roots ? CV_StsNullPtr : CV_StsBadArg, "Output parameter is not a valid matrix" ); in cvSolveCubic()
285 (CV_MAT_TYPE(roots->type) != CV_32FC1 && CV_MAT_TYPE(roots->type) != CV_64FC1) ) in cvSolveCubic()
295 if( (roots->rows != 1 && roots->cols != 1) || in cvSolveCubic()
296 roots->rows + roots->cols - 1 != 3 ) in cvSolveCubic()
388 if( CV_MAT_TYPE(roots->type) == CV_32FC1 ) in cvSolveCubic()
390 float* r = roots->data.fl; in cvSolveCubic()
391 if( roots->rows > 1 ) in cvSolveCubic()
392 step = roots->step/sizeof(r[0]); in cvSolveCubic()
399 double* r = roots->data.db; in cvSolveCubic()
400 if( roots->rows > 1 ) in cvSolveCubic()
401 step = roots->step/sizeof(r[0]); in cvSolveCubic()