public class ThreadedMatrixOperations
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
granularity
threshold under which single-threaded ops are used
|
| Constructor and Description |
|---|
ThreadedMatrixOperations() |
| Modifier and Type | Method and Description |
|---|---|
static double[][] |
mul(double[][] A,
double[][] B)
Performs the matrix multiplication between two double matrices
C = A * B
|
static double[][] |
muli(double[][] C,
double[][] A,
double[][] B)
Performs the matrix multiplication between two double matrices
C = A * B
|
static double[][] |
trans(double[][] A)
Computes the transposed matrix of a matrix
|
static double[][] |
transi(double[][] A)
Computes the transposed matrix of a symmetric matrix in place
|
static double[][] |
transMul(double[][] A,
double[][] B)
Computes the transpose multiplication between two matrices :
C = A' * B
|
static double[][] |
transMuli(double[][] C,
double[][] A,
double[][] B)
Computes the transpose multiplication between two matrices :
C = A' * B
|
public static int granularity
public static double[][] trans(double[][] A)
A - the input matrixpublic static double[][] transi(double[][] A)
A - the input matrix to transposepublic static double[][] mul(double[][] A,
double[][] B)
throws java.lang.ArithmeticException
A - first matrixB - second matrixjava.lang.ArithmeticExceptionpublic static double[][] muli(double[][] C,
double[][] A,
double[][] B)
throws java.lang.ArithmeticException
A - first matrixB - second matrixC - the result matrixjava.lang.ArithmeticExceptionpublic static double[][] transMul(double[][] A,
double[][] B)
A - first matrixB - second matrixpublic static double[][] transMuli(double[][] C,
double[][] A,
double[][] B)
A - first matrixB - second matrix