Package org.apache.commons.numbers.core
Interface NativeOperators<T>
- Type Parameters:
T
- Type of elements.
- All Superinterfaces:
Addition<T>
,Multiplication<T>
- All Known Implementing Classes:
BigFraction
,FP64
,Fraction
Operators that can be implemented in a more performant way
using the language constructs.
-
Method Summary
Methods inherited from interface org.apache.commons.numbers.core.Multiplication
multiply, one, reciprocal
-
Method Details
-
subtract
Binary subtraction.- Parameters:
a
- Element.- Returns:
this - a
.
-
divide
Binary division.- Parameters:
a
- Element.- Returns:
this / a
.
-
multiply
Repeated addition.- Parameters:
n
- Number of times to addthis
to itself.- Returns:
n * this
.
-
pow
Repeated multiplication.- Parameters:
n
- Number of times to multiplythis
with itself.- Returns:
this^n
.
-