org.ujmp.core.benchmark
Class AbstractMatrix2DBenchmark

java.lang.Object
  extended by org.ujmp.core.benchmark.AbstractMatrix2DBenchmark
All Implemented Interfaces:
MatrixBenchmark
Direct Known Subclasses:
ArrayDenseDoubleMatrix2DBenchmark, BlockDenseDoubleMatrix2DBenchmark, DefaultDenseDoubleMatrix2DBenchmark

public abstract class AbstractMatrix2DBenchmark
extends Object
implements MatrixBenchmark


Constructor Summary
AbstractMatrix2DBenchmark()
           
 
Method Summary
abstract  DoubleMatrix2D createMatrix(long... size)
           
abstract  DoubleMatrix2D createMatrix(Matrix source)
           
 BenchmarkConfig getConfig()
           
 Class<? extends DoubleMatrix2D> getMatrixClass()
           
 String getMatrixLabel()
           
 void run()
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMatrix2DBenchmark

public AbstractMatrix2DBenchmark()
Method Detail

createMatrix

public abstract DoubleMatrix2D createMatrix(long... size)
                                     throws MatrixException
Throws:
MatrixException

createMatrix

public abstract DoubleMatrix2D createMatrix(Matrix source)
                                     throws MatrixException
Throws:
MatrixException

getMatrixLabel

public final String getMatrixLabel()
Specified by:
getMatrixLabel in interface MatrixBenchmark

getMatrixClass

public final Class<? extends DoubleMatrix2D> getMatrixClass()
Specified by:
getMatrixClass in interface MatrixBenchmark

getConfig

public final BenchmarkConfig getConfig()
Specified by:
getConfig in interface MatrixBenchmark

setName

public void setName(String name)

run

public final void run()
Specified by:
run in interface MatrixBenchmark


Copyright © 2010. All Rights Reserved.