Home
last modified time | relevance | path

Searched refs:NumIndices (Results 1 – 25 of 39) sorted by relevance

12

/external/libtextclassifier/abseil-cpp/absl/types/
Dvariant_benchmark.cc76 template <std::size_t NumIndices, std::size_t CurrIndex = NumIndices - 1>
78 using Variant = VariantOfAlternatives<NumIndices>;
83 : MakeWithIndex<NumIndices, CurrIndex - 1>::Run(index); in Run()
87 template <std::size_t NumIndices>
88 struct MakeWithIndex<NumIndices, 0> {
89 using Variant = VariantOfAlternatives<NumIndices>;
94 template <std::size_t NumIndices, class Dimensions>
100 template <std::size_t NumIndices>
101 VariantOfAlternatives<NumIndices> MakeVariant(std::size_t dimension, in MakeVariant()
104 ? MakeWithIndex<NumIndices>::Run(index % NumIndices) in MakeVariant()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/
Dvariant_benchmark.cc76 template <std::size_t NumIndices, std::size_t CurrIndex = NumIndices - 1>
78 using Variant = VariantOfAlternatives<NumIndices>;
83 : MakeWithIndex<NumIndices, CurrIndex - 1>::Run(index); in Run()
87 template <std::size_t NumIndices>
88 struct MakeWithIndex<NumIndices, 0> {
89 using Variant = VariantOfAlternatives<NumIndices>;
94 template <std::size_t NumIndices, class Dimensions>
100 template <std::size_t NumIndices>
101 VariantOfAlternatives<NumIndices> MakeVariant(std::size_t dimension, in MakeVariant()
104 ? MakeWithIndex<NumIndices>::Run(index % NumIndices) in MakeVariant()
[all …]
/external/abseil-cpp/absl/types/
Dvariant_benchmark.cc76 template <std::size_t NumIndices, std::size_t CurrIndex = NumIndices - 1>
78 using Variant = VariantOfAlternatives<NumIndices>;
83 : MakeWithIndex<NumIndices, CurrIndex - 1>::Run(index); in Run()
87 template <std::size_t NumIndices>
88 struct MakeWithIndex<NumIndices, 0> {
89 using Variant = VariantOfAlternatives<NumIndices>;
94 template <std::size_t NumIndices, class Dimensions>
100 template <std::size_t NumIndices>
101 VariantOfAlternatives<NumIndices> MakeVariant(std::size_t dimension, in MakeVariant()
104 ? MakeWithIndex<NumIndices>::Run(index % NumIndices) in MakeVariant()
[all …]
/external/openscreen/third_party/abseil/src/absl/types/
Dvariant_benchmark.cc76 template <std::size_t NumIndices, std::size_t CurrIndex = NumIndices - 1>
78 using Variant = VariantOfAlternatives<NumIndices>;
83 : MakeWithIndex<NumIndices, CurrIndex - 1>::Run(index); in Run()
87 template <std::size_t NumIndices>
88 struct MakeWithIndex<NumIndices, 0> {
89 using Variant = VariantOfAlternatives<NumIndices>;
94 template <std::size_t NumIndices, class Dimensions>
100 template <std::size_t NumIndices>
101 VariantOfAlternatives<NumIndices> MakeVariant(std::size_t dimension, in MakeVariant()
104 ? MakeWithIndex<NumIndices>::Run(index % NumIndices) in MakeVariant()
[all …]
/external/angle/third_party/abseil-cpp/absl/types/
Dvariant_benchmark.cc76 template <std::size_t NumIndices, std::size_t CurrIndex = NumIndices - 1>
78 using Variant = VariantOfAlternatives<NumIndices>;
83 : MakeWithIndex<NumIndices, CurrIndex - 1>::Run(index); in Run()
87 template <std::size_t NumIndices>
88 struct MakeWithIndex<NumIndices, 0> {
89 using Variant = VariantOfAlternatives<NumIndices>;
94 template <std::size_t NumIndices, class Dimensions>
100 template <std::size_t NumIndices>
101 VariantOfAlternatives<NumIndices> MakeVariant(std::size_t dimension, in MakeVariant()
104 ? MakeWithIndex<NumIndices>::Run(index % NumIndices) in MakeVariant()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/types/
Dvariant_benchmark.cc76 template <std::size_t NumIndices, std::size_t CurrIndex = NumIndices - 1>
78 using Variant = VariantOfAlternatives<NumIndices>;
83 : MakeWithIndex<NumIndices, CurrIndex - 1>::Run(index); in Run()
87 template <std::size_t NumIndices>
88 struct MakeWithIndex<NumIndices, 0> {
89 using Variant = VariantOfAlternatives<NumIndices>;
94 template <std::size_t NumIndices, class Dimensions>
100 template <std::size_t NumIndices>
101 VariantOfAlternatives<NumIndices> MakeVariant(std::size_t dimension, in MakeVariant()
104 ? MakeWithIndex<NumIndices>::Run(index % NumIndices) in MakeVariant()
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensor.h83 static const int NumIndices = NumIndices_; variable
92 … static const bool is_array = internal::is_base_of<array<Index, NumIndices>, CustomIndices>::value;
100 …N_STRONG_INLINE Index rank() const { return NumIndices; } in rank()
118 EIGEN_STATIC_ASSERT(sizeof...(otherIndices) + 2 == NumIndices, YOU_MADE_A_PROGRAMMING_MISTAKE) in coeff()
119 return coeff(array<Index, NumIndices>{{firstIndex, secondIndex, otherIndices...}}); in coeff()
124 …EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar& coeff(const array<Index, NumIndices>& indices)… in coeff()
137 return coeff(internal::customIndices2Array<Index,NumIndices>(indices)); in coeff()
143 EIGEN_STATIC_ASSERT(NumIndices == 0, YOU_MADE_A_PROGRAMMING_MISTAKE); in coeff()
158 EIGEN_STATIC_ASSERT(sizeof...(otherIndices) + 2 == NumIndices, YOU_MADE_A_PROGRAMMING_MISTAKE) in coeffRef()
159 return coeffRef(array<Index, NumIndices>{{firstIndex, secondIndex, otherIndices...}}); in coeffRef()
[all …]
DTensorMap.h49 static const Index NumIndices = PlainObjectType::NumIndices; variable
62 … EIGEN_STATIC_ASSERT((0 == NumIndices || NumIndices == Dynamic), YOU_MADE_A_PROGRAMMING_MISTAKE) in TensorMap()
69 …EIGEN_STATIC_ASSERT((sizeof...(otherDimensions) + 1 == NumIndices || NumIndices == Dynamic), YOU_M… in TensorMap()
75 … EIGEN_STATIC_ASSERT((1 == NumIndices || NumIndices == Dynamic), YOU_MADE_A_PROGRAMMING_MISTAKE) in TensorMap()
79 EIGEN_STATIC_ASSERT(2 == NumIndices || NumIndices == Dynamic, YOU_MADE_A_PROGRAMMING_MISTAKE) in TensorMap()
83 EIGEN_STATIC_ASSERT(3 == NumIndices || NumIndices == Dynamic, YOU_MADE_A_PROGRAMMING_MISTAKE) in TensorMap()
87 EIGEN_STATIC_ASSERT(4 == NumIndices || NumIndices == Dynamic, YOU_MADE_A_PROGRAMMING_MISTAKE) in TensorMap()
91 EIGEN_STATIC_ASSERT(5 == NumIndices || NumIndices == Dynamic, YOU_MADE_A_PROGRAMMING_MISTAKE) in TensorMap()
95 …C EIGEN_STRONG_INLINE TensorMap(PointerArgType dataPtr, const array<Index, NumIndices>& dimensions) in TensorMap()
122 EIGEN_STRONG_INLINE const Scalar& operator()(const array<Index, NumIndices>& indices) const in operator()
[all …]
DTensorDimensions.h40 template<typename Index, std::size_t NumIndices, std::size_t n, bool RowMajor>
44 static inline Index run(array<Index, NumIndices> const& indices, in run()
47 return array_get<RowMajor ? n - 1 : (NumIndices - n)>(indices) + in run()
48 dget<RowMajor ? n - 1 : (NumIndices - n), Dimensions>::value * in run()
49 …fixed_size_tensor_index_linearization_helper<Index, NumIndices, n - 1, RowMajor>::run(indices, dim… in run()
53 template<typename Index, std::size_t NumIndices, bool RowMajor>
54 struct fixed_size_tensor_index_linearization_helper<Index, NumIndices, 0, RowMajor>
57 static inline Index run(array<Index, NumIndices> const&, const Dimensions&)
234 template<typename Index, std::size_t NumIndices, std::size_t n, bool RowMajor>
238 Index run(array<Index, NumIndices> const& indices, array<Index, NumIndices> const& dimensions)
[all …]
DTensorFixedSize.h49 static const std::size_t NumIndices = Dimensions::count; variable
55 … EIGEN_STRONG_INLINE Index rank() const { return NumIndices; } in rank()
73 EIGEN_STATIC_ASSERT(sizeof...(otherIndices) + 1 == NumIndices, YOU_MADE_A_PROGRAMMING_MISTAKE) in coeff()
74 return coeff(array<Index, NumIndices>{{firstIndex, otherIndices...}}); in coeff()
79 EIGEN_STRONG_INLINE const Scalar& coeff(const array<Index, NumIndices>& indices) const in coeff()
95 EIGEN_STATIC_ASSERT(NumIndices == 0, YOU_MADE_A_PROGRAMMING_MISTAKE); in coeff()
105 EIGEN_STATIC_ASSERT(sizeof...(otherIndices) + 1 == NumIndices, YOU_MADE_A_PROGRAMMING_MISTAKE) in coeffRef()
106 return coeffRef(array<Index, NumIndices>{{firstIndex, otherIndices...}}); in coeffRef()
111 EIGEN_STRONG_INLINE Scalar& coeffRef(const array<Index, NumIndices>& indices) in coeffRef()
127 EIGEN_STATIC_ASSERT(NumIndices == 0, YOU_MADE_A_PROGRAMMING_MISTAKE); in coeffRef()
[all …]
DTensorRef.h133 static const Index NumIndices = PlainObjectType::NumIndices; variable
291 template <std::size_t NumIndices> EIGEN_DEVICE_FUNC
292 EIGEN_STRONG_INLINE const Scalar coeff(const array<Index, NumIndices>& indices) const in coeff()
298 for (size_t i = 1; i < NumIndices; ++i) { in coeff()
302 index += indices[NumIndices-1]; in coeff()
303 for (int i = NumIndices-2; i >= 0; --i) { in coeff()
309 template <std::size_t NumIndices> EIGEN_DEVICE_FUNC
310 EIGEN_STRONG_INLINE Scalar& coeffRef(const array<Index, NumIndices>& indices) in coeffRef()
316 for (size_t i = 1; i < NumIndices; ++i) { in coeffRef()
320 index += indices[NumIndices-1]; in coeffRef()
[all …]
DTensorMeta.h183 template<typename Index, std::size_t NumIndices, typename IndexType>
185 array<Index, NumIndices> customIndices2Array(IndexType& idx) {
186 return customIndices2Array(idx, typename gen_numeric_list<Index, NumIndices>::type{});
/external/eigen/unsupported/Eigen/CXX11/src/TensorSymmetry/
DSymmetry.h28 template<std::size_t NumIndices, typename... Sym> struct tensor_symmetry_pre_anal…
29 template<std::size_t NumIndices, typename... Sym> struct tensor_static_symgroup;
30 template<bool instantiate, std::size_t NumIndices, typename... Sym> struct tensor_static_symgroup_i…
139 constexpr static std::size_t NumIndices = internal::tensor_symmetry_num_indices<Gen...>::value;
140 typedef typename internal::tensor_symmetry_pre_analysis<NumIndices, Gen...>::root_type Base;
226 template<std::size_t NumIndices>
227 struct tensor_symmetry_pre_analysis<NumIndices>
232 template<std::size_t NumIndices, typename Gen_, typename... Gens_>
233 struct tensor_symmetry_pre_analysis<NumIndices, Gen_, Gens_...>
237 …typedef tensor_static_symgroup_if<(sizeof...(Gens_) + 1 <= max_static_generators), NumIndices, Gen…
[all …]
DStaticSymmetry.h114 template<std::size_t NumIndices, typename... Gen>
142 …Op, typename RV, std::size_t SGNumIndices, typename Index, std::size_t NumIndices, typename... Arg…
143 static inline RV run(const std::array<Index, NumIndices>& idx, RV initial, Args&&... args)
145 …static_assert(NumIndices >= SGNumIndices, "Can only apply symmetry group to objects that have at l…
146 …typedef typename internal::gen_numeric_list<int, NumIndices - SGNumIndices, SGNumIndices>::type re…
163 …Op, typename RV, std::size_t SGNumIndices, typename Index, std::size_t NumIndices, typename... Arg…
164 static inline RV run(const std::array<Index, NumIndices>&, RV initial, Args&&...)
183 constexpr static std::size_t NumIndices = internal::tensor_symmetry_num_indices<Gen...>::value;
187 typename internal::tensor_static_symgroup_identity_ctor<NumIndices>::type,
188 …internal::type_list<typename internal::tensor_static_symgroup_element_ctor<Gen, NumIndices>::type.…
[all …]
DDynamicSymmetry.h57 …static_assert(sizeof...(otherIndices) + 1 == Tensor_::NumIndices, "Number of indices used to acces… in operator()
58 …return operator()(tensor, std::array<typename Tensor_::Index, Tensor_::NumIndices>{{firstIndex, ot… in operator()
62 …erator()(Tensor_& tensor, std::array<typename Tensor_::Index, Tensor_::NumIndices> const& indices)… in operator()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtessellator.h52 uint32_t NumIndices;
78 NumIndices = 0; in Init()
130 NumIndices = (uint32_t)SUPER::GetIndexCount(); in Tessellate()
132 assert(NumIndices % IndexDiv == 0); in Tessellate()
133 tsTessellatedData.NumPrimitives = NumIndices / IndexDiv; in Tessellate()
136 for (uint32_t i = 0; i < NumIndices; i++) { in Tessellate()
/external/capstone/
DMCRegisterInfo.c35 const uint16_t *SubIndices, unsigned NumIndices, in MCRegisterInfo_InitMCRegisterInfo() argument
49 RI->NumSubRegIndices = NumIndices; in MCRegisterInfo_InitMCRegisterInfo()
DMCRegisterInfo.h105 unsigned NumIndices,
/external/tensorflow/tensorflow/core/framework/
Dtensor_types.h118 TensorType::NumIndices>::Tensor32Bit
121 TensorType::NumIndices>::Tensor32Bit RetType; in To32Bit()
/external/llvm/lib/Transforms/Scalar/
DScalarizer.cpp446 unsigned NumIndices = GEPI.getNumIndices(); in visitGetElementPtrInst() local
451 Ops.resize(NumIndices); in visitGetElementPtrInst()
452 for (unsigned I = 0; I < NumIndices; ++I) in visitGetElementPtrInst()
459 Indices.resize(NumIndices); in visitGetElementPtrInst()
460 for (unsigned J = 0; J < NumIndices; ++J) in visitGetElementPtrInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp625 unsigned NumIndices = GEPI.getNumIndices(); in visitGetElementPtrInst() local
635 Ops.resize(NumIndices); in visitGetElementPtrInst()
636 for (unsigned I = 0; I < NumIndices; ++I) { in visitGetElementPtrInst()
651 Indices.resize(NumIndices); in visitGetElementPtrInst()
652 for (unsigned J = 0; J < NumIndices; ++J) in visitGetElementPtrInst()
/external/llvm/include/llvm/MC/
DMCRegisterInfo.h255 unsigned NumIndices, in InitMCRegisterInfo() argument
271 NumSubRegIndices = NumIndices; in InitMCRegisterInfo()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DScalarizer.cpp637 unsigned NumIndices = GEPI.getNumIndices(); in visitGetElementPtrInst() local
647 Ops.resize(NumIndices); in visitGetElementPtrInst()
648 for (unsigned I = 0; I < NumIndices; ++I) { in visitGetElementPtrInst()
663 Indices.resize(NumIndices); in visitGetElementPtrInst()
664 for (unsigned J = 0; J < NumIndices; ++J) in visitGetElementPtrInst()
/external/llvm-project/llvm/include/llvm-c/
DCore.h2136 LLVMValueRef *ConstantIndices, unsigned NumIndices);
2138 LLVMValueRef *ConstantIndices, unsigned NumIndices);
2141 unsigned NumIndices);
2144 unsigned NumIndices);
3836 LLVMValueRef *Indices, unsigned NumIndices,
3839 LLVMValueRef *Indices, unsigned NumIndices,
3845 unsigned NumIndices, const char *Name);
3848 unsigned NumIndices, const char *Name);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DCore.h2099 LLVMValueRef *ConstantIndices, unsigned NumIndices);
2101 LLVMValueRef *ConstantIndices, unsigned NumIndices);
2104 unsigned NumIndices);
2107 unsigned NumIndices);
3799 LLVMValueRef *Indices, unsigned NumIndices,
3802 LLVMValueRef *Indices, unsigned NumIndices,
3808 unsigned NumIndices, const char *Name);
3811 unsigned NumIndices, const char *Name);

12