Interface LinearCombination.ND
-
- All Known Implementing Classes:
LinearCombinations.BaseLinearCombination,LinearCombinations.Dekker,LinearCombinations.Dot2s,LinearCombinations.DotK,LinearCombinations.Exact,LinearCombinations.ExtendedPrecision
- Enclosing interface:
- LinearCombination
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface LinearCombination.ND
Compute the sum of the products of two sequences ofnfactors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublevalue(double[] a, double[] b)Compute the sum of the products of two sequences of factors.
-
-
-
Method Detail
-
value
double value(double[] a, double[] b)Compute the sum of the products of two sequences of factors.- Parameters:
a- Factors.b- Factors.- Returns:
- \( \sum_i a_i b_i \).
- Throws:
IllegalArgumentException- if the sizes of the arrays are different.
-
-