Home
last modified time | relevance | path

Searched refs:units_ (Results 1 – 18 of 18) sorted by relevance

/external/marisa-trie/lib/marisa/grimoire/vector/
Dbit-vector.h20 : units_(), size_(0), num_1s_(0), ranks_(), select0s_(), select1s_() {} in BitVector()
25 units_.shrink(); in build()
26 temp.units_.swap(units_); in build()
53 if (size_ == (MARISA_WORD_SIZE * units_.size())) { in push_back()
54 units_.resize(units_.size() + (64 / MARISA_WORD_SIZE), 0); in push_back()
57 units_[size_ / MARISA_WORD_SIZE] |= in push_back()
66 return (units_[i / MARISA_WORD_SIZE]
94 return units_.total_size() + ranks_.total_size() in total_size()
98 return units_.io_size() + (sizeof(UInt32) * 2) + ranks_.io_size() in io_size()
106 units_.swap(rhs.units_); in swap()
[all …]
Dflat-vector.h18 FlatVector() : units_(), value_size_(0), mask_(0), size_(0) {} in FlatVector()
48 return (UInt32)(units_[unit_id] >> unit_offset) & mask_;
50 return (UInt32)((units_[unit_id] >> unit_offset)
51 | (units_[unit_id + 1] << (MARISA_WORD_SIZE - unit_offset))) & mask_;
69 return units_.total_size(); in total_size()
72 return units_.io_size() + (sizeof(UInt32) * 2) + sizeof(UInt64); in io_size()
79 units_.swap(rhs.units_); in swap()
86 Vector<Unit> units_;
113 units_.resize(num_units); in build_()
115 units_.back() = 0; in build_()
[all …]
Dbit-vector.cc384 offset += PopCount::count(units_[i / 64] & ((1ULL << (i % 64)) - 1)); in rank1()
447 return select_bit(i, unit_id * 64, ~units_[unit_id]); in select0()
509 return select_bit(i, unit_id * 64, units_[unit_id]); in select1()
551 offset += PopCount::count(units_[(i / 32) - 1]); in rank1()
553 offset += PopCount::count(units_[i / 32] & ((1U << (i % 32)) - 1)); in rank1()
617 return select_bit(i, unit_id * 32, ~units_[unit_id], ~units_[unit_id + 1]); in select0()
619 UInt32 unit = ~units_[unit_id]; in select0()
624 unit = ~units_[unit_id]; in select0()
708 return select_bit(i, unit_id * 32, units_[unit_id], units_[unit_id + 1]); in select1()
710 UInt32 unit = units_[unit_id]; in select1()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DComplexUnitsConverter.java33 private ArrayList<MeasureUnitImpl> units_; field in ComplexUnitsConverter
48 units_ = outputUnits.extractIndividualUnits(); in ComplexUnitsConverter()
49 outputUnits_ = new ArrayList<>(units_.size()); in ComplexUnitsConverter()
50 for (MeasureUnitImpl itr : units_) { in ComplexUnitsConverter()
53 assert (!units_.isEmpty()); in ComplexUnitsConverter()
57 this.units_, in ComplexUnitsConverter()
76 for (int i = 0, n = units_.size(); i < n; i++) { in ComplexUnitsConverter()
78 unitConverters_.add(new UnitConverter(inputUnit, units_.get(i), conversionRates)); in ComplexUnitsConverter()
80 … unitConverters_.add(new UnitConverter(units_.get(i - 1), units_.get(i), conversionRates)); in ComplexUnitsConverter()
94 assert !units_.isEmpty(); in greaterThanOrEqual()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DComplexUnitsConverter.java31 private ArrayList<MeasureUnitImpl> units_; field in ComplexUnitsConverter
46 units_ = outputUnits.extractIndividualUnits(); in ComplexUnitsConverter()
47 outputUnits_ = new ArrayList<>(units_.size()); in ComplexUnitsConverter()
48 for (MeasureUnitImpl itr : units_) { in ComplexUnitsConverter()
51 assert (!units_.isEmpty()); in ComplexUnitsConverter()
55 this.units_, in ComplexUnitsConverter()
74 for (int i = 0, n = units_.size(); i < n; i++) { in ComplexUnitsConverter()
76 unitConverters_.add(new UnitConverter(inputUnit, units_.get(i), conversionRates)); in ComplexUnitsConverter()
78 … unitConverters_.add(new UnitConverter(units_.get(i - 1), units_.get(i), conversionRates)); in ComplexUnitsConverter()
92 assert !units_.isEmpty(); in greaterThanOrEqual()
[all …]
/external/icu/icu4c/source/i18n/
Dunits_complexconverter.cpp28 : units_(outputUnits.extractIndividualUnits(status)) { in ComplexUnitsConverter()
33 U_ASSERT(units_.length() != 0); in ComplexUnitsConverter()
36 for (int32_t i = 0; i < units_.length(); i++) { in ComplexUnitsConverter()
37 outputUnits_.emplaceBackAndCheckErrorCode(status, units_[i]->copy(status).build(status)); in ComplexUnitsConverter()
64 …uprv_sortArray(units_.getAlias(), … in ComplexUnitsConverter()
65units_.length(), // in ComplexUnitsConverter()
66 … sizeof units_[0], /* NOTE: we have already asserted that the units_ is not empty.*/ // in ComplexUnitsConverter()
87 for (int i = 0, n = units_.length(); i < n; i++) { in ComplexUnitsConverter()
89 unitConverters_.emplaceBackAndCheckErrorCode(status, inputUnit, *units_[i], ratesInfo, in ComplexUnitsConverter()
92 … unitConverters_.emplaceBackAndCheckErrorCode(status, *units_[i - 1], *units_[i], ratesInfo, in ComplexUnitsConverter()
[all …]
Dunits_complexconverter.h83 MaybeStackVector<MeasureUnitImpl> units_; variable
/external/tensorflow/tensorflow/lite/kernels/
Dunidirectional_sequence_rnn_test.cc180 units_(units), in UnidirectionalRNNOpModel()
196 {units_, input_size_}, in UnidirectionalRNNOpModel()
197 {units_, units_}, in UnidirectionalRNNOpModel()
198 {units_}, in UnidirectionalRNNOpModel()
202 {units_, input_size_}, in UnidirectionalRNNOpModel()
203 {units_, units_}, in UnidirectionalRNNOpModel()
204 {units_}, in UnidirectionalRNNOpModel()
205 {batches_, units_}}); in UnidirectionalRNNOpModel()
230 int num_units() { return units_; } in num_units()
244 int units_; member in tflite::__anone81b2e4e0111::UnidirectionalRNNOpModel
Dbasic_rnn_test.cc177 : batches_(batches), units_(units), input_size_(size) { in RNNOpModel()
189 {units_, input_size_}, // weights tensor in RNNOpModel()
190 {units_, units_}, // recurrent weights tensor in RNNOpModel()
191 {units_}, // bias tensor in RNNOpModel()
192 {batches_, units_}}); // hidden state tensor in RNNOpModel()
216 int num_units() { return units_; } in num_units()
228 int units_; member in tflite::__anon3123f5fe0111::RNNOpModel
Dsvdf_test.cc137 units_(units), in BaseSVDFOpModel()
155 {units_ * rank, input_size_}, // weights_feature tensor in BaseSVDFOpModel()
156 {units_ * rank, memory_size_}, // weights_time tensor in BaseSVDFOpModel()
157 {units_}, // bias tensor in BaseSVDFOpModel()
181 int num_units() { return units_; } in num_units()
193 int units_; member in tflite::__anon7126f9820111::BaseSVDFOpModel
473 units_(units), in IntegerSVDFOpModel()
530 int units_; member in tflite::__anon7126f9820111::IntegerSVDFOpModel
Dfully_connected_test.cc145 : batches_(batches), units_(units) {
154 weights_ = AddInput({TensorType_INT8, {units_, input_size_}, -63.5, 64});
157 AddInput({input.type, {units_, input_size_}, input.min, input.max});
163 bias_ = AddInput({TensorType_FLOAT32, {units_}});
170 TensorData bias{TensorType_INT64, {units_}, 0, 0, bias_scale};
173 TensorData bias{TensorType_INT32, {units_}, 0, 0, bias_scale};
200 int num_units() { return units_; } in num_units()
210 int units_; member in tflite::__anonae46fc4d0111::BaseFullyConnectedOpModel
301 : batches_(batches), units_(units) {
311 TensorData bias{TensorType_FLOAT32, {units_}};
[all …]
Dbatch_matmul_test.cc356 : units_(units), batches_(batches) {
388 int num_units() { return units_; } in num_units()
398 int units_; member in tflite::__anon83a19b600111::HybridBatchMatMulOpModel
715 : units_(units), batches_(batches) {
724 {input_size_, units_},
763 int units_; member in tflite::__anon83a19b600111::QuantizedBatchMatMulOpModel
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/
Dmatmul_test.cc30 : batches_(batches), units_(units) { in FullyConnectedOpModel()
39 AddInput({input.type, {units_, input_size_}, input.min, input.max}); in FullyConnectedOpModel()
45 TensorData bias{TensorType_INT32, {units_}, 0, 0, bias_scale}; in FullyConnectedOpModel()
103 int units_; member in tflite::FullyConnectedOpModel
/external/icu/libicu/cts_headers/
Dunits_complexconverter.h83 MaybeStackVector<MeasureUnitImpl> units_; variable
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_signed_quantization_test.cc69 : batches_(batches), units_(units) {
80 TensorData bias{TensorType_FLOAT32, {units_}};
114 int num_units() { return units_; } in num_units()
124 int units_; member in tflite::__anonc4d0941d0111::HybridFullyConnectedOpModel
Dnnapi_delegate_test.cc2738 : batches_(batches), units_(units), input_size_(size) { in RNNOpModel()
2750 {units_, input_size_}, // weights tensor in RNNOpModel()
2751 {units_, units_}, // recurrent weights tensor in RNNOpModel()
2752 {units_}, // bias tensor in RNNOpModel()
2753 {batches_, units_} // hidden state tensor in RNNOpModel()
2778 int num_units() { return units_; } in num_units()
2790 int units_; member in tflite::__anonde5f765e0111::RNNOpModel
2924 units_(units), in BaseSVDFOpModel()
2943 {units_ * rank, input_size_}, // weights_feature tensor in BaseSVDFOpModel()
2944 {units_ * rank, memory_size_}, // weights_time tensor in BaseSVDFOpModel()
[all …]
/external/ImageMagick/Magick++/lib/
DDrawable.cpp357 Magick::DrawableClipUnits::DrawableClipUnits(const ClipPathUnits units_) in DrawableClipUnits() argument
359 _units = units_; in DrawableClipUnits()
372 void Magick::DrawableClipUnits::units(const ClipPathUnits units_) in units() argument
374 _units = units_; in units()
/external/ImageMagick/Magick++/lib/Magick++/
DDrawable.h517 DrawableClipUnits(const ClipPathUnits units_);
524 void units(const ClipPathUnits units_);