Searched defs:arity (Results 1 - 25 of 65) sorted by relevance

123

/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/tensorflow/tensorflow/stream_executor/cuda/
H A Dcuda_kernel.h57 // As arity cannot be reflected upon using the CUDA API, the arity is
59 void set_arity(unsigned arity) { arity_ = arity; } argument
/external/tensorflow/tensorflow/compiler/tf2xla/lib/
H A Dwhile_loop.cc28 int arity = initial_values.size(); local
30 var_shapes.reserve(arity);
38 auto unpack_tuple = [](xla::ComputationDataHandle tuple, int arity,
40 std::vector<xla::ComputationDataHandle> elements(arity);
41 for (int i = 0; i < arity; ++i) {
55 condition_function(unpack_tuple(parameter, arity, cond_builder.get()),
69 body_function(unpack_tuple(parameter, arity, body_builder.get()),
79 return unpack_tuple(outputs, arity, builder);
/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 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/mesa3d/src/compiler/glsl/
H A Dir_builder_print_visitor.cpp533 static const char *const arity[] = { local
562 arity[num_op],
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
H A DGenericMetadataSupport.java237 int arity = 0;
239 arity++;
244 if (arity == 0) {
247 return new GenericArrayReturnType(genericMetadataSupport, arity);
469 private final int arity; field in class:GenericMetadataSupport.GenericArrayReturnType
471 public GenericArrayReturnType(GenericMetadataSupport genericArrayType, int arity) { argument
473 this.arity = arity;
480 for (int i = 0; i < arity; i++) {
/external/tensorflow/tensorflow/stream_executor/
H A Dkernel_spec.cc248 MultiKernelLoaderSpec::MultiKernelLoaderSpec(size_t arity) : arity_(arity) {} argument
H A Dkernel_spec.h28 // (new MultiKernelLoaderSpec{4 /* = arity */})
276 explicit MultiKernelLoaderSpec(size_t arity);
279 size_t arity() const { return arity_; } function in class:perftools::gputools::MultiKernelLoaderSpec
/external/v8/src/compiler/
H A Dcode-assembler.h356 Node* arity = Int32Constant(argc); local
357 return CallStub(callable, context, function, arity, receiver, args...);
364 Node* arity = Int32Constant(argc); local
367 // Construct(target, new_target, arity, receiver, arguments...)
368 return CallStub(callable, context, new_target, new_target, arity, receiver,
H A Dtyped-optimization.cc248 int arity = node->op()->ValueInputCount(); local
250 for (int i = 1; i < arity; ++i) {
H A Djs-call-reducer.cc55 DCHECK_LE(2u, p.arity());
56 size_t const arity = p.arity() - 2; local
62 NodeProperties::ChangeOp(node, javascript()->CreateArray(arity, site));
73 DCHECK_LE(2u, p.arity());
74 Node* value = (p.arity() == 2) ? jsgraph()->ZeroConstant()
93 size_t arity = p.arity(); local
94 DCHECK_LE(2u, arity);
96 if (arity
213 size_t arity = p.arity(); local
417 ReduceSpreadCall(Node* node, int arity) argument
555 size_t arity = p.arity(); local
656 int arity = static_cast<int>(p.arity() - 1); local
665 int const arity = static_cast<int>(p.arity() - 2); local
781 int arity = static_cast<int>(p.arity() - 2); local
[all...]
H A Djs-operator.h63 // Defines the arity and the feedback for a JavaScript constructor call. This is
67 ConstructParameters(uint32_t arity, float frequency, argument
69 : arity_(arity), frequency_(frequency), feedback_(feedback) {}
71 uint32_t arity() const { return arity_; } function in class:v8::internal::compiler::final
90 // Defines the arity for a JavaScript constructor call with a spread as the last
95 explicit ConstructWithSpreadParameters(uint32_t arity) : arity_(arity) {} argument
97 uint32_t arity() const { return arity_; } function in class:v8::internal::compiler::final
152 // Defines the arity and the call flags for a JavaScript function call. This is
156 CallParameters(size_t arity, floa argument
164 size_t arity() const { return ArityField::decode(bit_field_); } function in class:v8::internal::compiler::final
206 CallWithSpreadParameters(uint32_t arity) argument
208 uint32_t arity() const { return arity_; } function in class:v8::internal::compiler::final
229 CallRuntimeParameters(Runtime::FunctionId id, size_t arity) argument
233 size_t arity() const { return arity_; } function in class:v8::internal::compiler::final
498 CreateArrayParameters(size_t arity, Handle<AllocationSite> site) argument
501 size_t arity() const { return arity_; } function in class:v8::internal::compiler::final
[all...]
H A Djs-intrinsic-lowering.cc307 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); local
310 javascript()->Call(arity, 0.0f, VectorSlotPair(),
H A Djs-create-lowering.cc589 int const arity = static_cast<int>(p.arity()); local
597 if (arity == 0) {
609 } else if (arity == 1) {
702 DCHECK(arity > 1);
705 isolate(), graph()->zone(), stub.GetCallInterfaceDescriptor(), arity + 1,
709 node->InsertInput(graph()->zone(), 3, jsgraph()->Constant(arity));
735 if (p.arity() == 0) {
739 } else if (p.arity() == 1) {
H A Djs-generic-lowering.cc114 Node* arity = jsgraph()->Int32Constant(nargs); local
117 node->InsertInput(zone(), nargs + 2, arity); local
361 int const arity = static_cast<int>(p.arity()); local
367 node->InsertInput(zone(), 1 + arity, new_target); local
368 node->InsertInput(zone(), 2 + arity, type_info); local
369 ReplaceWithRuntimeCall(node, Runtime::kNewArray, arity + 3);
513 int const arg_count = static_cast<int>(p.arity() - 2);
533 int const arg_count = static_cast<int>(p.arity() - 2);
568 int const arg_count = static_cast<int>(p.arity()
[all...]
H A Djs-operator.cc57 return lhs.arity() == rhs.arity() && lhs.frequency() == rhs.frequency() &&
67 return base::hash_combine(p.arity(), p.frequency(), p.feedback());
71 return os << p.arity() << ", " << p.frequency();
81 return lhs.arity() == rhs.arity();
90 return base::hash_combine(p.arity());
95 return os << p.arity();
105 os << p.arity() << ", " << p.frequency() << ", " << p.convert_mode() << ", "
128 return lhs.arity()
754 Call(size_t arity, float frequency, VectorSlotPair const& feedback, ConvertReceiverMode convert_mode, TailCallMode tail_call_mode) argument
767 CallWithSpread(uint32_t arity) argument
782 CallRuntime(Runtime::FunctionId id, size_t arity) argument
789 CallRuntime(const Runtime::Function* f, size_t arity) argument
800 Construct(uint32_t arity, float frequency, VectorSlotPair const& feedback) argument
810 ConstructWithSpread(uint32_t arity) argument
978 CreateArray(size_t arity, Handle<AllocationSite> site) argument
[all...]
H A Dcode-assembler.cc513 Node* arity = Int32Constant(argc); local
515 Node* nodes[] = {centry, args..., ref, arity, context};
542 Node* arity = Int32Constant(argc); local
544 Node* nodes[] = {centry, args..., ref, arity, context};
H A Descape-analysis.cc502 size_t arity = at->opcode() == IrOpcode::kEffectPhi local
505 if (cache->fields().size() == arity) {
/external/v8/src/wasm/
H A Dfunction-body-decoder-impl.h81 uint32_t arity; member in struct:v8::internal::wasm::BlockTypeOperand
89 arity = 0;
92 arity = type == kWasmStmt ? 0 : 1;
97 decoder->error(pc, pc + 1, "invalid block arity > 1");
106 uint32_t count = decoder->checked_read_u32v(pc, 2, &len, "block arity");
107 // {count} is encoded as {arity-2}, so that a {0} count here corresponds
110 arity = count + 2;
111 length = 1 + len + arity;
114 for (uint32_t i = 0; i < arity; i++) {
162 DCHECK_LT(index, arity);
[all...]
H A Dfunction-body-decoder.cc86 uint32_t arity; member in struct:v8::internal::wasm::MergeValues
93 DCHECK_GT(arity, i);
94 return arity == 1 ? vals.first : vals.array[i];
701 c->merge.arity = static_cast<uint32_t>(sig_->return_count());
703 if (c->merge.arity == 1) {
705 } else if (c->merge.arity > 1) {
706 c->merge.vals.array = zone_->NewArray<Value>(c->merge.arity);
707 for (unsigned i = 0; i < c->merge.arity; i++) {
877 if (c->merge.arity > 0) {
991 } else if (merge->arity !
1636 int arity = static_cast<int>(c->merge.arity); local
[all...]
/external/valgrind/VEX/priv/
H A Dguest_arm64_helpers.c1322 Int i, arity = 0; local
1324 arity++;
1328 //ZZ for (i = 0; i < arity; i++) {
1344 vassert(arity == 4);
1617 //ZZ vassert(arity == 4);
1667 //ZZ vassert(arity == 4);
H A Dguest_arm_helpers.c823 Int i, arity = 0; local
825 arity++;
829 for (i = 0; i < arity; i++) {
845 vassert(arity == 4);
1081 vassert(arity == 4);
1131 vassert(arity == 4);
H A Dguest_s390_helpers.c1829 UInt i, arity = 0; local
1832 arity++;
1837 for (i = 0; i < arity; i++) {
1850 vassert(arity == 5);
2387 vassert(arity == 4);
/external/v8/src/ast/
H A Dast-types.h619 AstFunctionType(AstType* result, AstType* receiver, int arity, Zone* zone) argument
620 : AstStructuralType(kFunction, 2 + arity, zone) {
625 static AstType* New(AstType* result, AstType* receiver, int arity, argument
628 AstFunctionType(result, receiver, arity, zone));
727 static AstType* Function(AstType* result, AstType* receiver, int arity, argument
729 return AstFunctionType::New(result, receiver, arity, zone);
754 static AstType* Function(AstType* result, int arity, AstType** params, argument
756 AstType* function = Function(result, Any(), arity, zone);
757 for (int i = 0; i < arity; ++i) {

Completed in 592 milliseconds

123