Searched refs:arity (Results 1 - 25 of 89) sorted by relevance

1234

/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
H A DTournamentSelection.java24 * based on n-ary tournament -- this is done by drawing {@link #arity} random
34 private int arity; field in class:TournamentSelection
39 * @param arity
42 public TournamentSelection(int arity) { argument
43 this.arity = arity;
49 * drawing {@link #arity} random chromosomes without replacement from the
64 * Helper for {@link #select(Population)}. Draw {@link #arity} random
73 if (population.getPopulationSize() < this.arity)
74 throw new IllegalArgumentException("Tournament arity canno
110 setArity(int arity) argument
[all...]
/external/jcommander/src/test/java/com/beust/jcommander/args/
H A DArgsBooleanArity.java24 @Parameter(names = "-debug", arity = 1)
H A DArgsBooleanArity0.java24 @Parameter(names = "-debug", arity = 0)
H A DArity1.java7 @Parameter(arity = 1, names = "-inspect", description = "", required = false)
H A DSeparatorColon.java27 @Parameter(names = "-verbose", arity = 1)
H A DArgsArityInteger.java26 * Test parameter arity.
32 @Parameter(names = "-pairs", arity = 2, description = "Pairs")
H A DArgsArityString.java26 * Test parameter arity.
32 @Parameter(names = "-pairs", arity = 2, description = "Pairs")
H A DCommandLineArgs2.java31 @Parameter(names = { "-v", "--verbose" }, description = "print verbose log messages.", arity = 1)
/external/ceres-solver/internal/ceres/
H A Dgradient_checker_test.cc56 GoodTestTerm(int arity, int const *dim) : arity_(arity) { argument
57 // Make 'arity' random vectors.
109 BadTestTerm(int arity, int const *dim) : arity_(arity) { argument
110 // Make 'arity' random vectors.
164 int const arity = 3; local
165 int const dim[arity] = { 2, 3, 4 };
168 FixedArray<double*> parameters(arity);
169 for (int j = 0; j < arity;
[all...]
H A Dgradient_checking_cost_function_test.cc72 TestTerm(int arity, int const *dim) : arity_(arity) { argument
73 // Make 'arity' random vectors.
136 int const arity = 3; local
137 int const dim[arity] = { 2, 3, 4 };
140 vector<double*> parameters(arity);
141 for (int j = 0; j < arity; ++j) {
150 vector<double*> original_jacobians(arity);
151 vector<double*> jacobians(arity);
153 for (int j = 0; j < arity;
193 int const arity = 3; local
[all...]
/external/v8/src/compiler/
H A Djs-call-reducer.cc70 DCHECK_LE(2u, p.arity());
71 size_t const arity = p.arity() - 2; local
77 NodeProperties::ChangeOp(node, javascript()->CreateArray(arity, site));
88 DCHECK_LE(2u, p.arity());
89 Node* value = (p.arity() == 2) ? jsgraph()->ZeroConstant()
104 size_t arity = p.arity(); local
105 DCHECK_LE(2u, arity);
107 if (arity
193 size_t arity = p.arity(); local
275 size_t arity = p.arity(); local
368 int const arity = static_cast<int>(p.arity() - 2); local
[all...]
H A Djs-operator.cc57 return lhs.arity() == rhs.arity() && lhs.feedback() == rhs.feedback();
68 return base::hash_combine(p.arity(), p.feedback());
73 return os << p.arity();
84 os << p.arity() << ", " << p.convert_mode() << ", " << p.tail_call_mode();
97 return lhs.id() == rhs.id() && lhs.arity() == rhs.arity();
108 return base::hash_combine(p.id(), p.arity());
113 return os << p.id() << ", " << p.arity();
288 return lhs.arity()
643 CallFunction( size_t arity, VectorSlotPair const& feedback, ConvertReceiverMode convert_mode, TailCallMode tail_call_mode) argument
662 CallRuntime(Runtime::FunctionId id, size_t arity) argument
669 CallRuntime(const Runtime::Function* f, size_t arity) argument
681 CallConstruct( size_t arity, VectorSlotPair const& feedback) argument
825 CreateArray(size_t arity, Handle<AllocationSite> site) argument
[all...]
H A Djs-operator.h54 // Defines the arity and the feedback for a JavaScript constructor call. This is
58 CallConstructParameters(size_t arity, VectorSlotPair const& feedback) argument
59 : arity_(arity), feedback_(feedback) {}
61 size_t arity() const { return arity_; } function in class:v8::internal::compiler::final
79 // Defines the arity and the call flags for a JavaScript function call. This is
83 CallFunctionParameters(size_t arity, VectorSlotPair const& feedback, argument
86 : bit_field_(ArityField::encode(arity) |
91 size_t arity() const { return ArityField::decode(bit_field_); } function in class:v8::internal::compiler::final
128 // Defines the arity and the ID for a runtime function call. This is used as a
132 CallRuntimeParameters(Runtime::FunctionId id, size_t arity) argument
136 size_t arity() const { return arity_; } function in class:v8::internal::compiler::final
301 CreateArrayParameters(size_t arity, Handle<AllocationSite> site) argument
304 size_t arity() const { return arity_; } function in class:v8::internal::compiler::final
[all...]
H A Draw-machine-assembler.cc185 Node* arity = Int32Constant(0); local
187 return AddNode(common()->Call(descriptor), centry, ref, arity, context);
199 Node* arity = Int32Constant(1); local
201 return AddNode(common()->Call(descriptor), centry, arg1, ref, arity, context);
214 Node* arity = Int32Constant(2); local
216 return AddNode(common()->Call(descriptor), centry, arg1, arg2, ref, arity,
230 Node* arity = Int32Constant(3); local
233 arity, context);
246 Node* arity = Int32Constant(4); local
249 ref, arity, contex
281 Node* arity = Int32Constant(kArity); local
302 Node* arity = Int32Constant(kArity); local
325 Node* arity = Int32Constant(kArity); local
347 Node* arity = Int32Constant(kArity); local
369 Node* arity = Int32Constant(kArity); local
[all...]
H A Dbytecode-graph-builder.h105 interpreter::Register receiver, size_t arity);
108 interpreter::Register first_arg, size_t arity);
111 size_t arity);
H A Djs-generic-lowering.cc117 Node* arity = jsgraph()->Int32Constant(nargs); local
120 node->InsertInput(zone(), nargs + 2, arity); local
395 int const arity = static_cast<int>(p.arity()); local
415 if (arity == 0) {
426 } else if (arity == 1) {
442 arity + 1, CallDescriptor::kNeedsFrameState);
445 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(arity));
454 node->InsertInput(zone(), 1 + arity, new_target); local
455 node->InsertInput(zone(), 2 + arity, type_inf local
[all...]
/external/v8/src/wasm/
H A Dast-decoder.h94 uint32_t arity; member in struct:v8::internal::wasm::BreakDepthOperand
101 arity = decoder->checked_read_u32v(pc, 1, &len1, "argument count");
109 uint32_t arity; member in struct:v8::internal::wasm::CallIndirectOperand
116 arity = decoder->checked_read_u32v(pc, 1, &len1, "argument count");
124 uint32_t arity; member in struct:v8::internal::wasm::CallFunctionOperand
131 arity = decoder->checked_read_u32v(pc, 1, &len1, "argument count");
139 uint32_t arity; member in struct:v8::internal::wasm::CallImportOperand
146 arity = decoder->checked_read_u32v(pc, 1, &len1, "argument count");
154 uint32_t arity; member in struct:v8::internal::wasm::BranchTableOperand
161 arity
200 uint32_t arity; member in struct:v8::internal::wasm::ReturnArityOperand
[all...]
H A Dast-decoder.cc172 if (operand.arity != expected) {
174 "arity mismatch in direct function call (expected %u, got %u)",
175 expected, operand.arity);
196 if (operand.arity != expected) {
198 "arity mismatch in indirect function call (expected %u, got %u)",
199 expected, operand.arity);
220 if (operand.arity != expected) {
221 error(pc, pc + 1, "arity mismatch in import call (expected %u, got %u)",
222 expected, operand.arity);
233 if (operand.arity >
[all...]
H A Dwasm-interpreter.cc802 TRACE("control @%td $%zu: Br[arity=%u, depth=%u]\n", (pc - start),
803 value_depth, operand.arity, operand.depth);
804 value_depth -= operand.arity;
806 &map_, start, pc, value_depth, operand.arity > 0);
812 TRACE("control @%td $%zu: BrIf[arity=%u, depth=%u]\n", (pc - start),
813 value_depth, operand.arity, operand.depth);
814 value_depth -= (operand.arity + 1);
816 &map_, start, pc, value_depth, operand.arity > 0);
822 TRACE("control @%td $%zu: BrTable[arity=%u count=%u]\n", (pc - start),
823 value_depth, operand.arity, operan
1071 size_t arity = code->function->sig->parameter_count(); local
1635 PopArity(size_t arity) argument
[all...]
/external/apache-xml/src/main/java/org/apache/xpath/jaxp/
H A DJAXPExtensionsProvider.java125 int arity = argVec.size();
128 resolver.resolveFunction ( myQName, arity );
131 ArrayList argList = new ArrayList( arity);
132 for ( int i=0; i<arity; i++ ) {
166 int arity = extFunction.getArgCount();
180 resolver.resolveFunction( myQName, arity );
182 ArrayList argList = new ArrayList( arity);
183 for ( int i=0; i<arity; i++ ) {
/external/owasp/sanitizer/empiricism/
H A Dhtml-containment.js8 * Its {@code length} property specifies its arity, and runExperiment
27 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
[all...]
/external/jcommander/src/main/java/com/beust/jcommander/
H A DWrappedParameter.java29 public int arity() { method in class:WrappedParameter
30 return m_parameter != null ? m_parameter.arity() : 1;
H A DParameter.java61 * an arity of 2 will allow "-pair value1 value2".
63 int arity() default -1;
101 * @return true if this parameter has a variable arity. See @{IVariableArity}
H A DJCommander.java709 // Variable arity?
719 // an arity of 1, in which case we need to read the next value
721 && pd.getParameter().arity() == -1) {
843 int arity = va.processVariableArity(pd.getParameter().names()[0],
846 int result = processFixedArity(args, index, pd, List.class, arity);
852 // Regular parameter, use the arity to tell use how many values
854 int arity = pd.getParameter().arity();
855 int n = (arity != -1 ? arity
860 processFixedArity(String[] args, int originalIndex, ParameterDescription pd, Class<?> fieldType, int arity) argument
[all...]
/external/jcommander/src/test/java/com/beust/jcommander/
H A DMethodSetterTest.java16 @Parameter(names = "-pairs", arity = 2, description = "Pairs")

Completed in 356 milliseconds

1234