Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques statiques | |
static | isValidEngine () |
static | randomRangePrime (PHP64 $min, PHP64 $max) |
static | randomRange (PHP64 $min, PHP64 $max) |
static | min (PHP64 ... $nums) |
static | max (PHP64 ... $nums) |
Fonctions membres publiques statiques hérités de PHP | |
static | subtractHelper (array $x_value, $x_negative, array $y_value, $y_negative) |
static | scan1divide (PHP $r) |
Fonctions membres publiques statiques hérités de Engine | |
static | setModExpEngine ($engine) |
static | minMaxBits ($bits) |
Champs de données | |
const | BASE = 31 |
const | BASE_FULL = 0x80000000 |
const | MAX_DIGIT = 0x7FFFFFFF |
const | MSB = 0x40000000 |
const | MAX10 = 1000000000 |
const | MAX10LEN = 9 |
const | MAX_DIGIT2 = 4611686018427387904 |
Champs de données hérités de PHP | |
const | VALUE = 0 |
const | SIGN = 1 |
const | KARATSUBA_CUTOFF = 25 |
const | FAST_BITWISE = true |
const | ENGINE_DIR = 'PHP' |
Champs de données hérités de Engine | |
const | PRIMES |
Fonctions membres protégées | |
initialize ($base) | |
Fonctions membres protégées hérités de PHP | |
initialize ($base) | |
pad ($str) | |
divideHelper (PHP $y) | |
convertToObj (array $arr) | |
normalize (PHP $result) | |
lshift ($shift) | |
rshift ($shift) | |
powModInner (PHP $e, PHP $n) | |
make_odd () | |
testSmallPrimes () | |
powHelper (PHP $n) | |
Fonctions membres protégées hérités de Engine | |
toBytesHelper () | |
powModOuter (Engine $e, Engine $n) | |
setupIsPrime () | |
testPrimality ($t) | |
rootHelper ($n) | |
rootInner ($n) | |
extendedGCDHelper (Engine $n) | |
bitwiseAndHelper (Engine $x) | |
bitwiseOrHelper (Engine $x) | |
bitwiseXorHelper (Engine $x) | |
Membres hérités additionnels | |
Fonctions membres protégées statiques hérités de PHP | |
static | addHelper (array $x_value, $x_negative, array $y_value, $y_negative) |
static | multiplyHelper (array $x_value, $x_negative, array $y_value, $y_negative) |
static | regularMultiply (array $x_value, array $y_value) |
static | compareHelper (array $x_value, $x_negative, array $y_value, $y_negative) |
static | trim (array $value) |
static | array_repeat ($input, $multiplier) |
static | square (array $x) |
static | baseSquare (array $value) |
static | karatsubaSquare (array $value) |
Fonctions membres protégées statiques hérités de Engine | |
static | setBitmask ($bits) |
static | base256_lshift (&$x, $shift) |
static | slidingWindow (Engine $x, Engine $e, Engine $n, $class) |
static | randomRangePrimeOuter (Engine $min, Engine $max) |
static | randomRangeHelper (Engine $min, Engine $max) |
static | randomRangePrimeInner (Engine $x, Engine $min, Engine $max) |
static | minHelper (array $nums) |
static | maxHelper (array $nums) |
Attributs protégés hérités de Engine | |
$value | |
$is_negative | |
$precision = -1 | |
$bitmask = false | |
$reduce | |
$hex | |
Attributs protégés statiques hérités de Engine | |
static | $zero = [] |
static | $one = [] |
static | $two = [] |
static | $modexpEngine |
static | $isValidEngine |
add | ( | PHP64 | $y | ) |
Adds two BigIntegers.
PHP64 | $y |
Références $temp, PHP\convertToObj(), et value.
Tests BigInteger to see if it is between two integers, inclusive
Références PHP64\compare().
bitwise_and | ( | PHP64 | $x | ) |
bitwise_or | ( | PHP64 | $x | ) |
bitwise_xor | ( | PHP64 | $x | ) |
compare | ( | PHP64 | $y | ) |
Compares two numbers.
Although one might think !$x->compare($y) means $x != $y, it, in fact, means the opposite. The reason for this is demonstrated thusly:
$x >
x->compare($y) > 0 $x <
x->compare($y) < 0 $x ==
x->compare($y) == 0
Note how the same comparison operator is used. If you want to test for equality, use $x->equals($y).
{
Références value.
Référencé par PHP64\between().
divide | ( | PHP64 | $y | ) |
Divides two BigIntegers.
Returns an array whose first element contains the quotient and whose second element contains the "common residue". If the remainder would be positive, the "common residue" and the remainder are the same. If the remainder would be negative, the "common residue" is equal to the sum of the remainder and the divisor (basically, the "common residue" is the first positive modulo).
PHP64 | $y |
Références PHP\divideHelper().
equals | ( | PHP64 | $x | ) |
Tests the equality of two numbers.
If you need to see if one number is greater than or less than another number, use BigInteger::compare()
PHP64 | $x |
Références value.
extendedGCD | ( | PHP64 | $n | ) |
Calculates modular inverses.
Say you have (30 mod 17 * x mod 17) mod 17 == 1. x can be found using modular inverses.
PHP64 | $n |
Références Engine\extendedGCDHelper().
Référencé par PHP64\gcd().
gcd | ( | PHP64 | $n | ) |
Calculates the greatest common divisor
Say you have 693 and 609. The GCD is 21.
PHP64 | $n |
Références PHP64\extendedGCD().
|
protected |
Initialize a PHP64 BigInteger Engine instance
int | $base |
Références $base, $i, $step, $temp, $val, Engine\$value, Laminas\Diactoros\initialize(), et value.
|
static |
|
static |
Return the maximum BigInteger between an arbitrary number of BigIntegers.
PHP64 | ...$nums |
|
static |
Return the minimum BigInteger between an arbitrary number of BigIntegers.
PHP64 | ...$nums |
modInverse | ( | PHP64 | $n | ) |
multiply | ( | PHP64 | $y | ) |
Multiplies two BigIntegers.
PHP64 | $y |
Références $temp, PHP\convertToObj(), et value.
pow | ( | PHP64 | $n | ) |
Performs modular exponentiation.
Alias for modPow().
Références $n, et Engine\powModOuter().
Generate a random number between a range
Returns a random number between $min and $max where $min and $max can be defined using one of the two methods:
BigInteger::randomRange($min, $max) BigInteger::randomRange($max, $min)
subtract | ( | PHP64 | $y | ) |
Subtracts two BigIntegers.
PHP64 | $y |
Références $temp, PHP\convertToObj(), et value.
const BASE = 31 |
const BASE_FULL = 0x80000000 |
const MAX10 = 1000000000 |
MAX10 in greatest MAX10LEN satisfying MAX10 = 10**MAX10LEN <= 2**BASE.
const MAX10LEN = 9 |
MAX10LEN in greatest MAX10LEN satisfying MAX10 = 10**MAX10LEN <= 2**BASE.
const MAX_DIGIT = 0x7FFFFFFF |
const MAX_DIGIT2 = 4611686018427387904 |
const MSB = 0x40000000 |