Package cern.colt.matrix.impl
Class Benchmark
java.lang.Object
cern.colt.matrix.impl.Benchmark
Benchmarks the performance of matrix algorithms.
- Version:
- 1.0, 09/24/99
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Makes this class non instantiable, but still let's others inherit from it. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
benchmark
(int runs, int size, String kind, boolean print, int initialCapacity, double minLoadFactor, double maxLoadFactor, double percentNonZero) Runs a bench on matrices holding double elements.protected static double
cubicLoop
(int runs, int size) static void
Benchmarks various matrix methods.
-
Constructor Details
-
Benchmark
protected Benchmark()Makes this class non instantiable, but still let's others inherit from it.
-
-
Method Details
-
benchmark
public static void benchmark(int runs, int size, String kind, boolean print, int initialCapacity, double minLoadFactor, double maxLoadFactor, double percentNonZero) Runs a bench on matrices holding double elements. -
cubicLoop
protected static double cubicLoop(int runs, int size) -
main
Benchmarks various matrix methods.
-