Home
last modified time | relevance | path

Searched refs:arity (Results 1 – 25 of 102) sorted by relevance

12345

/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DTournamentSelection.java34 private int arity; field in TournamentSelection
42 public TournamentSelection(int arity) { in TournamentSelection() argument
43 this.arity = arity; in TournamentSelection()
73 if (population.getPopulationSize() < this.arity) in tournament()
76 ListPopulation tournamentPopulation = new ListPopulation(this.arity) { in tournament()
85 for (int i=0; i<this.arity; i++) { in tournament()
102 return arity; in getArity()
110 public void setArity(int arity) { in setArity() argument
111 this.arity = arity; in setArity()
/external/ceres-solver/internal/ceres/
Dgradient_checking_cost_function_test.cc72 TestTerm(int arity, int const *dim) : arity_(arity) { in TestTerm() argument
136 int const arity = 3; in TEST() local
137 int const dim[arity] = { 2, 3, 4 }; in TEST()
140 vector<double*> parameters(arity); in TEST()
141 for (int j = 0; j < arity; ++j) { in TEST()
150 vector<double*> original_jacobians(arity); in TEST()
151 vector<double*> jacobians(arity); in TEST()
153 for (int j = 0; j < arity; ++j) { in TEST()
163 TestTerm<-1, -1> term(arity, dim); in TEST()
178 for (int j = 0; j < arity; j++) { in TEST()
[all …]
Dgradient_checker_test.cc56 GoodTestTerm(int arity, int const *dim) : arity_(arity) { in GoodTestTerm() argument
109 BadTestTerm(int arity, int const *dim) : arity_(arity) { in BadTestTerm() argument
164 int const arity = 3; in TEST() local
165 int const dim[arity] = { 2, 3, 4 }; in TEST()
168 FixedArray<double*> parameters(arity); in TEST()
169 for (int j = 0; j < arity; ++j) { in TEST()
177 GoodTestTerm good_term(arity, dim); in TEST()
182 BadTestTerm bad_term(arity, dim); in TEST()
187 for (int j = 0; j < arity; j++) { in TEST()
/external/v8/src/compiler/
Djs-call-reducer.cc70 DCHECK_LE(2u, p.arity()); in ReduceArrayConstructor()
71 size_t const arity = p.arity() - 2; in ReduceArrayConstructor() local
78 NodeProperties::ChangeOp(node, javascript()->CreateArray(arity, site)); in ReduceArrayConstructor()
89 DCHECK_LE(2u, p.arity()); in ReduceNumberConstructor()
90 Node* value = (p.arity() == 2) ? jsgraph()->ZeroConstant() in ReduceNumberConstructor()
106 size_t arity = p.arity(); in ReduceFunctionPrototypeApply() local
107 DCHECK_LE(2u, arity); in ReduceFunctionPrototypeApply()
109 if (arity == 2) { in ReduceFunctionPrototypeApply()
114 } else if (arity == 3) { in ReduceFunctionPrototypeApply()
117 --arity; in ReduceFunctionPrototypeApply()
[all …]
Djs-operator.cc114 return lhs.arity() == rhs.arity() && lhs.feedback() == rhs.feedback(); in operator ==()
125 return base::hash_combine(p.arity(), p.feedback()); in hash_value()
130 return os << p.arity(); in operator <<()
141 os << p.arity() << ", " << p.language_mode() << ", " << p.convert_mode() in operator <<()
155 return lhs.id() == rhs.id() && lhs.arity() == rhs.arity(); in operator ==()
166 return base::hash_combine(p.id(), p.arity()); in hash_value()
171 return os << p.id() << ", " << p.arity(); in operator <<()
401 return lhs.arity() == rhs.arity() && in operator ==()
413 return base::hash_combine(p.arity(), p.site().location()); in hash_value()
418 os << p.arity(); in operator <<()
[all …]
Djs-operator.h94 CallConstructParameters(size_t arity, VectorSlotPair const& feedback) in CallConstructParameters() argument
95 : arity_(arity), feedback_(feedback) {} in CallConstructParameters()
97 size_t arity() const { return arity_; } in arity() function
119 CallFunctionParameters(size_t arity, LanguageMode language_mode, in CallFunctionParameters() argument
123 : bit_field_(ArityField::encode(arity) | in CallFunctionParameters()
129 size_t arity() const { return ArityField::decode(bit_field_); } in arity() function
174 CallRuntimeParameters(Runtime::FunctionId id, size_t arity) in CallRuntimeParameters() argument
175 : id_(id), arity_(arity) {} in CallRuntimeParameters()
178 size_t arity() const { return arity_; } in arity() function
392 explicit CreateArrayParameters(size_t arity, Handle<AllocationSite> site) in CreateArrayParameters() argument
[all …]
Draw-machine-assembler.cc165 Node* arity = Int32Constant(1); in CallRuntime1() local
167 return AddNode(common()->Call(descriptor), centry, arg1, ref, arity, context); in CallRuntime1()
180 Node* arity = Int32Constant(2); in CallRuntime2() local
182 return AddNode(common()->Call(descriptor), centry, arg1, arg2, ref, arity, in CallRuntime2()
197 Node* arity = Int32Constant(4); in CallRuntime4() local
200 ref, arity, context); in CallRuntime4()
234 Node* arity = Int32Constant(kArity); in TailCallRuntime1() local
236 Node* nodes[] = {centry, arg1, ref, arity, context}; in TailCallRuntime1()
258 Node* arity = Int32Constant(kArity); in TailCallRuntime2() local
260 Node* nodes[] = {centry, arg1, arg2, ref, arity, context}; in TailCallRuntime2()
Djs-typed-lowering.cc1752 if (p.arity() == 0) { in ReduceJSCreateArray()
1756 } else if (p.arity() == 1) { in ReduceJSCreateArray()
1775 if (p.arity() == 0) { in ReduceJSCreateArray()
1786 } else if (p.arity() == 1) { in ReduceJSCreateArray()
1800 int const arity = static_cast<int>(p.arity()); in ReduceJSCreateArray() local
1805 arity + 1, CallDescriptor::kNeedsFrameState); in ReduceJSCreateArray()
1808 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(arity)); in ReduceJSCreateArray()
2085 DCHECK_LE(2u, p.arity()); in ReduceJSCallConstruct()
2086 int const arity = static_cast<int>(p.arity() - 2); in ReduceJSCallConstruct() local
2089 Node* new_target = NodeProperties::GetValueInput(node, arity + 1); in ReduceJSCallConstruct()
[all …]
Djs-generic-lowering.cc232 Node* arity = jsgraph()->Int32Constant(nargs); in ReplaceWithRuntimeCall() local
235 node->InsertInput(zone(), nargs + 2, arity); in ReplaceWithRuntimeCall()
475 int const arity = static_cast<int>(p.arity()); in LowerJSCreateArray() local
487 node->InsertInput(zone(), 1 + arity, new_target); in LowerJSCreateArray()
488 node->InsertInput(zone(), 2 + arity, type_info); in LowerJSCreateArray()
489 ReplaceWithRuntimeCall(node, Runtime::kNewArray, arity + 3); in LowerJSCreateArray()
562 int const arg_count = static_cast<int>(p.arity() - 2); in LowerJSCallConstruct()
582 int const arg_count = static_cast<int>(p.arity() - 2); in LowerJSCallFunction()
602 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); in LowerJSCallRuntime()
Dbytecode-graph-builder.h120 interpreter::Register receiver, size_t arity);
123 interpreter::Register first_arg, size_t arity);
126 size_t arity);
Dbytecode-graph-builder.cc1181 size_t arity) { in ProcessCallArguments() argument
1182 Node** all = info()->zone()->NewArray<Node*>(static_cast<int>(arity)); in ProcessCallArguments()
1186 for (int i = 2; i < static_cast<int>(arity); ++i) { in ProcessCallArguments()
1190 Node* value = MakeNode(call_op, static_cast<int>(arity), all, false); in ProcessCallArguments()
1243 size_t arity) { in ProcessCallRuntimeArguments() argument
1244 Node** all = info()->zone()->NewArray<Node*>(arity); in ProcessCallRuntimeArguments()
1246 for (int i = 0; i < static_cast<int>(arity); ++i) { in ProcessCallRuntimeArguments()
1250 Node* value = MakeNode(call_runtime_op, static_cast<int>(arity), all, false); in ProcessCallRuntimeArguments()
1288 interpreter::Register first_arg, size_t arity) { in ProcessCallNewArguments() argument
1289 Node** all = info()->zone()->NewArray<Node*>(arity); in ProcessCallNewArguments()
[all …]
Djs-intrinsic-lowering.cc591 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); in ReduceCall() local
593 node, javascript()->CallFunction(arity, STRICT, VectorSlotPair(), in ReduceCall()
601 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); in ReduceTailCall() local
603 node, javascript()->CallFunction(arity, STRICT, VectorSlotPair(), in ReduceTailCall()
/external/apache-xml/src/main/java/org/apache/xpath/jaxp/
DJAXPExtensionsProvider.java125 int arity = argVec.size(); in extFunction() local
128 resolver.resolveFunction ( myQName, arity ); in extFunction()
131 ArrayList argList = new ArrayList( arity); in extFunction()
132 for ( int i=0; i<arity; i++ ) { in extFunction()
166 int arity = extFunction.getArgCount(); in extFunction() local
180 resolver.resolveFunction( myQName, arity ); in extFunction()
182 ArrayList argList = new ArrayList( arity); in extFunction()
183 for ( int i=0; i<arity; i++ ) { in extFunction()
/external/owasp/sanitizer/empiricism/
Dhtml-containment.js27 var arity = makeHtmlString.length;
28 var nRuns = Math.pow(nElements, arity);
30 var paramIndices = new Array(arity);
31 var paramValues = new Array(arity);
32 for (var i = 0; i < arity; ++i) {
56 for (i = arity; --i >= 0;) {
95 paramValues.length = arity;
121 paramValues[arity] = iframe.contentDocument.body;
122 paramValues[arity + 1] = result;
124 paramValues.length = arity;
/external/jcommander/src/main/java/com/beust/jcommander/
DJCommander.java721 && pd.getParameter().arity() == -1) { in parseValues()
843 int arity = va.processVariableArity(pd.getParameter().names()[0], in processVariableArity() local
846 int result = processFixedArity(args, index, pd, List.class, arity); in processVariableArity()
854 int arity = pd.getParameter().arity(); in processFixedArity() local
855 int n = (arity != -1 ? arity : 1); in processFixedArity()
861 Class<?> fieldType, int arity) { in processFixedArity() argument
865 if (arity == 0 && in processFixedArity()
873 if (index + arity < args.length) { in processFixedArity()
874 for (int j = 1; j <= arity; j++) { in processFixedArity()
878 index += arity + offset; in processFixedArity()
[all …]
DWrappedParameter.java29 public int arity() { in arity() method in WrappedParameter
30 return m_parameter != null ? m_parameter.arity() : 1; in arity()
DParameter.java63 int arity() default -1; in arity() method
/external/llvm/test/CodeGen/X86/GC/
Derlang-gc.ll13 ; CHECK64-NEXT: .short 0 # stack arity
21 ; CHECK32-NEXT: .short 0 # stack arity
/external/jcommander/src/test/java/com/beust/jcommander/args/
DArgsBooleanArity0.java24 @Parameter(names = "-debug", arity = 0)
DArgsBooleanArity.java24 @Parameter(names = "-debug", arity = 1)
DArity1.java7 @Parameter(arity = 1, names = "-inspect", description = "", required = false)
DSeparatorColon.java27 @Parameter(names = "-verbose", arity = 1)
DArgsArityString.java32 @Parameter(names = "-pairs", arity = 2, description = "Pairs")
DArgsArityInteger.java32 @Parameter(names = "-pairs", arity = 2, description = "Pairs")
/external/valgrind/VEX/priv/
Dguest_arm_helpers.c564 Int i, arity = 0; in guest_arm_spechelper() local
566 arity++; in guest_arm_spechelper()
570 for (i = 0; i < arity; i++) { in guest_arm_spechelper()
586 vassert(arity == 4); in guest_arm_spechelper()
822 vassert(arity == 4); in guest_arm_spechelper()
872 vassert(arity == 4); in guest_arm_spechelper()

12345