Package org.ejml
Class EjmlParameters
- java.lang.Object
-
- org.ejml.EjmlParameters
-
public class EjmlParameters extends java.lang.ObjectThis is a list of parameters that are used across the code. To tune performance for a particular system change these values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEjmlParameters.MemoryUsage
-
Field Summary
Fields Modifier and Type Field Description static intBLOCK_SIZENumber of elements in a block.static intBLOCK_WIDTHIn modern computers there are high speed memory caches.static intBLOCK_WIDTH_CHOLstatic intCMULT_COLUMN_SWITCHstatic intCMULT_TRANAB_COLUMN_SWITCHstatic EjmlParameters.MemoryUsageMEMORYUsed to adjust which algorithms are used.static intMULT_COLUMN_SWITCHAt what point does it switch from a small matrix multiply to the reorder version.static intMULT_INNER_SWITCHstatic intMULT_TRANAB_COLUMN_SWITCHstatic intSWITCH_BLOCK64_CHOLESKYAt which point should it switch to the block cholesky algorithm.static intSWITCH_BLOCK64_QRstatic floatTOL32static doubleTOL64static intTRANSPOSE_SWITCH
-
Constructor Summary
Constructors Constructor Description EjmlParameters()
-
-
-
Field Detail
-
TOL32
public static final float TOL32
- See Also:
- Constant Field Values
-
TOL64
public static final double TOL64
- See Also:
- Constant Field Values
-
MEMORY
public static EjmlParameters.MemoryUsage MEMORY
Used to adjust which algorithms are used. Often there is a trade off between memory usage and speed.
-
BLOCK_WIDTH
public static int BLOCK_WIDTH
In modern computers there are high speed memory caches. It is assumed that a square block with this width can be contained entirely in one of those caches. Settings this value too large can have a dramatic effect on performance in some situations. Setting it too low results in a less dramatic performance hit. The optimal value is dependent on the computer's memory architecture.
-
BLOCK_WIDTH_CHOL
public static int BLOCK_WIDTH_CHOL
-
BLOCK_SIZE
public static int BLOCK_SIZE
Number of elements in a block.
-
TRANSPOSE_SWITCH
public static int TRANSPOSE_SWITCH
-
MULT_COLUMN_SWITCH
public static int MULT_COLUMN_SWITCH
At what point does it switch from a small matrix multiply to the reorder version.
-
MULT_TRANAB_COLUMN_SWITCH
public static int MULT_TRANAB_COLUMN_SWITCH
-
MULT_INNER_SWITCH
public static int MULT_INNER_SWITCH
-
CMULT_COLUMN_SWITCH
public static int CMULT_COLUMN_SWITCH
-
CMULT_TRANAB_COLUMN_SWITCH
public static int CMULT_TRANAB_COLUMN_SWITCH
-
SWITCH_BLOCK64_CHOLESKY
public static int SWITCH_BLOCK64_CHOLESKY
At which point should it switch to the block cholesky algorithm.
In benchmarks the basic actually performed slightly better at 1000 but in JVM 1.6 it some times get stuck in a mode where the basic version was very slow in that case the block performed much better.
-
SWITCH_BLOCK64_QR
public static int SWITCH_BLOCK64_QR
-
-