Class MatrixMatrixMult_DDRM
- java.lang.Object
-
- org.ejml.dense.row.mult.MatrixMatrixMult_DDRM
-
public class MatrixMatrixMult_DDRM extends java.lang.ObjectThis class contains various types of matrix matrix multiplication operations for
DMatrix1Row.Two algorithms that are equivalent can often have very different runtime performance. This is because of how modern computers uses fast memory caches to speed up reading/writing to data. Depending on the order in which variables are processed different algorithms can run much faster than others, even if the number of operations is the same.
Algorithms that are labeled as 'reorder' are designed to avoid caching jumping issues, some times at the cost of increasing the number of operations. This is important for large matrices. The straight forward implementation seems to be faster for small matrices.
Algorithms that are labeled as 'aux' use an auxiliary array of length n. This array is used to create a copy of an out of sequence column vector that is referenced several times. This reduces the number of cache misses. If the 'aux' parameter passed in is null then the array is declared internally.
Typically the straight forward implementation runs about 30% faster on smaller matrices and about 5 times slower on larger matrices. This is all computer architecture and matrix shape/size specific.
******** IMPORTANT ********** This class was auto generated using org.ejml.dense.row.mult.GeneratorMatrixMatrixMult_DDRM
-
-
Constructor Summary
Constructors Constructor Description MatrixMatrixMult_DDRM()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmult_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmult_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmult_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmult_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmult_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmult_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAdd_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmultAdd_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmultAdd_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAdd_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAdd_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAdd_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransA_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransA_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransA_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransA_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransAB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransAB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransAB_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmultAddTransAB_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmultAddTransB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultAddTransB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransA_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransA_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransA_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransA_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransAB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransAB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransAB_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmultTransAB_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)static voidmultTransB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)static voidmultTransB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
-
-
Method Detail
-
mult_reorder
public static void mult_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
mult_small
public static void mult_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
mult_aux
public static void mult_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multTransA_reorder
public static void multTransA_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multTransA_small
public static void multTransA_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multTransAB
public static void multTransAB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multTransAB_aux
public static void multTransAB_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multTransB
public static void multTransB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAdd_reorder
public static void multAdd_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAdd_small
public static void multAdd_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAdd_aux
public static void multAdd_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multAddTransA_reorder
public static void multAddTransA_reorder(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAddTransA_small
public static void multAddTransA_small(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAddTransAB
public static void multAddTransAB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAddTransAB_aux
public static void multAddTransAB_aux(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multAddTransB
public static void multAddTransB(org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
mult_reorder
public static void mult_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
mult_small
public static void mult_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
mult_aux
public static void mult_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multTransA_reorder
public static void multTransA_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multTransA_small
public static void multTransA_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multTransAB
public static void multTransAB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multTransAB_aux
public static void multTransAB_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multTransB
public static void multTransB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAdd_reorder
public static void multAdd_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAdd_small
public static void multAdd_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAdd_aux
public static void multAdd_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multAddTransA_reorder
public static void multAddTransA_reorder(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAddTransA_small
public static void multAddTransA_small(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAddTransAB
public static void multAddTransAB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
multAddTransAB_aux
public static void multAddTransAB_aux(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c, double[] aux)
-
multAddTransB
public static void multAddTransB(double alpha, org.ejml.data.DMatrix1Row a, org.ejml.data.DMatrix1Row b, org.ejml.data.DMatrix1Row c)
-
-