Clearmatics Libff
0.1
C++ library for Finite Fields and Elliptic Curves
|
Go to the documentation of this file.
27 val = std::complex<double>(real, imag);
39 #ifdef PROFILE_OP_COUNTS
48 #ifdef PROFILE_OP_COUNTS
57 #ifdef PROFILE_OP_COUNTS
74 #ifdef PROFILE_OP_COUNTS
78 this->
val = std::complex<double>(
val + other.
val);
84 #ifdef PROFILE_OP_COUNTS
88 this->
val = std::complex<double>(
val - other.
val);
94 #ifdef PROFILE_OP_COUNTS
98 this->
val *= std::complex<double>(other.
val);
104 return (std::abs(
val.real() - other.
val.real()) < 0.000001) &&
105 (std::abs(
val.imag() - other.
val.imag()) < 0.000001);
115 return (
val.real() < other.
val.real());
120 return (
val.real() > other.
val.real());
135 #ifdef PROFILE_OP_COUNTS
139 return Double(std::complex<double>(1) /
val);
Double & operator-=(const Double &other)
Double operator*(const Double &other) const
bool operator!=(const Double &other) const
static Double random_element()
std::complex< double > val
static Double geometric_generator()
Double & operator*=(const Double &other)
bool operator==(const Double &other) const
Double operator+(const Double &other) const
libff::bigint< 1 > as_bigint() const
static Double arithmetic_generator()
bool operator<(const Double &other) const
unsigned long as_ulong() const
Double operator^(const libff::bigint< 1 > power) const
static Double multiplicative_generator
FieldT power(const FieldT &base, const bigint< m > &exponent)
bool operator>(const Double &other) const
Double & operator+=(const Double &other)