Home
last modified time | relevance | path

Searched refs:roots (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/external/smali/util/src/test/java/org/jf/util/
DPathUtilTest.java39 File[] roots = File.listRoots(); in pathUtilTest1() local
41 if (roots.length > 1) { in pathUtilTest1()
42 …File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "te… in pathUtilTest1()
43 …File relativePath = new File(roots[1] + "some" + File.separatorChar + "dir" + File.separatorChar +… in pathUtilTest1()
53 File[] roots = File.listRoots(); in pathUtilTest2() local
55 …File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "te… in pathUtilTest2()
56 …File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar +… in pathUtilTest2()
68 File[] roots = File.listRoots(); in pathUtilTest3() local
70 … File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar); in pathUtilTest3()
71 … File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar); in pathUtilTest3()
[all …]
/external/skia/src/pathops/
DSkPathOpsRect.cpp17 int roots = 0; in setBounds() local
19 roots = SkDQuad::FindExtrema(&sub[0].fX, tValues); in setBounds()
22 roots += SkDQuad::FindExtrema(&sub[0].fY, &tValues[roots]); in setBounds()
24 for (int index = 0; index < roots; ++index) { in setBounds()
34 int roots = 0; in setBounds() local
36 roots = SkDConic::FindExtrema(&sub[0].fX, sub.fWeight, tValues); in setBounds()
39 roots += SkDConic::FindExtrema(&sub[0].fY, sub.fWeight, &tValues[roots]); in setBounds()
41 for (int index = 0; index < roots; ++index) { in setBounds()
51 int roots = 0; in setBounds() local
53 roots = SkDCubic::FindExtrema(&sub[0].fX, tValues); in setBounds()
[all …]
DSkDCubicLineIntersection.cpp121 int intersectRay(double roots[3]) { in intersectRay()
131 int count = SkDCubic::RootsValidT(A, B, C, D, roots); in intersectRay()
133 SkDPoint calcPt = c.ptAtT(roots[index]); in intersectRay()
141 count = c.searchRoots(extremeTs, extrema, 0, SkDCubic::kXAxis, roots); in intersectRay()
154 int roots = intersectRay(rootVals); in intersect() local
155 for (int index = 0; index < roots; ++index) { in intersect()
167 static int HorizontalIntersect(const SkDCubic& c, double axisIntercept, double roots[3]) { in HorizontalIntersect()
171 int count = SkDCubic::RootsValidT(A, B, C, D, roots); in HorizontalIntersect()
173 SkDPoint calcPt = c.ptAtT(roots[index]); in HorizontalIntersect()
177 count = c.searchRoots(extremeTs, extrema, axisIntercept, SkDCubic::kYAxis, roots); in HorizontalIntersect()
[all …]
DSkDQuadLineIntersection.cpp139 int intersectRay(double roots[2]) { in intersectRay()
166 return SkDQuad::RootsValidT(A, 2 * B, C, roots); in intersectRay()
175 int roots = intersectRay(rootVals); in intersect() local
176 for (int index = 0; index < roots; ++index) { in intersect()
188 int horizontalIntersect(double axisIntercept, double roots[2]) { in horizontalIntersect()
195 return SkDQuad::RootsValidT(D, 2 * E, F, roots); in horizontalIntersect()
204 int roots = horizontalIntersect(axisIntercept, rootVals); in horizontalIntersect() local
205 for (int index = 0; index < roots; ++index) { in horizontalIntersect()
244 int verticalIntersect(double axisIntercept, double roots[2]) { in verticalIntersect()
251 return SkDQuad::RootsValidT(D, 2 * E, F, roots); in verticalIntersect()
[all …]
DSkDConicLineIntersection.cpp67 int horizontalIntersect(double axisIntercept, double roots[2]) { in horizontalIntersect()
69 return this->validT(conicVals, axisIntercept, roots); in horizontalIntersect()
77 double roots[2]; in horizontalIntersect() local
78 int count = this->horizontalIntersect(axisIntercept, roots); in horizontalIntersect()
80 double conicT = roots[index]; in horizontalIntersect()
103 int roots = this->intersectRay(rootVals); in intersect() local
104 for (int index = 0; index < roots; ++index) { in intersect()
125 int intersectRay(double roots[2]) { in intersectRay()
132 return this->validT(r, 0, roots); in intersectRay()
135 int validT(double r[3], double axisIntercept, double roots[2]) { in validT()
[all …]
DSkPathOpsCurve.h360 static int line_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) { in line_intercept_h() argument
365 roots[0] = SkIntersections::HorizontalIntercept(line.set(a), y); in line_intercept_h()
366 return between(0, roots[0], 1); in line_intercept_h()
369 static int line_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) { in line_intercept_v() argument
374 roots[0] = SkIntersections::VerticalIntercept(line.set(a), x); in line_intercept_v()
375 return between(0, roots[0], 1); in line_intercept_v()
378 static int quad_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) { in quad_intercept_h() argument
380 return SkIntersections::HorizontalIntercept(quad.set(a), y, roots); in quad_intercept_h()
383 static int quad_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) { in quad_intercept_v() argument
385 return SkIntersections::VerticalIntercept(quad.set(a), x, roots); in quad_intercept_v()
[all …]
/external/skqp/src/pathops/
DSkPathOpsRect.cpp17 int roots = 0; in setBounds() local
19 roots = SkDQuad::FindExtrema(&sub[0].fX, tValues); in setBounds()
22 roots += SkDQuad::FindExtrema(&sub[0].fY, &tValues[roots]); in setBounds()
24 for (int index = 0; index < roots; ++index) { in setBounds()
34 int roots = 0; in setBounds() local
36 roots = SkDConic::FindExtrema(&sub[0].fX, sub.fWeight, tValues); in setBounds()
39 roots += SkDConic::FindExtrema(&sub[0].fY, sub.fWeight, &tValues[roots]); in setBounds()
41 for (int index = 0; index < roots; ++index) { in setBounds()
51 int roots = 0; in setBounds() local
53 roots = SkDCubic::FindExtrema(&sub[0].fX, tValues); in setBounds()
[all …]
DSkDCubicLineIntersection.cpp121 int intersectRay(double roots[3]) { in intersectRay()
131 int count = SkDCubic::RootsValidT(A, B, C, D, roots); in intersectRay()
133 SkDPoint calcPt = c.ptAtT(roots[index]); in intersectRay()
141 count = c.searchRoots(extremeTs, extrema, 0, SkDCubic::kXAxis, roots); in intersectRay()
154 int roots = intersectRay(rootVals); in intersect() local
155 for (int index = 0; index < roots; ++index) { in intersect()
167 static int HorizontalIntersect(const SkDCubic& c, double axisIntercept, double roots[3]) { in HorizontalIntersect()
171 int count = SkDCubic::RootsValidT(A, B, C, D, roots); in HorizontalIntersect()
173 SkDPoint calcPt = c.ptAtT(roots[index]); in HorizontalIntersect()
177 count = c.searchRoots(extremeTs, extrema, axisIntercept, SkDCubic::kYAxis, roots); in HorizontalIntersect()
[all …]
DSkDQuadLineIntersection.cpp139 int intersectRay(double roots[2]) { in intersectRay()
166 return SkDQuad::RootsValidT(A, 2 * B, C, roots); in intersectRay()
175 int roots = intersectRay(rootVals); in intersect() local
176 for (int index = 0; index < roots; ++index) { in intersect()
188 int horizontalIntersect(double axisIntercept, double roots[2]) { in horizontalIntersect()
195 return SkDQuad::RootsValidT(D, 2 * E, F, roots); in horizontalIntersect()
204 int roots = horizontalIntersect(axisIntercept, rootVals); in horizontalIntersect() local
205 for (int index = 0; index < roots; ++index) { in horizontalIntersect()
244 int verticalIntersect(double axisIntercept, double roots[2]) { in verticalIntersect()
251 return SkDQuad::RootsValidT(D, 2 * E, F, roots); in verticalIntersect()
[all …]
DSkDConicLineIntersection.cpp67 int horizontalIntersect(double axisIntercept, double roots[2]) { in horizontalIntersect()
69 return this->validT(conicVals, axisIntercept, roots); in horizontalIntersect()
77 double roots[2]; in horizontalIntersect() local
78 int count = this->horizontalIntersect(axisIntercept, roots); in horizontalIntersect()
80 double conicT = roots[index]; in horizontalIntersect()
103 int roots = this->intersectRay(rootVals); in intersect() local
104 for (int index = 0; index < roots; ++index) { in intersect()
125 int intersectRay(double roots[2]) { in intersectRay()
132 return this->validT(r, 0, roots); in intersectRay()
135 int validT(double r[3], double axisIntercept, double roots[2]) { in validT()
[all …]
DSkPathOpsCurve.h360 static int line_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) { in line_intercept_h() argument
365 roots[0] = SkIntersections::HorizontalIntercept(line.set(a), y); in line_intercept_h()
366 return between(0, roots[0], 1); in line_intercept_h()
369 static int line_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) { in line_intercept_v() argument
374 roots[0] = SkIntersections::VerticalIntercept(line.set(a), x); in line_intercept_v()
375 return between(0, roots[0], 1); in line_intercept_v()
378 static int quad_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) { in quad_intercept_h() argument
380 return SkIntersections::HorizontalIntercept(quad.set(a), y, roots); in quad_intercept_h()
383 static int quad_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) { in quad_intercept_v() argument
385 return SkIntersections::VerticalIntercept(quad.set(a), x, roots); in quad_intercept_v()
[all …]
/external/eigen/unsupported/doc/examples/
DPolynomialSolver1.cpp12 Vector5d roots = Vector5d::Random(); in main() local
13 cout << "Roots: " << roots.transpose() << endl; in main()
15 roots_to_monicPolynomial( roots, polynomial ); in main()
18 cout << "Complex roots: " << psolve.roots().transpose() << endl; in main()
33 cout << "Complex roots: " << psolvef.roots().transpose() << endl; in main()
35 …for( int i=0; i<6; ++i ){ evals[i] = std::abs( poly_eval( hardCase_polynomial, psolvef.roots()[i] … in main()
41 cout << "Complex roots: " << psolve6d.roots().transpose() << endl; in main()
44 std::complex<float> castedRoot( psolve6d.roots()[i].real(), psolve6d.roots()[i].imag() ); in main()
50 …cout << "The last root in float then in double: " << psolvef.roots()[5] << "\t" << psolve6d.roots(… in main()
51 std::complex<float> castedRoot( psolve6d.roots()[5].real(), psolve6d.roots()[5].imag() ); in main()
[all …]
DPolynomialUtils1.cpp9 Vector4d roots = Vector4d::Random(); in main() local
10 cout << "Roots: " << roots.transpose() << endl; in main()
12 roots_to_monicPolynomial( roots, polynomial ); in main()
18 evaluation[i] = poly_eval( polynomial, roots[i] ); } in main()
/external/v8/src/heap/
Dsetup-heap-internal.cc148 ReadOnlyRoots roots(this); in FinalizePartialMap() local
149 map->set_dependent_code(DependentCode::cast(roots.empty_weak_fixed_array())); in FinalizePartialMap()
151 map->set_instance_descriptors(roots.empty_descriptor_array()); in FinalizePartialMap()
155 map->set_prototype(roots.null_value()); in FinalizePartialMap()
156 map->set_constructor_or_backpointer(roots.null_value()); in FinalizePartialMap()
205 ReadOnlyRoots roots(this); in CreateInitialMaps() local
221 DCHECK_NE(roots.fixed_array_map(), roots.fixed_cow_array_map()); in CreateInitialMaps()
237 obj->set_map_after_allocation(roots.fixed_array_map(), SKIP_WRITE_BARRIER); in CreateInitialMaps()
245 obj->set_map_after_allocation(roots.weak_fixed_array_map(), in CreateInitialMaps()
255 obj->set_map_after_allocation(roots.weak_array_list_map(), in CreateInitialMaps()
[all …]
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_scope.cc63 std::vector<ScopeNode*> roots; in Build() local
69 roots.push_back(node); in Build()
77 root_->children.assign(roots.begin(), roots.end()); in Build()
87 std::vector<ScopeNode*> roots = Account(root_->children, opts); in ShowInternal() local
89 for (ScopeNode* n : roots) { in ShowInternal()
95 roots = SearchRoot(roots, opts.start_name_regexes); in ShowInternal()
98 root_->show_children.assign(roots.begin(), roots.end()); in ShowInternal()
110 void TFScope::Format(const std::vector<ScopeNode*> roots, string* display_str, in Format() argument
112 for (ScopeNode* node : roots) { in Format()
121 std::vector<ScopeNode*> roots, const std::vector<string>& regexes) { in SearchRoot() argument
[all …]
Dtfprof_graph.cc62 std::vector<GraphNode*> roots; in Build() local
65 roots.push_back(it->second.get()); in Build()
69 root_->children.insert(root_->children.end(), roots.begin(), roots.end()); in Build()
89 std::vector<GraphNode*> roots = Account(root_->children, opts, &visits); in ShowInternal() local
90 for (GraphNode* n : roots) { in ShowInternal()
98 roots = SearchRoot(roots, opts.start_name_regexes, &visits); in ShowInternal()
104 root_->show_children.assign(roots.begin(), roots.end()); in ShowInternal()
118 const std::vector<GraphNode*>& roots, const std::vector<string>& regexes, in SearchRoot() argument
121 if (roots.empty()) { in SearchRoot()
124 for (GraphNode* root : roots) { in SearchRoot()
[all …]
/external/v8/src/objects/
Dapi-callbacks-inl.h105 ReadOnlyRoots roots = GetReadOnlyRoots(); in ACCESSORS() local
106 DCHECK(map() == roots.side_effect_call_handler_info_map() || in ACCESSORS()
107 map() == roots.side_effect_free_call_handler_info_map() || in ACCESSORS()
108 map() == roots.next_call_side_effect_free_call_handler_info_map()); in ACCESSORS()
109 return map() == roots.side_effect_free_call_handler_info_map(); in ACCESSORS()
113 ReadOnlyRoots roots = GetReadOnlyRoots(); in IsSideEffectCallHandlerInfo() local
114 DCHECK(map() == roots.side_effect_call_handler_info_map() || in IsSideEffectCallHandlerInfo()
115 map() == roots.side_effect_free_call_handler_info_map() || in IsSideEffectCallHandlerInfo()
116 map() == roots.next_call_side_effect_free_call_handler_info_map()); in IsSideEffectCallHandlerInfo()
117 return map() == roots.side_effect_call_handler_info_map(); in IsSideEffectCallHandlerInfo()
[all …]
Dhash-table-inl.h76 int HashTable<Derived, Shape>::FindEntry(ReadOnlyRoots roots, Key key, in FindEntry() argument
82 Object* undefined = roots.undefined_value(); in FindEntry()
83 Object* the_hole = roots.the_hole_value(); in FindEntry()
99 bool HashTable<Derived, Shape>::IsKey(ReadOnlyRoots roots, Object* k) { in IsKey() argument
100 return Shape::IsKey(roots, k); in IsKey()
104 bool HashTable<Derived, Shape>::ToKey(ReadOnlyRoots roots, int entry, in ToKey() argument
107 if (!IsKey(roots, k)) return false; in ToKey()
113 bool BaseShape<KeyT>::IsKey(ReadOnlyRoots roots, Object* key) { in IsKey() argument
114 return IsLive(roots, key); in IsKey()
118 bool BaseShape<KeyT>::IsLive(ReadOnlyRoots roots, Object* k) { in IsLive() argument
[all …]
/external/eigen/unsupported/test/
Dpolynomialutils.cpp36 EvalRootsType roots = EvalRootsType::Random(deg); in realRoots_to_monicPolynomial_test() local
37 roots_to_monicPolynomial( roots, pols ); in realRoots_to_monicPolynomial_test()
40 for( int i=0; i<roots.size(); ++i ){ in realRoots_to_monicPolynomial_test()
41 evr[i] = std::abs( poly_eval( pols, roots[i] ) ); } in realRoots_to_monicPolynomial_test()
74 EvalRootsType roots = EvalRootsType::Random(deg); in CauchyBounds() local
75 roots_to_monicPolynomial( roots, pols ); in CauchyBounds()
78 _Scalar Max = roots.array().abs().maxCoeff(); in CauchyBounds()
79 _Scalar min = roots.array().abs().minCoeff(); in CauchyBounds()
83 cerr << "Roots: " << roots << endl; in CauchyBounds()
Dpolynomialsolver.cpp45 const RootsType& roots( psolve.roots() ); in aux_evalSolver() local
47 for( int i=0; i<roots.size(); ++i ){ in aux_evalSolver()
48 evr[i] = std::abs( poly_eval( pols, roots[i] ) ); } in aux_evalSolver()
55 cerr << "Roots found: " << roots.transpose() << endl; in aux_evalSolver()
60 std::vector<Scalar> rootModuli( roots.size() ); in aux_evalSolver()
61 Map< EvalRootsType > aux( &rootModuli[0], roots.size() ); in aux_evalSolver()
62 aux = roots.array().abs(); in aux_evalSolver()
96 void evalSolverSugarFunction( const POLYNOMIAL& pols, const ROOTS& roots, const REAL_ROOTS& real_ro… in evalSolverSugarFunction() argument
132 VERIFY( internal::isApprox( roots.array().abs().maxCoeff(), in evalSolverSugarFunction()
136 VERIFY( internal::isApprox( roots.array().abs().minCoeff(), in evalSolverSugarFunction()
/external/v8/src/
Dlookup-inl.h101 ReadOnlyRoots roots(heap()); in UpdateProtector()
102 if (*name_ == roots.is_concat_spreadable_symbol() || in UpdateProtector()
103 *name_ == roots.constructor_string() || *name_ == roots.next_string() || in UpdateProtector()
104 *name_ == roots.species_symbol() || *name_ == roots.iterator_symbol() || in UpdateProtector()
105 *name_ == roots.resolve_string() || *name_ == roots.then_string()) { in UpdateProtector()
/external/skia/src/core/
DSkGeometry.cpp74 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) { in SkFindUnitQuadRoots()
75 SkASSERT(roots); in SkFindUnitQuadRoots()
78 return return_check_zero(valid_unit_divide(-C, B, roots)); in SkFindUnitQuadRoots()
81 SkScalar* r = roots; in SkFindUnitQuadRoots()
97 if (r - roots == 2) { in SkFindUnitQuadRoots()
98 if (roots[0] > roots[1]) { in SkFindUnitQuadRoots()
100 swap(roots[0], roots[1]); in SkFindUnitQuadRoots()
101 } else if (roots[0] == roots[1]) { // nearly-equal? in SkFindUnitQuadRoots()
105 return return_check_zero((int)(r - roots)); in SkFindUnitQuadRoots()
427 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
[all …]
/external/skqp/src/core/
DSkGeometry.cpp74 int SkFindUnitQuadRoots(SkScalar A, SkScalar B, SkScalar C, SkScalar roots[2]) { in SkFindUnitQuadRoots()
75 SkASSERT(roots); in SkFindUnitQuadRoots()
78 return return_check_zero(valid_unit_divide(-C, B, roots)); in SkFindUnitQuadRoots()
81 SkScalar* r = roots; in SkFindUnitQuadRoots()
97 if (r - roots == 2) { in SkFindUnitQuadRoots()
98 if (roots[0] > roots[1]) { in SkFindUnitQuadRoots()
100 swap(roots[0], roots[1]); in SkFindUnitQuadRoots()
101 } else if (roots[0] == roots[1]) { // nearly-equal? in SkFindUnitQuadRoots()
105 return return_check_zero((int)(r - roots)); in SkFindUnitQuadRoots()
427 const SkScalar tValues[], int roots) { in SkChopCubicAt() argument
[all …]
/external/mesa3d/src/egl/generate/
DgenCommon.py58 roots = [ etree.parse(xmlFile).getroot() for xmlFile in xmlFiles ]
59 return getFunctionsFromRoots(roots)
61 def getFunctionsFromRoots(roots): argument
63 for root in roots:
79 def getExportNamesFromRoots(target, roots): argument
89 return set(func.name for func in getFunctionsFromRoots(roots))
92 for root in roots:
/external/u-boot/lib/
Dbch.c549 unsigned int *roots) in find_affine4_roots() argument
578 return solve_linear_system(bch, rows, roots, 4); in find_affine4_roots()
585 unsigned int *roots) in find_poly_deg1_roots() argument
591 roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+ in find_poly_deg1_roots()
600 unsigned int *roots) in find_poly_deg2_roots() argument
629 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
631 roots[n++] = modulo(bch, 2*GF_N(bch)-l1- in find_poly_deg2_roots()
642 unsigned int *roots) in find_poly_deg3_roots() argument
664 roots[n++] = a_ilog(bch, tmp[i]); in find_poly_deg3_roots()
675 unsigned int *roots) in find_poly_deg4_roots() argument
[all …]

12345678910>>...12