Home
last modified time | relevance | path

Searched refs:FieldT (Results 1 – 25 of 60) sorted by relevance

123

/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/libff/libff/algebra/fields/tests/
H A Dtest_fields.cpp27 FieldT zero = FieldT::zero(); in test_field()
28 FieldT one = FieldT::one(); in test_field()
29 FieldT a = FieldT::random_element(); in test_field()
188 …const FieldT v3 = (a0 + FieldT(2)*a1 + FieldT(4)*a2 + FieldT(8)*a3) * (b0 + FieldT(2)*b1 + FieldT(… in test_Fp4_tom_cook()
189 …const FieldT v4 = (a0 - FieldT(2)*a1 + FieldT(4)*a2 - FieldT(8)*a3) * (b0 - FieldT(2)*b1 + FieldT(… in test_Fp4_tom_cook()
190 …const FieldT v5 = (a0 + FieldT(3)*a1 + FieldT(9)*a2 + FieldT(27)*a3) * (b0 + FieldT(3)*b1 + FieldT in test_Fp4_tom_cook()
197 …c2 = - (FieldT(5)*(FieldT(4).inverse()))* v0 + (FieldT(2)*(FieldT(3).inverse()))*(v1 + v2) - Field… in test_Fp4_tom_cook()
198 …c3 = FieldT(12).inverse() * (FieldT(5)*v0 - FieldT(7)*v1) - FieldT(24).inverse()*(v2 - FieldT(7)*v… in test_Fp4_tom_cook()
205FieldT(15) * u * c0 - FieldT(30) * u * c1 - FieldT(3) * (FieldT(4) + beta) * u * c2 - FieldT(6) * … in test_Fp4_tom_cook()
207FieldT(15) * u * c0 + FieldT(30) * u * c1 - FieldT(3) * (FieldT(4) + beta) * u * c2 + FieldT(6) * … in test_Fp4_tom_cook()
[all …]
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/libff/libff/algebra/fields/
H A Dfield_utils.tcc21 template<typename FieldT>
22 FieldT coset_shift() in coset_shift()
27 template<typename FieldT>
28 typename std::enable_if<std::is_same<FieldT, Double>::value, FieldT>::type
36 template<typename FieldT>
37 typename std::enable_if<!std::is_same<FieldT, Double>::value, FieldT>::type
44 FieldT omega = FieldT::root_of_unity; in get_root_of_unity()
113 result.emplace_back(b ? FieldT::one() : FieldT::zero()); in convert_bit_vector_to_field_element_vector()
161 FieldT res = FieldT::zero(); in convert_bit_vector_to_field_element()
162 FieldT c = FieldT::one(); in convert_bit_vector_to_field_element()
[all …]
H A Dfield_utils.hpp19 template<typename FieldT>
20 typename std::enable_if<std::is_same<FieldT, Double>::value, FieldT>::type
23 template<typename FieldT>
24 typename std::enable_if<!std::is_same<FieldT, Double>::value, FieldT>::type
27 template<typename FieldT>
30 template<typename FieldT>
33 template<typename FieldT>
36 template<typename FieldT>
39 template<typename FieldT>
42 template<typename FieldT>
[all …]
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/libff/libff/algebra/scalar_multiplication/
H A Dmultiexp.hpp56 template<typename T, typename FieldT, multi_exp_method Method>
59 typename std::vector<FieldT>::const_iterator scalar_start,
60 typename std::vector<FieldT>::const_iterator scalar_end,
70 template<typename T, typename FieldT, multi_exp_method Method>
107 template<typename T, typename FieldT>
111 const FieldT &pow);
113 template<typename T, typename FieldT>
117 const std::vector<FieldT> &v);
119 template<typename T, typename FieldT>
123 const FieldT &coeff,
[all …]
H A Dmultiexp_profile.cpp36 template<typename FieldT>
37 test_instances_t<FieldT> generate_scalars(size_t count, size_t size) in generate_scalars()
41 test_instances_t<FieldT> result(count); in generate_scalars()
45 result[i].push_back(SHA512_rng<FieldT>(i * size + j)); in generate_scalars()
52 template<typename GroupT, typename FieldT, multi_exp_method Method>
55 test_instances_t<FieldT> scalars) in profile_multiexp()
61 answers.push_back(multi_exp<GroupT, FieldT, Method>( in profile_multiexp()
72 template<typename GroupT, typename FieldT>
84 test_instances_t<FieldT> scalars = in print_performance_csv()
85 generate_scalars<FieldT>(10, 1 << expn); in print_performance_csv()
[all …]
H A Dmultiexp.tcc413 return multi_exp_inner<T, FieldT, Method>(
426 partial[i] = multi_exp_inner<T, FieldT, Method>(
455 const FieldT zero = FieldT::zero();
456 const FieldT one = FieldT::one();
457 std::vector<FieldT> p;
585 template<typename T, typename FieldT>
589 const FieldT &pow)
614 template<typename T, typename FieldT>
618 const std::vector<FieldT> &v) in batch_exp()
648 template<typename T, typename FieldT>
[all …]
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/libff/libff/algebra/exponentiation/
H A Dexponentiation.tcc21 template<typename FieldT, mp_size_t m>
22 FieldT power(const FieldT &base, const bigint<m> &exponent)
24 FieldT result = FieldT::one();
45 template<typename FieldT>
46 FieldT power(const FieldT &base, const unsigned long exponent) in power()
48 return power<FieldT>(base, bigint<1>(exponent)); in power()
H A Dexponentiation.hpp21 template<typename FieldT, mp_size_t m>
22 FieldT power(const FieldT &base, const bigint<m> &exponent);
24 template<typename FieldT>
25 FieldT power(const FieldT &base, const unsigned long exponent);
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/libff/libff/common/
H A Drng.tcc26 template<typename FieldT>
27 FieldT SHA512_rng(const uint64_t idx) in SHA512_rng()
32 assert(FieldT::size_in_bits() <= SHA512_DIGEST_LENGTH * 8); in SHA512_rng()
34 bigint<FieldT::num_limbs> rval; in SHA512_rng()
46 for (mp_size_t i = 0; i < FieldT::num_limbs; ++i) in SHA512_rng()
52 size_t bitno = GMP_NUMB_BITS * FieldT::num_limbs - 1; in SHA512_rng()
55 while (FieldT::mod.test_bit(bitno) == false) in SHA512_rng()
69 while (mpn_cmp(rval.data, FieldT::mod.data, FieldT::num_limbs) >= 0); in SHA512_rng()
71 return FieldT(rval); in SHA512_rng()
/dports/net-p2p/qtum/qtum-mainnet-fastlane-v0.20.3/src/libff/libff/algebra/curves/bn128/
H A Dbn_utils.tcc13 template<typename FieldT>
14 void bn_batch_invert(std::vector<FieldT> &vec) in bn_batch_invert()
16 std::vector<FieldT> prod; in bn_batch_invert()
19 FieldT acc = 1; in bn_batch_invert()
25 FieldT::mul(acc, acc, el); in bn_batch_invert()
28 FieldT acc_inverse = acc; in bn_batch_invert()
33 const FieldT old_el = vec[i]; in bn_batch_invert()
34 FieldT::mul(vec[i], acc_inverse, prod[i]); in bn_batch_invert()
35 FieldT::mul(acc_inverse, acc_inverse, old_el); in bn_batch_invert()
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/tools/
H A DLevelSetAdvect.h82 using VectorType = typename FieldT::VectorType;
208 const FieldT mField;
300 LevelSetAdvection<GridT, FieldT, InterruptT>::
319 LevelSetAdvection<GridT, FieldT, InterruptT>::
338 LevelSetAdvection<GridT, FieldT, InterruptT>::
426 LevelSetAdvection<GridT, FieldT, InterruptT>::
473 LevelSetAdvection<GridT, FieldT, InterruptT>::
480 const FieldT field( mParent.mField ); in sample()
501 LevelSetAdvection<GridT, FieldT, InterruptT>::
518 LevelSetAdvection<GridT, FieldT, InterruptT>::
[all …]
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/model/impl/
H A DFieldPropertySeed.java37 class FieldPropertySeed<TypeT,ClassDeclT,FieldT,MethodT> implements
38 PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> {
40 protected final FieldT field;
41 private ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent;
43 FieldPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> classInfo, FieldT field) { in FieldPropertySeed() argument
H A DValuePropertyInfoImpl.java34 class ValuePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
35 extends SingleTypePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
39 ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, in ValuePropertyInfoImpl() argument
40 PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> seed) { in ValuePropertyInfoImpl()
H A DTypeInfoImpl.java45 abstract class TypeInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
58 protected final TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> owner;
64 protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder;
67 ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, in TypeInfoImpl() argument
83 protected final Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav() { in nav()
87 protected final AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader() { in reader()
H A DERPropertyInfoImpl.java38 abstract class ERPropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
39 extends PropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> {
41 …yInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> classInfo, PropertySeed<TypeT, ClassDe… in ERPropertyInfoImpl() argument
H A DAttributePropertyInfoImpl.java39 class AttributePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
40 extends SingleTypePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
47 …opertyInfoImpl(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, PropertySeed<TypeT,ClassDecl… in AttributePropertyInfoImpl() argument
H A DGetterSetterPropertySeed.java41 class GetterSetterPropertySeed<TypeT,ClassDeclT,FieldT,MethodT> implements
42 PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> {
46 private ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent;
48 …GetterSetterPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, MethodT getter, Me… in GetterSetterPropertySeed() argument
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/model/impl/
H A DFieldPropertySeed.java37 class FieldPropertySeed<TypeT,ClassDeclT,FieldT,MethodT> implements
38 PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> {
40 protected final FieldT field;
41 private ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent;
43 FieldPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> classInfo, FieldT field) { in FieldPropertySeed() argument
H A DValuePropertyInfoImpl.java34 class ValuePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
35 extends SingleTypePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
39 ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, in ValuePropertyInfoImpl() argument
40 PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> seed) { in ValuePropertyInfoImpl()
H A DTypeInfoImpl.java45 abstract class TypeInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
58 protected final TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> owner;
64 protected ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder;
67 ModelBuilder<TypeT,ClassDeclT,FieldT,MethodT> builder, in TypeInfoImpl() argument
83 protected final Navigator<TypeT,ClassDeclT,FieldT,MethodT> nav() { in nav()
87 protected final AnnotationReader<TypeT,ClassDeclT,FieldT,MethodT> reader() { in reader()
H A DERPropertyInfoImpl.java38 abstract class ERPropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
39 extends PropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> {
41 …yInfoImpl(ClassInfoImpl<TypeT, ClassDeclT, FieldT, MethodT> classInfo, PropertySeed<TypeT, ClassDe… in ERPropertyInfoImpl() argument
H A DAttributePropertyInfoImpl.java39 class AttributePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
40 extends SingleTypePropertyInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>
47 …opertyInfoImpl(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, PropertySeed<TypeT,ClassDecl… in AttributePropertyInfoImpl() argument
H A DGetterSetterPropertySeed.java41 class GetterSetterPropertySeed<TypeT,ClassDeclT,FieldT,MethodT> implements
42 PropertySeed<TypeT,ClassDeclT,FieldT,MethodT> {
46 private ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent;
48 …GetterSetterPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, MethodT getter, Me… in GetterSetterPropertySeed() argument
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/common/include/pcl/
H A Dpoint_representation.h252 using FieldT = typename pcl::traits::datatype<PointDefault, Key>::type; in operator() local
254 Helper<Key, FieldT, NrDims>::copyPoint (p1_, p2_, f_idx_); in operator()
258 template <typename Key, typename FieldT, int NrDims>
265 p2[f_idx++] = *reinterpret_cast<const FieldT*> (data_ptr); in copyPoint()
269 template <typename Key, typename FieldT, int NrDims>
270 struct Helper<Key, FieldT[NrDims], NrDims>
277 const FieldT * array = reinterpret_cast<const FieldT *> (data_ptr);
/dports/graphics/libetonyek01/libetonyek-0.1.10/src/lib/
H A DIWAMessage.cpp182 template<typename FieldT>
183 const FieldT &IWAMessage::getField(const std::size_t field, const WireType wireType, const IWAField… in getField()
189 static FieldT dummy; in getField()
206 fieldIt->second.m_realField = std::make_shared<FieldT>(); in getField()
215 return static_cast<FieldT &>(*fieldIt->second.m_realField); in getField()

123