#include <double.hpp>
|
std::complex< double > | val |
|
Definition at line 21 of file double.hpp.
◆ Double() [1/4]
libff::Double::Double |
( |
| ) |
|
Definition at line 21 of file double.cpp.
21 {
val = std::complex<double>(0, 0); }
◆ Double() [2/4]
libff::Double::Double |
( |
double |
real | ) |
|
Definition at line 23 of file double.cpp.
23 {
val = std::complex<double>(real, 0); }
◆ Double() [3/4]
libff::Double::Double |
( |
double |
real, |
|
|
double |
imag |
|
) |
| |
Definition at line 25 of file double.cpp.
27 val = std::complex<double>(real, imag);
◆ Double() [4/4]
libff::Double::Double |
( |
std::complex< double > |
num | ) |
|
◆ arithmetic_generator()
Double libff::Double::arithmetic_generator |
( |
| ) |
|
|
static |
◆ as_bigint()
◆ as_ulong()
unsigned long libff::Double::as_ulong |
( |
| ) |
const |
◆ geometric_generator()
Double libff::Double::geometric_generator |
( |
| ) |
|
|
static |
◆ inverse()
Double libff::Double::inverse |
( |
| ) |
const |
Definition at line 133 of file double.cpp.
135 #ifdef PROFILE_OP_COUNTS
139 return Double(std::complex<double>(1) /
val);
◆ one()
◆ operator!=()
bool libff::Double::operator!= |
( |
const Double & |
other | ) |
const |
◆ operator*()
Double libff::Double::operator* |
( |
const Double & |
other | ) |
const |
Definition at line 55 of file double.cpp.
57 #ifdef PROFILE_OP_COUNTS
◆ operator*=()
Definition at line 92 of file double.cpp.
94 #ifdef PROFILE_OP_COUNTS
98 this->
val *= std::complex<double>(other.val);
◆ operator+()
Double libff::Double::operator+ |
( |
const Double & |
other | ) |
const |
Definition at line 37 of file double.cpp.
39 #ifdef PROFILE_OP_COUNTS
◆ operator+=()
Definition at line 72 of file double.cpp.
74 #ifdef PROFILE_OP_COUNTS
78 this->
val = std::complex<double>(
val + other.val);
◆ operator-() [1/2]
Double libff::Double::operator- |
( |
| ) |
const |
◆ operator-() [2/2]
Double libff::Double::operator- |
( |
const Double & |
other | ) |
const |
Definition at line 46 of file double.cpp.
48 #ifdef PROFILE_OP_COUNTS
◆ operator-=()
Definition at line 82 of file double.cpp.
84 #ifdef PROFILE_OP_COUNTS
88 this->
val = std::complex<double>(
val - other.val);
◆ operator<()
bool libff::Double::operator< |
( |
const Double & |
other | ) |
const |
Definition at line 113 of file double.cpp.
115 return (
val.real() < other.val.real());
◆ operator==()
bool libff::Double::operator== |
( |
const Double & |
other | ) |
const |
Definition at line 102 of file double.cpp.
104 return (std::abs(
val.real() - other.val.real()) < 0.000001) &&
105 (std::abs(
val.imag() - other.val.imag()) < 0.000001);
◆ operator>()
bool libff::Double::operator> |
( |
const Double & |
other | ) |
const |
Definition at line 118 of file double.cpp.
120 return (
val.real() > other.val.real());
◆ operator^() [1/2]
◆ operator^() [2/2]
Double libff::Double::operator^ |
( |
const size_t |
power | ) |
const |
◆ random_element()
Double libff::Double::random_element |
( |
| ) |
|
|
static |
◆ squared()
Double libff::Double::squared |
( |
| ) |
const |
◆ zero()
Double libff::Double::zero |
( |
| ) |
|
|
static |
◆ add_cnt
unsigned libff::Double::add_cnt = 0 |
|
static |
◆ inv_cnt
unsigned libff::Double::inv_cnt = 0 |
|
static |
◆ mul_cnt
unsigned libff::Double::mul_cnt = 0 |
|
static |
◆ multiplicative_generator
◆ root_of_unity
Double libff::Double::root_of_unity |
|
static |
◆ sub_cnt
unsigned libff::Double::sub_cnt = 0 |
|
static |
◆ val
std::complex<double> libff::Double::val |
The documentation for this class was generated from the following files:
- /home/runner/work/libff/libff/libff/common/double.hpp
- /home/runner/work/libff/libff/libff/common/double.cpp