linear Combination
Computes the linear combination a1 * b1 + a2 * b2 of two pairs of doubles.
Return
The result of the linear combination.
Parameters
a1
The first value of the first pair.
b1
The second value of the first pair.
a2
The first value of the second pair.
b2
The second value of the second pair.
fun linearCombination(a1: Double, b1: Double, a2: Double, b2: Double, a3: Double, b3: Double): Double(source)
Computes the linear combination a1 * b1 + a2 * b2 + a3 * b3 of three pairs of doubles.
Parameters
a1
The first value of the first pair.
b1
The second value of the first pair.
a2
The first value of the second pair.
b2
The second value of the second pair.
a3
The first value of the third pair.
b3
The second value of the third pair.