Colt 1.2.0

cern.colt.matrix.bench
Class BenchmarkMatrix

java.lang.Object
  extended by cern.colt.matrix.bench.BenchmarkMatrix

public class BenchmarkMatrix
extends Object

Configurable matrix benchmark. Runs the operations defined in main(args) or in the file specified by args. To get this overall help on usage type java cern.colt.matrix.bench.BenchmarkMatrix -help. To get help on usage of a given command, type java cern.colt.matrix.bench.BenchmarkMatrix -help <command>. Here is the help ouput for the dgemm command. Here is a sample result. For more results see the performance log.

Version:
0.5, 10-May-2000
Author:
wolfgang.hoschek@cern.ch

Constructor Summary
protected BenchmarkMatrix()
          Benchmark constructor comment.
 
Method Summary
protected static void bench_dgemm(String[] args)
          Not yet documented.
protected static void bench_dgemv(String[] args)
          Not yet documented.
protected static void bench_pow(String[] args)
          Not yet documented.
protected static void benchGeneric(cern.colt.matrix.bench.Double2DProcedure fun, String[] args)
          Not yet documented.
protected static String commands()
           
protected static cern.colt.matrix.bench.Double2DProcedure fun_dgemm(boolean transposeA, boolean transposeB)
          Linear algebrax matrix-matrix multiply.
protected static cern.colt.matrix.bench.Double2DProcedure fun_dgemv(boolean transposeA)
          Linear algebrax matrix-matrix multiply.
protected static cern.colt.matrix.bench.Double2DProcedure fun_pow(int k)
          2D assign with get,set
protected static cern.colt.matrix.bench.Double2DProcedure funAssign()
          2D assign with A.assign(B)
protected static cern.colt.matrix.bench.Double2DProcedure funAssignGetSet()
          2D assign with get,set
protected static cern.colt.matrix.bench.Double2DProcedure funAssignGetSetQuick()
          2D assign with getQuick,setQuick
protected static cern.colt.matrix.bench.Double2DProcedure funAssignLog()
          2D assign with A.assign(B)
protected static cern.colt.matrix.bench.Double2DProcedure funAssignPlusMult()
          2D assign with A.assign(B)
protected static cern.colt.matrix.bench.Double2DProcedure funCorrelation()
          Linear algebrax matrix-matrix multiply.
protected static cern.colt.matrix.bench.Double2DProcedure funElementwiseMult()
          Element-by-element matrix-matrix multiply.
protected static cern.colt.matrix.bench.Double2DProcedure funElementwiseMultB()
          Element-by-element matrix-matrix multiply.
protected static cern.colt.matrix.bench.Double2DProcedure funGetQuick()
          2D assign with get,set
protected static cern.colt.matrix.bench.Double2DProcedure funLUDecompose()
          2D assign with getQuick,setQuick
protected static cern.colt.matrix.bench.Double2DProcedure funLUSolve()
          2D assign with getQuick,setQuick
protected static cern.colt.matrix.bench.Double2DProcedure funMatMultLarge()
          Linear algebrax matrix-matrix multiply.
protected static cern.colt.matrix.bench.Double2DProcedure funMatVectorMult()
          Linear algebrax matrix-vector multiply.
protected static cern.colt.matrix.bench.Double2DProcedure funSetQuick()
          2D assign with get,set
protected static cern.colt.matrix.bench.Double2DProcedure funSOR5()
           
protected static cern.colt.matrix.bench.Double2DProcedure funSOR8()
           
protected static cern.colt.matrix.bench.Double2DProcedure funSort()
           
protected static DoubleFactory2D getFactory(String type)
          Not yet documented.
protected static cern.colt.matrix.bench.Double2DProcedure getGenericFunction(String cmd)
          Not yet documented.
protected static boolean handle(String[] params)
          Executes a command
static void main(String[] args)
          Runs the matrix benchmark operations defined in args or in the file specified by args0.
protected static void run(double minSeconds, String title, cern.colt.matrix.bench.Double2DProcedure function, String[] types, int[] sizes, double[] densities)
          Executes procedure repeatadly until more than minSeconds have elapsed.
protected static void runSpecial(double minSeconds, String title, cern.colt.matrix.bench.Double2DProcedure function)
          Executes procedure repeatadly until more than minSeconds have elapsed.
protected static String usage()
          Overall usage.
protected static String usage(String cmd)
          Usage of a specific command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BenchmarkMatrix

protected BenchmarkMatrix()
Benchmark constructor comment.

Method Detail

bench_dgemm

protected static void bench_dgemm(String[] args)
Not yet documented.


bench_dgemv

protected static void bench_dgemv(String[] args)
Not yet documented.


bench_pow

protected static void bench_pow(String[] args)
Not yet documented.


benchGeneric

protected static void benchGeneric(cern.colt.matrix.bench.Double2DProcedure fun,
                                   String[] args)
Not yet documented.


commands

protected static String commands()

fun_dgemm

protected static cern.colt.matrix.bench.Double2DProcedure fun_dgemm(boolean transposeA,
                                                                    boolean transposeB)
Linear algebrax matrix-matrix multiply.


fun_dgemv

protected static cern.colt.matrix.bench.Double2DProcedure fun_dgemv(boolean transposeA)
Linear algebrax matrix-matrix multiply.


fun_pow

protected static cern.colt.matrix.bench.Double2DProcedure fun_pow(int k)
2D assign with get,set


funAssign

protected static cern.colt.matrix.bench.Double2DProcedure funAssign()
2D assign with A.assign(B)


funAssignGetSet

protected static cern.colt.matrix.bench.Double2DProcedure funAssignGetSet()
2D assign with get,set


funAssignGetSetQuick

protected static cern.colt.matrix.bench.Double2DProcedure funAssignGetSetQuick()
2D assign with getQuick,setQuick


funAssignLog

protected static cern.colt.matrix.bench.Double2DProcedure funAssignLog()
2D assign with A.assign(B)


funAssignPlusMult

protected static cern.colt.matrix.bench.Double2DProcedure funAssignPlusMult()
2D assign with A.assign(B)


funCorrelation

protected static cern.colt.matrix.bench.Double2DProcedure funCorrelation()
Linear algebrax matrix-matrix multiply.


funElementwiseMult

protected static cern.colt.matrix.bench.Double2DProcedure funElementwiseMult()
Element-by-element matrix-matrix multiply.


funElementwiseMultB

protected static cern.colt.matrix.bench.Double2DProcedure funElementwiseMultB()
Element-by-element matrix-matrix multiply.


funGetQuick

protected static cern.colt.matrix.bench.Double2DProcedure funGetQuick()
2D assign with get,set


funLUDecompose

protected static cern.colt.matrix.bench.Double2DProcedure funLUDecompose()
2D assign with getQuick,setQuick


funLUSolve

protected static cern.colt.matrix.bench.Double2DProcedure funLUSolve()
2D assign with getQuick,setQuick


funMatMultLarge

protected static cern.colt.matrix.bench.Double2DProcedure funMatMultLarge()
Linear algebrax matrix-matrix multiply.


funMatVectorMult

protected static cern.colt.matrix.bench.Double2DProcedure funMatVectorMult()
Linear algebrax matrix-vector multiply.


funSetQuick

protected static cern.colt.matrix.bench.Double2DProcedure funSetQuick()
2D assign with get,set


funSOR5

protected static cern.colt.matrix.bench.Double2DProcedure funSOR5()

funSOR8

protected static cern.colt.matrix.bench.Double2DProcedure funSOR8()

funSort

protected static cern.colt.matrix.bench.Double2DProcedure funSort()

getFactory

protected static DoubleFactory2D getFactory(String type)
Not yet documented.


getGenericFunction

protected static cern.colt.matrix.bench.Double2DProcedure getGenericFunction(String cmd)
Not yet documented.


handle

protected static boolean handle(String[] params)
Executes a command


main

public static void main(String[] args)
Runs the matrix benchmark operations defined in args or in the file specified by args0. To get detailed help on usage type java cern.colt.matrix.bench.BenchmarkMatrix -help


run

protected static void run(double minSeconds,
                          String title,
                          cern.colt.matrix.bench.Double2DProcedure function,
                          String[] types,
                          int[] sizes,
                          double[] densities)
Executes procedure repeatadly until more than minSeconds have elapsed.


runSpecial

protected static void runSpecial(double minSeconds,
                                 String title,
                                 cern.colt.matrix.bench.Double2DProcedure function)
Executes procedure repeatadly until more than minSeconds have elapsed.


usage

protected static String usage()
Overall usage.


usage

protected static String usage(String cmd)
Usage of a specific command.


Colt 1.2.0

Jump to the Colt Homepage