Sum |
Sum.add(double t) |
Adds a single term to this sum.
|
Sum |
Sum.add(double... terms) |
Adds values from the given array to the sum.
|
Sum |
Sum.add(Sum other) |
Adds another sum to this sum.
|
Sum |
Sum.addProduct(double a,
double b) |
Adds the high-accuracy product \( a b \) to this sum.
|
Sum |
Sum.addProducts(double[] a,
double[] b) |
Adds \( \sum_i a_i b_i \) to this sum.
|
static Sum |
Sum.create() |
Creates a new instance with an initial value of zero.
|
static Sum |
Sum.of(double a) |
Creates an instance initialized to the given value.
|
static Sum |
Sum.of(double... values) |
Creates an instance containing the sum of the given values.
|
static Sum |
Sum.ofProducts(double[] a,
double[] b) |
Creates a new instance containing \( \sum_i a_i b_i \).
|