Class LinearCombinationPerformance
- java.lang.Object
-
- org.apache.commons.numbers.examples.jmh.core.LinearCombinationPerformance
-
public class LinearCombinationPerformance extends Object
Executes a benchmark to measure the speed of operations in theLinearCombination
class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearCombinationPerformance.Calculator
TheLinearCombination
implementation.static class
LinearCombinationPerformance.Factors
The factors to multiply.static class
LinearCombinationPerformance.LengthFactors
The factors to multiply of a specific length.
-
Constructor Summary
Constructors Constructor Description LinearCombinationPerformance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fourD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 4D scalar product for all the factors.void
nD(LinearCombinationPerformance.LengthFactors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the ND scalar product for all the factors.void
threeD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 3D scalar product for all the factors.void
twoD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 2D scalar product for all the factors.
-
-
-
Constructor Detail
-
LinearCombinationPerformance
public LinearCombinationPerformance()
-
-
Method Detail
-
twoD
public void twoD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 2D scalar product for all the factors.- Parameters:
factors
- Factors.bh
- Data sink.calc
- Scalar product calculator.
-
threeD
public void threeD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 3D scalar product for all the factors.- Parameters:
factors
- Factors.bh
- Data sink.calc
- Scalar product calculator.
-
fourD
public void fourD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 4D scalar product for all the factors.- Parameters:
factors
- Factors.bh
- Data sink.calc
- Scalar product calculator.
-
nD
public void nD(LinearCombinationPerformance.LengthFactors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the ND scalar product for all the factors.- Parameters:
factors
- Factors.bh
- Data sink.calc
- Scalar product calculator.
-
-