public class MatrixUtils extends Object
Constructor and Description |
---|
MatrixUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[][] |
add(byte[][] matrix1,
byte[][] matrix2)
Adds the two specified matrices and returns the result.
|
static byte[] |
add(byte[] matrix1,
byte[] matrix2)
Adds the two specified matrices and returns the result.
|
static char[][] |
add(char[][] matrix1,
char[][] matrix2)
Adds the two specified matrices and returns the result.
|
static char[] |
add(char[] matrix1,
char[] matrix2)
Adds the two specified matrices and returns the result.
|
static double[][] |
add(double[][] matrix1,
double[][] matrix2)
Adds the two specified matrices and returns the result.
|
static double[] |
add(double[] matrix1,
double[] matrix2)
Adds the two specified matrices and returns the result.
|
static float[][] |
add(float[][] matrix1,
float[][] matrix2)
Adds the two specified matrices and returns the result.
|
static float[] |
add(float[] matrix1,
float[] matrix2)
Adds the two specified matrices and returns the result.
|
static int[][] |
add(int[][] matrix1,
int[][] matrix2)
Adds the two specified matrices and returns the result.
|
static int[] |
add(int[] matrix1,
int[] matrix2)
Adds the two specified matrices and returns the result.
|
static long[][] |
add(long[][] matrix1,
long[][] matrix2)
Adds the two specified matrices and returns the result.
|
static long[] |
add(long[] matrix1,
long[] matrix2)
Adds the two specified matrices and returns the result.
|
static short[][] |
add(short[][] matrix1,
short[][] matrix2)
Adds the two specified matrices and returns the result.
|
static short[] |
add(short[] matrix1,
short[] matrix2)
Adds the two specified matrices and returns the result.
|
static byte[][] |
multiply(byte[][] matrix,
byte scalar)
Multiplies the specified matrix by the specified scalar.
|
static byte[][] |
multiply(byte[][] matrix1,
byte[] matrix2)
Multiplies the two specified matrices and returns the result.
|
static byte[][] |
multiply(byte[][] matrix1,
byte[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static byte[] |
multiply(byte[] matrix,
byte scalar)
Multiplies the specified matrix by the specified scalar.
|
static byte[] |
multiply(byte[] matrix1,
byte[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static char[][] |
multiply(char[][] matrix,
char scalar)
Multiplies the specified matrix by the specified scalar.
|
static char[][] |
multiply(char[][] matrix1,
char[] matrix2)
Multiplies the two specified matrices and returns the result.
|
static char[][] |
multiply(char[][] matrix1,
char[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static char[] |
multiply(char[] matrix,
char scalar)
Multiplies the specified matrix by the specified scalar.
|
static char[] |
multiply(char[] matrix1,
char[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static double[][] |
multiply(double[][] matrix,
double scalar)
Multiplies the specified matrix by the specified scalar.
|
static double[][] |
multiply(double[][] matrix1,
double[] matrix2)
Multiplies the two specified matrices and returns the result.
|
static double[][] |
multiply(double[][] matrix1,
double[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static double[] |
multiply(double[] matrix,
double scalar)
Multiplies the specified matrix by the specified scalar.
|
static double[] |
multiply(double[] matrix1,
double[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static float[][] |
multiply(float[][] matrix,
float scalar)
Multiplies the specified matrix by the specified scalar.
|
static float[][] |
multiply(float[][] matrix1,
float[] matrix2)
Multiplies the two specified matrices and returns the result.
|
static float[][] |
multiply(float[][] matrix1,
float[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static float[] |
multiply(float[] matrix,
float scalar)
Multiplies the specified matrix by the specified scalar.
|
static float[] |
multiply(float[] matrix1,
float[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static int[][] |
multiply(int[][] matrix,
int scalar)
Multiplies the specified matrix by the specified scalar.
|
static int[][] |
multiply(int[][] matrix1,
int[] matrix2)
Multiplies the two specified matrices and returns the result.
|
static int[][] |
multiply(int[][] matrix1,
int[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static int[] |
multiply(int[] matrix,
int scalar)
Multiplies the specified matrix by the specified scalar.
|
static int[] |
multiply(int[] matrix1,
int[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static long[][] |
multiply(long[][] matrix,
long scalar)
Multiplies the specified matrix by the specified scalar.
|
static long[][] |
multiply(long[][] matrix1,
long[] matrix2)
Multiplies the two specified matrices and returns the result.
|
static long[][] |
multiply(long[][] matrix1,
long[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static long[] |
multiply(long[] matrix,
long scalar)
Multiplies the specified matrix by the specified scalar.
|
static long[] |
multiply(long[] matrix1,
long[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static short[][] |
multiply(short[][] matrix,
short scalar)
Multiplies the specified matrix by the specified scalar.
|
static short[][] |
multiply(short[][] matrix1,
short[] matrix2)
Multiplies the two specified matrices and returns the result.
|
static short[][] |
multiply(short[][] matrix1,
short[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static short[] |
multiply(short[] matrix,
short scalar)
Multiplies the specified matrix by the specified scalar.
|
static short[] |
multiply(short[] matrix1,
short[][] matrix2)
Multiplies the two specified matrices and returns the result.
|
static byte[][] |
transpose(byte[] matrix)
Transposes the specified matrix and returns the result.
|
static byte[][] |
transpose(byte[][] matrix)
Transposes the specified matrix and returns the result.
|
static char[][] |
transpose(char[] matrix)
Transposes the specified matrix and returns the result.
|
static char[][] |
transpose(char[][] matrix)
Transposes the specified matrix and returns the result.
|
static double[][] |
transpose(double[] matrix)
Transposes the specified matrix and returns the result.
|
static double[][] |
transpose(double[][] matrix)
Transposes the specified matrix and returns the result.
|
static float[][] |
transpose(float[] matrix)
Transposes the specified matrix and returns the result.
|
static float[][] |
transpose(float[][] matrix)
Transposes the specified matrix and returns the result.
|
static int[][] |
transpose(int[] matrix)
Transposes the specified matrix and returns the result.
|
static int[][] |
transpose(int[][] matrix)
Transposes the specified matrix and returns the result.
|
static long[][] |
transpose(long[] matrix)
Transposes the specified matrix and returns the result.
|
static long[][] |
transpose(long[][] matrix)
Transposes the specified matrix and returns the result.
|
static Object[][] |
transpose(Object[] matrix)
Transposes the specified matrix and returns the result.
|
static Object[][] |
transpose(Object[][] matrix)
Transposes the specified matrix and returns the result.
|
static short[][] |
transpose(short[] matrix)
Transposes the specified matrix and returns the result.
|
static short[][] |
transpose(short[][] matrix)
Transposes the specified matrix and returns the result.
|
static boolean |
validateMatrix(byte[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(byte[][] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(char[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(char[][] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(double[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(double[][] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(float[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(float[][] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(int[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(int[][] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(long[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(long[][] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(Object[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(Object[][] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(short[] matrix)
Returns whether the specified matrix is valid.
|
static boolean |
validateMatrix(short[][] matrix)
Returns whether the specified matrix is valid.
|
public static boolean validateMatrix(byte[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(short[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(int[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(long[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(float[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(double[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(char[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(Object[] matrix)
null
matrix
- the matrix to validatetrue
if the matrix is valid; false
otherwisepublic static boolean validateMatrix(byte[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static boolean validateMatrix(short[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static boolean validateMatrix(int[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static boolean validateMatrix(long[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static boolean validateMatrix(float[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static boolean validateMatrix(double[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static boolean validateMatrix(char[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static boolean validateMatrix(Object[][] matrix)
null
matrix
- the matrix to validatefalse
otherwisepublic static byte[][] transpose(byte[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(byte[])
public static short[][] transpose(short[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(short[])
public static int[][] transpose(int[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(int[])
public static long[][] transpose(long[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(long[])
public static float[][] transpose(float[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(float[])
public static double[][] transpose(double[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(double[])
public static char[][] transpose(char[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(char[])
public static Object[][] transpose(Object[] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(Object[])
public static byte[][] transpose(byte[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(byte[][])
public static short[][] transpose(short[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(short[][])
public static int[][] transpose(int[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(int[][])
public static long[][] transpose(long[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(long[][])
public static float[][] transpose(float[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(float[][])
public static double[][] transpose(double[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(double[][])
public static char[][] transpose(char[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(char[][])
public static Object[][] transpose(Object[][] matrix)
matrix
- the matrix to transpose; must be a valid matrixvalidateMatrix(Object[][])
public static byte[] add(byte[] matrix1, byte[] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(byte[])
public static short[] add(short[] matrix1, short[] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(short[])
public static int[] add(int[] matrix1, int[] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(int[])
public static long[] add(long[] matrix1, long[] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(long[])
public static float[] add(float[] matrix1, float[] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(float[])
public static double[] add(double[] matrix1, double[] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(double[])
public static char[] add(char[] matrix1, char[] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(char[])
public static byte[][] add(byte[][] matrix1, byte[][] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(byte[][])
public static short[][] add(short[][] matrix1, short[][] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(short[][])
public static int[][] add(int[][] matrix1, int[][] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(int[][])
public static long[][] add(long[][] matrix1, long[][] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(long[][])
public static float[][] add(float[][] matrix1, float[][] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(float[][])
public static double[][] add(double[][] matrix1, double[][] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(double[][])
public static char[][] add(char[][] matrix1, char[][] matrix2)
matrix1
- the first matrix to add; must be a valid matrixmatrix2
- the second matrix to add; must be a valid matrixvalidateMatrix(char[][])
public static byte[] multiply(byte[] matrix1, byte[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(byte[])
,
validateMatrix(byte[][])
public static short[] multiply(short[] matrix1, short[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(short[])
,
validateMatrix(short[][])
public static int[] multiply(int[] matrix1, int[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(short[])
,
validateMatrix(short[][])
public static long[] multiply(long[] matrix1, long[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(long[])
,
validateMatrix(long[][])
public static float[] multiply(float[] matrix1, float[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(float[])
,
validateMatrix(float[][])
public static double[] multiply(double[] matrix1, double[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(double[])
,
validateMatrix(double[][])
public static char[] multiply(char[] matrix1, char[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(char[])
,
validateMatrix(char[][])
public static byte[][] multiply(byte[][] matrix1, byte[] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(byte[])
,
validateMatrix(byte[][])
public static short[][] multiply(short[][] matrix1, short[] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(short[])
,
validateMatrix(short[][])
public static int[][] multiply(int[][] matrix1, int[] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(int[])
,
validateMatrix(int[][])
public static long[][] multiply(long[][] matrix1, long[] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(long[])
,
validateMatrix(long[][])
public static float[][] multiply(float[][] matrix1, float[] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(float[])
,
validateMatrix(float[][])
public static double[][] multiply(double[][] matrix1, double[] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(double[])
,
validateMatrix(double[][])
public static char[][] multiply(char[][] matrix1, char[] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(char[])
,
validateMatrix(char[][])
public static byte[][] multiply(byte[][] matrix1, byte[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(byte[][])
public static short[][] multiply(short[][] matrix1, short[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(short[][])
public static int[][] multiply(int[][] matrix1, int[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(int[][])
public static long[][] multiply(long[][] matrix1, long[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(long[][])
public static float[][] multiply(float[][] matrix1, float[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(float[][])
public static double[][] multiply(double[][] matrix1, double[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(double[][])
public static char[][] multiply(char[][] matrix1, char[][] matrix2)
matrix1
- the first matrix to multiply; must be a valid matrixmatrix2
- the second matrix to multiply; must be a valid matrixvalidateMatrix(char[][])
public static byte[] multiply(byte[] matrix, byte scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(byte[])
public static short[] multiply(short[] matrix, short scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(short[])
public static int[] multiply(int[] matrix, int scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(int[])
public static long[] multiply(long[] matrix, long scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(long[])
public static float[] multiply(float[] matrix, float scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(float[])
public static double[] multiply(double[] matrix, double scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(double[])
public static char[] multiply(char[] matrix, char scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(char[])
public static byte[][] multiply(byte[][] matrix, byte scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(byte[][])
public static short[][] multiply(short[][] matrix, short scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(short[][])
public static int[][] multiply(int[][] matrix, int scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(int[][])
public static long[][] multiply(long[][] matrix, long scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(long[][])
public static float[][] multiply(float[][] matrix, float scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(float[][])
public static double[][] multiply(double[][] matrix, double scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(double[][])
public static char[][] multiply(char[][] matrix, char scalar)
matrix
- the matrix to multiply the scalar by; must be a valid
matrixscalar
- the scalar to multiply the matrix withvalidateMatrix(char[][])
Copyright © 2021 Frostphyr. All rights reserved.