org.ujmp.core.benchmark
Class BenchmarkUtil
java.lang.Object
org.ujmp.core.benchmark.BenchmarkUtil
public abstract class BenchmarkUtil
- extends Object
Method Summary |
static DoubleMatrix2D |
createMatrix(Class<? extends Matrix> matrixClass,
long... size)
|
static DoubleMatrix2D |
createMatrix(Class<? extends Matrix> matrixClass,
Matrix source)
|
static double |
difference(Matrix m1,
Matrix m2)
|
static String |
getHostName()
|
static String |
getResultDir(BenchmarkConfig config)
|
static BigDecimal |
normF(Matrix m)
|
static void |
purgeMemory(BenchmarkConfig config)
|
static void |
rand(long benchmarkSeed,
int run,
int id,
DoubleMatrix2D matrix)
|
static void |
randPositiveDefinite(long benchmarkSeed,
int run,
int id,
Matrix matrix)
|
static void |
randSymm(long benchmarkSeed,
int run,
int id,
DoubleMatrix2D matrix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BenchmarkUtil
public BenchmarkUtil()
getResultDir
public static String getResultDir(BenchmarkConfig config)
getHostName
public static String getHostName()
rand
public static void rand(long benchmarkSeed,
int run,
int id,
DoubleMatrix2D matrix)
randSymm
public static void randSymm(long benchmarkSeed,
int run,
int id,
DoubleMatrix2D matrix)
randPositiveDefinite
public static void randPositiveDefinite(long benchmarkSeed,
int run,
int id,
Matrix matrix)
createMatrix
public static DoubleMatrix2D createMatrix(Class<? extends Matrix> matrixClass,
long... size)
createMatrix
public static DoubleMatrix2D createMatrix(Class<? extends Matrix> matrixClass,
Matrix source)
difference
public static double difference(Matrix m1,
Matrix m2)
normF
public static BigDecimal normF(Matrix m)
purgeMemory
public static void purgeMemory(BenchmarkConfig config)
Copyright © 2010. All Rights Reserved.