Package-level declarations
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <Number> rightAddMultipliedByDoubling(base: Number, arg: Number, multiplier: UInt, additionOp: (Number, Number) -> Number): Number
inline fun <Number> rightAddMultipliedByDoubling(base: Number, arg: Number, multiplier: ULong, additionOp: (Number, Number) -> Number): Number
inline fun <Number> rightAddMultipliedByDoubling(base: Number, arg: Number, multiplier: Int, additionOp: (Number, Number) -> Number, negationOp: (Number) -> Number): Number
inline fun <Number> rightAddMultipliedByDoubling(base: Number, arg: Number, multiplier: Int, additionOp: (Number, Number) -> Number, rightSubtractionOp: (Number, Number) -> Number): Number
inline fun <Number> rightAddMultipliedByDoubling(base: Number, arg: Number, multiplier: Long, additionOp: (Number, Number) -> Number, negationOp: (Number) -> Number): Number
inline fun <Number> rightAddMultipliedByDoubling(base: Number, arg: Number, multiplier: Long, additionOp: (Number, Number) -> Number, rightSubtractionOp: (Number, Number) -> Number): Number
Applies multiplication-by-doubling algorithm (a.k.a. exponentiation by squaring) to add argument arg multiplied by integer multiplier to the right of base.
Link copied to clipboard
inline fun <Number> rightMultiplyByDoubling(arg: Number, multiplier: UInt, lazyZero: () -> Number, additionOp: (Number, Number) -> Number): Number
inline fun <Number> rightMultiplyByDoubling(arg: Number, multiplier: ULong, lazyZero: () -> Number, additionOp: (Number, Number) -> Number): Number
Applies multiplication-by-doubling algorithm (a.k.a. exponentiation by squaring) to multiply argument arg by integer multiplier or return result of lazyZero if multiplier is 0uL
.
inline fun <Number> rightMultiplyByDoubling(arg: Number, multiplier: Int, lazyZero: () -> Number, additionOp: (Number, Number) -> Number, negationOp: (Number) -> Number): Number
inline fun <Number> rightMultiplyByDoubling(arg: Number, multiplier: Long, lazyZero: () -> Number, additionOp: (Number, Number) -> Number, negationOp: (Number) -> Number): Number
Applies multiplication-by-doubling algorithm (a.k.a. exponentiation by squaring) to multiply argument arg by integer multiplier if multiplier is positive, multiply -arg
by multiplier if multiplier is negative, or return lazyZero()
if multiplier is zero.
Link copied to clipboard