public final class Matrix
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double[][] |
Abs(double[][] A)
Elementwise absolute value.
|
static float[][] |
Abs(float[][] A)
Elementwise absolute value.
|
static int[][] |
Abs(int[][] A)
Elementwise absolute value.
|
static void |
Add(double[][] A,
double scalar)
Adds scalar value in a matrix.
|
static double[][] |
Add(double[][] A,
double[][] B)
Adds two matrices.
|
static void |
Add(double[] A,
double scalar)
Adds scalar value in a vector.
|
static double[] |
Add(double[] A,
double[] B)
Adds two vectors.
|
static void |
Add(float[][] A,
float scalar)
Adds scalar value in a matrix.
|
static float[][] |
Add(float[][] A,
float[][] B)
Adds two matrices.
|
static void |
Add(float[] A,
float scalar)
Adds scalar value in a vector.
|
static float[] |
Add(float[] A,
float[] B)
Adds two vectors.
|
static void |
Add(int[][] A,
int scalar)
Adds scalar value in a matrix.
|
static int[][] |
Add(int[][] A,
int[][] B)
Adds two matrices.
|
static void |
Add(int[] A,
int scalar)
Adds scalar value in a vector.
|
static int[] |
Add(int[] A,
int[] B)
Adds two vectors.
|
static void |
Clear(double[] A)
Set all elements in the vector equal 0.
|
static void |
Clear(double[][] A)
Set all elements in the vector equal 0.
|
static void |
Clear(float[] A)
Set all elements in the vector equal 0.
|
static void |
Clear(float[][] A)
Set all elements in the vector equal 0.
|
static void |
Clear(int[] A)
Set all elements in the vector equal 0.
|
static void |
Clear(int[][] A)
Set all elements in the vector equal 0.
|
static double[][] |
Copy(double[][] A)
Create a new copy.
|
static float[][] |
Copy(float[][] A)
Create a new copy.
|
static int[][] |
Copy(int[][] A)
Create a new copy.
|
static double[] |
CreateMatrix1D(int size,
double val)
Create 1D Matrix.
|
static float[] |
CreateMatrix1D(int size,
float val)
Create 1D Matrix.
|
static int[] |
CreateMatrix1D(int size,
int val)
Create 1D Matrix.
|
static double[][] |
CreateMatrix2D(int height,
int width,
double val)
Create 2D Matrix.
|
static float[][] |
CreateMatrix2D(int height,
int width,
float val)
Create 2D Matrix.
|
static int[][] |
CreateMatrix2D(int height,
int width,
int val)
Create 2D Matrix.
|
static double |
Determinant(double[][] A)
Determinant of matrix.
|
static void |
Divide(double[][] A,
double scalar)
Divides a matrix with a scalar value.
|
static void |
Divide(float[][] A,
float scalar)
Divides a matrix with a scalar value.
|
static void |
Divide(int[][] A,
int scalar)
Divides a matrix with a scalar value.
|
static double[][] |
DotProduct(double[][] A,
double[][] B)
Dot product.
|
static float[][] |
DotProduct(float[][] A,
float[][] B)
Dot product.
|
static int[][] |
DotProduct(int[][] A,
int[][] B)
Dot product.
|
static double[][] |
Exp(double[][] A)
Elementwise Exp operation.
|
static void |
Fill(double[][] A,
double number)
Fill a matrix with specified number.
|
static void |
Fill(double[] A,
double number)
Fill a vector with specified number.
|
static void |
Fill(float[][] A,
float number)
Fill a matrix with specified number.
|
static void |
Fill(float[] A,
float number)
Fill a vector with specified number.
|
static void |
Fill(int[][] A,
int number)
Fill a matrix with specified number.
|
static void |
Fill(int[] A,
int number)
Fill a vector with specified number.
|
static double[] |
getColumn(double[][] A,
int n)
Return a vector from a specified column in a matrix.
|
static float[] |
getColumn(float[][] A,
int n)
Return a vector from a specified column in a matrix.
|
static int[] |
getColumn(int[][] A,
int n)
Return a vector from a specified column in a matrix.
|
static <T> T[] |
getColumn(T[][] A,
int n)
Return a vector from a specified column in a matrix.
|
static double[][] |
getColumns(double[][] A,
int[] indexes)
Return a matrix from specified columns.
|
static double[] |
getColumns(double[] A,
int[] indexes) |
static double[] |
getColumns(double[] A,
int startIndex,
int endIndex)
Return a vector from specified range.
|
static float[][] |
getColumns(float[][] A,
int[] indexes)
Return a matrix from specified columns.
|
static float[] |
getColumns(float[] A,
int[] indexes) |
static float[] |
getColumns(float[] A,
int startIndex,
int endIndex)
Return a vector from specified range.
|
static int[][] |
getColumns(int[][] A,
int[] indexes)
Return a matrix from specified columns.
|
static int[] |
getColumns(int[] A,
int[] indexes) |
static int[] |
getColumns(int[] A,
int startIndex,
int endIndex)
Return a vector from specified range.
|
static <T> T[][] |
getColumns(T[][] A,
int[] indexes)
Return a matrix from specified columns.
|
static <T> T[] |
getColumns(T[] A,
int[] indexes) |
static <T> T[] |
getColumns(T[] A,
int startIndex,
int endIndex)
Return a vector from specified range.
|
static double[] |
getRow(double[][] A,
int n)
Return a vector from a specified row in a matrix.
|
static float[] |
getRow(float[][] A,
int n)
Return a vector from a specified row in a matrix.
|
static int[] |
getRow(int[][] A,
int n)
Return a vector from a specified row in a matrix.
|
static double[][] |
getRows(double[][] A,
int[] indexes)
Return a matrix from a specified row indexes.
|
static double[] |
getRows(double[] A,
int[] indexes)
Return an array from a specified row indexes.
|
static float[][] |
getRows(float[][] A,
int[] indexes)
Return a matrix from a specified row indexes.
|
static float[] |
getRows(float[] A,
int[] indexes)
Return an array from a specified row indexes.
|
static int[][] |
getRows(int[][] A,
int[] indexes)
Return a matrix from a specified row indexes.
|
static int[] |
getRows(int[] A,
int[] indexes)
Return an array from a specified row indexes.
|
static <T> T[] |
getRows(T[] A,
int[] indexes)
Return an array from a specified row indexes.
|
static double[][] |
Identity(int order)
Gets the Identity matrix of the given size.
|
static double[][] |
Identity(int m,
int n)
Gets the Identity matrix of the given size.
|
static int[] |
Indices(int from,
int to)
Creates a index vector.
|
static double |
InnerProduct(double[] A,
double[] B)
Inner product (dot or scalar) between two vectors A'*B.
|
static float |
InnerProduct(float[] A,
float[] B)
Inner product (dot or scalar) between two vectors.
|
static int |
InnerProduct(int[] A,
int[] B)
Inner product (dot or scalar) between two vectors.
|
static double[][] |
Inverse(double[][] A)
Matrix inverse or pseudoinverse.
|
static boolean |
isEqual(double[][] A,
double[][] B)
Check if the matrix A is the same of B.
|
static boolean |
isEqual(float[][] A,
float[][] B)
Check if the matrix A is the same of B.
|
static boolean |
isEqual(int[][] A,
int[][] B)
Check if the matrix A is the same of B.
|
static boolean |
isNonNegative(double[][] A)
Check if all values are positive.
|
static boolean |
isNonNegative(float[][] A)
Check if all values are positive.
|
static boolean |
isNonNegative(int[][] A)
Check if all values are positive.
|
static boolean |
isSquare(double[][] A)
Check if the matrix is square.
|
static boolean |
isSquare(float[][] A)
Check if the matrix is square.
|
static boolean |
isSquare(int[][] A)
Check if the matrix is square.
|
static boolean |
isSymmetric(double[][] A)
Check if the matrix is symmetric.
|
static boolean |
isSymmetric(float[][] A)
Check if the matrix is symmetric.
|
static boolean |
isSymmetric(int[][] A)
Check if the matrix is symmetric.
|
static boolean |
isZero(double[] A)
Check if the vector contains only 0 values.
|
static boolean |
isZero(double[][] A)
Check if the matrix contains only 0 values.
|
static boolean |
isZero(float[] A)
Check if the vector contains only 0 values.
|
static boolean |
isZero(float[][] A)
Check if the matrix contains only 0 values.
|
static boolean |
isZero(int[] A)
Check if the vector contains only 0 values.
|
static boolean |
isZero(int[][] A)
Check if the matrix contains only 0 values.
|
static double[] |
Log(double[] A)
Elementwise Log operation.
|
static double[][] |
Log(double[][] A)
Elementwise Log operation.
|
static double |
Max(double[] matrix)
Get the maximum value from array.
|
static double |
Max(double[][] matrix)
Get the maximum value from array.
|
static float |
Max(float[] matrix)
Get the maximum value from array.
|
static float |
Max(float[][] matrix)
Get the maximum value from array.
|
static int |
Max(int[] matrix)
Get the maximum value from array.
|
static int |
Max(int[][] matrix)
Get the maximum value from array.
|
static int |
MaxIndex(double[] matrix)
Get the index of maximum value from array.
|
static IntPoint |
MaxIndex(double[][] matrix)
Get the index of maximum value from array.
|
static int |
MaxIndex(float[] matrix)
Get the index of maximum value from array.
|
static IntPoint |
MaxIndex(float[][] matrix)
Get the index of maximum value from array.
|
static int |
MaxIndex(int[] matrix)
Get the index of maximum value from array.
|
static IntPoint |
MaxIndex(int[][] matrix)
Get the index of maximum value from array.
|
static double |
Mean(double[][] matrix)
Get the mean of the all elements in the matrix.
|
static float |
Mean(float[][] matrix)
Get the mean of the all elements in the matrix.
|
static double |
Mean(int[][] matrix)
Get the mean of the all elements in the matrix.
|
static double[][] |
MemberwiseClone(double[][] data) |
static float[][] |
MemberwiseClone(float[][] data) |
static int[][] |
MemberwiseClone(int[][] data) |
static double |
Min(double[] matrix)
Get the minimum value from array.
|
static double |
Min(double[][] matrix)
Get the minimum value from array.
|
static float |
Min(float[] matrix)
Get the minimum value from array.
|
static float |
Min(float[][] matrix)
Get the minimum value from array.
|
static int |
Min(int[] matrix)
Get the minimum value from array.
|
static int |
Min(int[][] matrix)
Get the minimum value from array.
|
static int |
MinIndex(double[] matrix)
Get the index of minimum value from array.
|
static IntPoint |
MinIndex(double[][] matrix)
Get the index of minimum value from array.
|
static int |
MinIndex(float[] matrix)
Get the index of minimum value from array.
|
static IntPoint |
MinIndex(float[][] matrix)
Get the index of minimum value from array.
|
static int |
MinIndex(int[] matrix)
Get the index of minimum value from array.
|
static IntPoint |
MinIndex(int[][] matrix)
Get the index of minimum value from array.
|
static double[] |
MinMax(double[][] matrix)
Get the minimum and the maximum of the matrix.
|
static float[] |
MinMax(float[][] matrix)
Get the minimum and the maximum of the matrix.
|
static int[] |
MinMax(int[][] matrix)
Get the minimum and the maximum of the matrix.
|
static double[][] |
Multiply(double[][] A,
double value)
Multiply a Matrix with scalar value.
|
static double[][] |
Multiply(double[][] A,
double[][] B)
Multiply two matrices.
|
static double[] |
Multiply(double[] A,
double scalar)
Multiply a vector by a scalar.
|
static double[] |
Multiply(double[] A,
double[][] B)
Multiply A vector by a matrix B.
|
static float[][] |
Multiply(float[][] A,
float value)
Multiply a Matrix with scalar value.
|
static float[][] |
Multiply(float[][] A,
float[][] B)
Multiply two matrices.
|
static float[] |
Multiply(float[] A,
float scalar)
Multiply a vector by a scalar.
|
static float[] |
Multiply(float[] A,
float[][] B)
Multiply A vector by a matrix B.
|
static int[][] |
Multiply(int[][] A,
int value)
Multiply a Matrix with scalar value.
|
static int[][] |
Multiply(int[][] A,
int[][] B)
Multiply two matrices.
|
static int[] |
Multiply(int[] A,
int scalar)
Multiply a vector by a scalar.
|
static int[] |
Multiply(int[] A,
int[][] B)
Multiply A vector by a matrix B.
|
static double[][] |
MultiplyByDiagonal(double[][] A,
double[] B) |
static double[][] |
MultiplyByTranspose(double[][] A)
Multiply a Matrix with the transpose.
|
static double[] |
MultiplyByTranspose(double[][] A,
double[] B)
Multiply a Matrix with the transpose of other.
|
static double[][] |
MultiplyByTranspose(double[][] A,
double[][] B)
Multiply a Matrix with the transpose of other.
|
static float[][] |
MultiplyByTranspose(float[][] A)
Multiply a Matrix with the transpose.
|
static float[] |
MultiplyByTranspose(float[][] A,
float[] B)
Multiply a Matrix with the transpose of other.
|
static float[][] |
MultiplyByTranspose(float[][] A,
float[][] B)
Multiply a Matrix with the transpose of other.
|
static int[][] |
MultiplyByTranspose(int[][] A)
Multiply a Matrix with the transpose.
|
static int[] |
MultiplyByTranspose(int[][] A,
int[] B)
Multiply a Matrix with the transpose of other.
|
static int[][] |
MultiplyByTranspose(int[][] A,
int[][] B)
Multiply a Matrix with the transpose of other.
|
static double |
Norm1(double[][] A)
Calculate 1-norm of a matrix.
|
static float |
Norm1(float[][] A)
Calculate 1-norm of a matrix.
|
static int |
Norm1(int[][] A)
Calculate 1-norm of a matrix.
|
static double |
Norm2(double[] A) |
static double |
Norm2(double[][] A)
Calculate 2-norm of a matrix.
|
static double |
NormF(double[][] A)
Calculate Frobenius norm of a matrix.
|
static float |
NormF(float[][] A)
Calculate Frobenius norm of a matrix.
|
static double |
NormF(int[][] A)
Calculate Frobenius norm of a matrix.
|
static double |
NormP(double[] v,
int p)
Calculate P norm of a vector.
|
static double[][] |
OuterProduct(double[] u)
Outer Product.
|
static double[][] |
OuterProduct(double[] u,
double[] v)
Outer Product.
|
static float[][] |
OuterProduct(float[] u)
Outer Product.
|
static float[][] |
OuterProduct(float[] u,
float[] v)
Outer Product.
|
static int[][] |
OuterProduct(int[] u)
Outer Product.
|
static int[][] |
OuterProduct(int[] u,
int[] v)
Outer Product.
|
static double[][] |
PseudoInverse(double[][] A)
Calculate the pseudo-inverse of the matrix.
|
static int |
Rank(double[][] A)
Calculate the rank of the matrix.
|
static int |
Rank(float[][] A)
Calculate the rank of the matrix.
|
static int |
Rank(int[][] A)
Calculate the rank of the matrix.
|
static double[][] |
RemoveColumn(double[][] A,
int index)
Remove column from the matrix.
|
static double[] |
RemoveColumn(double[] A,
int index)
Remove column from the vector.
|
static float[][] |
RemoveColumn(float[][] A,
int index)
Remove column from the matrix.
|
static float[] |
RemoveColumn(float[] A,
int index)
Remove column from the vector.
|
static int[][] |
RemoveColumn(int[][] A,
int index)
Remove column from the matrix.
|
static int[] |
RemoveColumn(int[] A,
int index)
Remove column from the vector.
|
static <T> T[] |
RemoveColumn(T[] A,
int index)
Remove column from the vector.
|
static double[][] |
RemoveColumns(double[][] A,
int[] index)
Remove columns from the matrix.
|
static double[] |
RemoveColumns(double[] A,
int[] index)
Remove columns from the vector.
|
static float[][] |
RemoveColumns(float[][] A,
int[] index)
Remove columns from the matrix.
|
static float[] |
RemoveColumns(float[] A,
int[] index)
Remove columns from the vector.
|
static int[][] |
RemoveColumns(int[][] A,
int[] index)
Remove columns from the matrix.
|
static int[] |
RemoveColumns(int[] A,
int[] index)
Remove columns from the vector.
|
static <T> T[] |
RemoveColumns(T[] A,
int[] index)
Remove columns from the vector.
|
static double[][] |
RemoveRow(double[][] A,
int index)
Remove a specified row from the matrix.
|
static float[][] |
RemoveRow(float[][] A,
int index)
Remove a specified row from the matrix.
|
static int[][] |
RemoveRow(int[][] A,
int index)
Remove a specified row from the matrix.
|
static <T> T[][] |
RemoveRow(T[][] A,
int index)
Remove a specified row from the matrix.
|
static double[][] |
RemoveRows(double[][] A,
int[] index)
Remove rows from the matrix.
|
static float[][] |
RemoveRows(float[][] A,
int[] index)
Remove rows from the matrix.
|
static int[][] |
RemoveRows(int[][] A,
int[] index)
Remove rows from the matrix.
|
static double[] |
Reshape(double[][] A)
Convert matrix to vector.
|
static double[][] |
Reshape(double[] vector,
int m,
int n)
Convert vector to matrix.
|
static float[] |
Reshape(float[][] A)
Convert matrix to vector.
|
static float[][] |
Reshape(float[] vector,
int m,
int n)
Convert vector to matrix.
|
static int[] |
Reshape(int[][] A)
Convert matrix to vector.
|
static int[][] |
Reshape(int[] vector,
int m,
int n)
Convert vector to matrix.
|
static double[][] |
Submatrix(double[][] data,
int[] rowIndexes)
Get the submatrix from the matrix.
|
static double[][] |
Submatrix(double[][] data,
int[] rowIndexes,
int startColumn,
int endColumn)
Get the submatrix from the matrix.
|
static double[][] |
SubMatrix(double[][] data,
int rows,
int cols) |
static double[][] |
Submatrix(double[][] data,
int startRow,
int endRow,
int[] columnIndexes)
Get the submatrix from the matrix.
|
static double[][] |
Submatrix(double[][] data,
int startRow,
int endRow,
int startColumn,
int endColumn)
Get the submatrix from the matrix.
|
static double[] |
SubMatrix(double[] data,
int first) |
static double[] |
Submatrix(double[] data,
int startRow,
int endRow) |
static float[][] |
Submatrix(float[][] data,
int startRow,
int endRow,
int[] columnIndexes)
Get the submatrix from the matrix.
|
static float[][] |
Submatrix(float[][] data,
int startRow,
int endRow,
int startColumn,
int endColumn)
Get the submatrix from the matrix.
|
static int[][] |
Submatrix(int[][] data,
int[] rowIndexes)
Get the submatrix from the matrix.
|
static int[][] |
Submatrix(int[][] data,
int[] rowIndexes,
int startColumn,
int endColumn)
Get the submatrix from the matrix.
|
static int[][] |
Submatrix(int[][] data,
int startRow,
int endRow,
int[] columnIndexes)
Get the submatrix from the matrix.
|
static int[][] |
Submatrix(int[][] data,
int startRow,
int endRow,
int startColumn,
int endColumn)
Get the submatrix from the matrix.
|
static int[] |
SubMatrix(int[] data,
int first) |
static int[] |
Submatrix(int[] data,
int startRow,
int endRow) |
static void |
Subtract(double[][] A,
double scalar)
Subtract matrix with a scalar value.
|
static double[][] |
Subtract(double[][] A,
double[][] B)
Subtracts two matrices.
|
static void |
Subtract(double[] A,
double scalar)
Subtract vector with a scalar value.
|
static double[] |
Subtract(double[] A,
double[] B)
Subtracts two vectors.
|
static void |
Subtract(float[][] A,
float scalar)
Subtract matrix with a scalar value.
|
static float[][] |
Subtract(float[][] A,
float[][] B)
Subtracts two matrices.
|
static void |
Subtract(float[] A,
float scalar)
Subtract vector with a scalar value.
|
static float[] |
Subtract(float[] A,
float[] B)
Subtracts two vectors.
|
static void |
Subtract(int[][] A,
int scalar)
Subtract matrix with a scalar value.
|
static int[][] |
Subtract(int[][] A,
int[][] B)
Subtracts two matrices.
|
static void |
Subtract(int[] A,
int scalar)
Subtract vector with a scalar value.
|
static int[] |
Subtract(int[] A,
int[] B)
Subtracts two vectors.
|
static double |
Sum(double[][] A)
Sum all the elements in the matrix.
|
static float |
Sum(float[][] A)
Sum all the elements in the matrix.
|
static int |
Sum(int[][] A)
Sum all the elements in the matrix.
|
static double |
SumAbs(double[][] A)
Sum absolute of all the elements in the matrix.
|
static float |
SumAbs(float[][] A)
Sum absolute of all the elements in the matrix.
|
static int |
SumAbs(int[][] A)
Sum absolute of all the elements in the matrix.
|
static void |
SwapColumn(double[][] A,
int a,
int b)
Swap column.
|
static void |
SwapColumn(float[][] A,
int a,
int b)
Swap column.
|
static void |
SwapColumn(int[][] A,
int a,
int b)
Swap column.
|
static void |
SwapRow(double[][] A,
int a,
int b)
Swap row.
|
static void |
SwapRow(float[][] A,
int a,
int b)
Swap row.
|
static void |
SwapRow(int[][] A,
int a,
int b)
Swap row.
|
static double[] |
toDoubleArray(double[][] A)
Convert Matrix to Vector.
|
static double[] |
toDoubleArray(float[][] A)
Convert Matrix to Vector.
|
static double[] |
toDoubleArray(int[][] A)
Convert Matrix to Vector.
|
static double[][] |
toDoubleMatrix(java.util.List<double[]> list)
Convert List of array to Matrix.
|
static float[] |
toFloatArray(double[][] A)
Convert Matrix to Vector.
|
static float[] |
toFloatArray(float[][] A)
Convert Matrix to Vector.
|
static float[] |
toFloatArray(int[][] A)
Convert Matrix to Vector.
|
static float[][] |
toFloatMatrix(java.util.List<float[]> list)
Convert List of array to Matrix.
|
static int[] |
toIntArray(double[][] A)
Convert Matrix to Vector.
|
static int[] |
toIntArray(float[][] A)
Convert Matrix to Vector.
|
static int[] |
toIntArray(int[][] A)
Convert Matrix to Vector.
|
static int[][] |
toIntMatrix(java.util.List<int[]> list)
Convert List of array to Matrix.
|
static double |
Trace(double[][] A)
Is defined to be the sum of the elements on the main diagonal.
|
static float |
Trace(float[][] A)
Is defined to be the sum of the elements on the main diagonal.
|
static int |
Trace(int[][] A)
Is defined to be the sum of the elements on the main diagonal.
|
static double[][] |
Transpose(double[][] A)
Gets the transpose of the matrix.
|
static <E> E[][] |
Transpose(E[][] A)
Gets the transpose of the matrix.
|
static float[][] |
Transpose(float[][] A)
Gets the transpose of the matrix.
|
static int[][] |
Transpose(int[][] A)
Gets the transpose of the matrix.
|
public static double[][] Abs(double[][] A)
A - Matrix.public static int[][] Abs(int[][] A)
A - Matrix.public static float[][] Abs(float[][] A)
A - Matrix.public static double[] CreateMatrix1D(int size,
double val)
size - Size of the matrix.val - Initial value of all elements.public static int[] CreateMatrix1D(int size,
int val)
size - Size of the matrix.val - Initial value of all elements.public static float[] CreateMatrix1D(int size,
float val)
size - Size of the matrix.val - Initial value of all elements.public static double[][] CreateMatrix2D(int height,
int width,
double val)
height - Height of the matrix.width - Width of the matrix.val - Initial value of all elements.public static int[][] CreateMatrix2D(int height,
int width,
int val)
height - Height of the matrix.width - Width of the matrix.val - Initial value of all elements.public static float[][] CreateMatrix2D(int height,
int width,
float val)
height - Height of the matrix.width - Width of the matrix.val - Initial value of all elements.public static int[] Indices(int from,
int to)
from - From.to - To.public static double InnerProduct(double[] A,
double[] B)
A - Vector A.B - Vector B.public static int InnerProduct(int[] A,
int[] B)
A - Vector A.B - Vector B.public static float InnerProduct(float[] A,
float[] B)
A - Vector A.B - Vector B.public static double[] Log(double[] A)
A - Vector.public static double[][] Log(double[][] A)
A - Matrix.public static double[] Add(double[] A,
double[] B)
A - Vector.B - Vector.public static int[] Add(int[] A,
int[] B)
A - Vector.B - Vector.public static float[] Add(float[] A,
float[] B)
A - Vector.B - Vector.public static double[][] Add(double[][] A,
double[][] B)
A - Matrix.B - Matrix.public static int[][] Add(int[][] A,
int[][] B)
A - Matrix.B - Matrix.public static float[][] Add(float[][] A,
float[][] B)
A - Matrix.B - Matrix.public static void Add(double[] A,
double scalar)
A - Vector.scalar - Scalar value.public static void Add(int[] A,
int scalar)
A - Vector.scalar - Scalar value.public static void Add(float[] A,
float scalar)
A - Vector.scalar - Scalar value.public static void Add(double[][] A,
double scalar)
A - Matrix.scalar - Scalar value.public static void Add(int[][] A,
int scalar)
A - Matrix.scalar - Scalar value.public static void Add(float[][] A,
float scalar)
A - Matrix.scalar - Scalar value.public static void Clear(int[] A)
A - Vector.public static void Clear(float[] A)
A - Vector.public static void Clear(double[] A)
A - Vector.public static void Clear(int[][] A)
A - Matrix.public static void Clear(float[][] A)
A - Matrix.public static void Clear(double[][] A)
A - Matrix.public static double[][] Copy(double[][] A)
A - Matrix to be copied.public static int[][] Copy(int[][] A)
A - Matrix to be copied.public static float[][] Copy(float[][] A)
A - Matrix to be copied.public static double Determinant(double[][] A)
A - Matrix.public static void Divide(double[][] A,
double scalar)
A - Matrix.scalar - Scalar value.public static double[][] Exp(double[][] A)
A - Matrix.public static void Divide(int[][] A,
int scalar)
A - Matrix.scalar - Scalar value.public static void Divide(float[][] A,
float scalar)
A - Matrix.scalar - Scalar value.public static double[][] DotProduct(double[][] A,
double[][] B)
A - Matrix.B - Matrix.public static int[][] DotProduct(int[][] A,
int[][] B)
A - Matrix.B - Matrix.public static float[][] DotProduct(float[][] A,
float[][] B)
A - Matrix.B - Matrix.public static void Fill(double[] A,
double number)
A - Vector.number - Number.public static double[] getColumn(double[][] A,
int n)
A - Matrix.n - Number of column.public static int[] getColumn(int[][] A,
int n)
A - Matrix.n - Number of column.public static float[] getColumn(float[][] A,
int n)
A - Matrix.n - Index of column.public static <T> T[] getColumn(T[][] A,
int n)
T - Type.A - Matrix.n - Index of column.public static double[] getColumns(double[] A,
int[] indexes)
public static int[] getColumns(int[] A,
int[] indexes)
public static float[] getColumns(float[] A,
int[] indexes)
public static <T> T[] getColumns(T[] A,
int[] indexes)
public static double[] getColumns(double[] A,
int startIndex,
int endIndex)
A - Vector.startIndex - Start index.endIndex - End index.public static int[] getColumns(int[] A,
int startIndex,
int endIndex)
A - Vector.startIndex - Start index.endIndex - End index.public static float[] getColumns(float[] A,
int startIndex,
int endIndex)
A - Vector.startIndex - Start index.endIndex - End index.public static <T> T[] getColumns(T[] A,
int startIndex,
int endIndex)
A - Vector.startIndex - Start index.endIndex - End index.public static double[][] getColumns(double[][] A,
int[] indexes)
A - Matrix.indexes - Indexes.public static int[][] getColumns(int[][] A,
int[] indexes)
A - Matrix.indexes - Indexes.public static float[][] getColumns(float[][] A,
int[] indexes)
A - Matrix.indexes - Indexes.public static <T> T[][] getColumns(T[][] A,
int[] indexes)
T - Type.A - Matrix.indexes - Indexes.public static double[] getRow(double[][] A,
int n)
A - Matrix.n - Number of row.public static int[] getRow(int[][] A,
int n)
A - Matrix.n - Number of row.public static float[] getRow(float[][] A,
int n)
A - Matrix.n - Number of row.public static double[][] getRows(double[][] A,
int[] indexes)
A - Matrix.indexes - Indexes.public static int[][] getRows(int[][] A,
int[] indexes)
A - Matrix.indexes - Indexes.public static float[][] getRows(float[][] A,
int[] indexes)
A - Matrix.indexes - Indexes.public static double[] getRows(double[] A,
int[] indexes)
A - Array.indexes - Indexes.public static int[] getRows(int[] A,
int[] indexes)
A - Array.indexes - Indexes.public static float[] getRows(float[] A,
int[] indexes)
A - Array.indexes - Indexes.public static <T> T[] getRows(T[] A,
int[] indexes)
T - User definied type.A - Array.indexes - Indexes.public static void Fill(int[] A,
int number)
A - Vector.number - Number.public static void Fill(float[] A,
float number)
A - Vector.number - Number.public static void Fill(double[][] A,
double number)
A - Vector.number - Number.public static void Fill(int[][] A,
int number)
A - Vector.number - Number.public static void Fill(float[][] A,
float number)
A - Vector.number - Number.public static double[] Subtract(double[] A,
double[] B)
A - Vector.B - Vector.public static int[] Subtract(int[] A,
int[] B)
A - Vector.B - Vector.public static float[] Subtract(float[] A,
float[] B)
A - Vector.B - Vector.public static double[][] Subtract(double[][] A,
double[][] B)
A - Matrix.B - Matrix.public static int[][] Subtract(int[][] A,
int[][] B)
A - Matrix.B - Matrix.public static float[][] Subtract(float[][] A,
float[][] B)
A - Matrix.B - Matrix.public static void Subtract(double[] A,
double scalar)
A - Vector.scalar - Scalar value.public static void Subtract(int[] A,
int scalar)
A - Vector.scalar - Scalar value.public static void Subtract(float[] A,
float scalar)
A - Vector.scalar - Scalar value.public static double Sum(double[][] A)
A - Matrix.public static int Sum(int[][] A)
A - Matrix.public static float Sum(float[][] A)
A - Matrix.public static double SumAbs(double[][] A)
A - Matrix.public static int SumAbs(int[][] A)
A - Matrix.public static float SumAbs(float[][] A)
A - Matrix.public static void Subtract(double[][] A,
double scalar)
A - Vector.scalar - Scalar value.public static void Subtract(int[][] A,
int scalar)
A - Vector.scalar - Scalar value.public static void Subtract(float[][] A,
float scalar)
A - Vector.scalar - Scalar value.public static void SwapColumn(double[][] A,
int a,
int b)
A - Matrix.a - Origin index.b - Destiny index.public static void SwapColumn(int[][] A,
int a,
int b)
A - Matrix.a - Origin index.b - Destiny index.public static void SwapColumn(float[][] A,
int a,
int b)
A - Matrix.a - Origin index.b - Destiny index.public static void SwapRow(double[][] A,
int a,
int b)
A - Matrix.a - Origin index.b - Destiny index.public static void SwapRow(int[][] A,
int a,
int b)
A - Matrix.a - Origin index.b - Destiny index.public static void SwapRow(float[][] A,
int a,
int b)
A - Matrix.a - Origin index.b - Destiny index.public static double[] Multiply(double[] A,
double scalar)
A - Vector.scalar - Scalar.public static int[] Multiply(int[] A,
int scalar)
A - Vector.scalar - Scalar.public static float[] Multiply(float[] A,
float scalar)
A - Vector.scalar - Scalar.public static double[][] Multiply(double[][] A,
double[][] B)
A - Matrix.B - Matrix.public static int[][] Multiply(int[][] A,
int[][] B)
A - Matrix.B - Matrix.public static double[] Multiply(double[] A,
double[][] B)
A - Vector.B - Matrix.public static int[] Multiply(int[] A,
int[][] B)
A - Vector.B - Matrix.public static float[] Multiply(float[] A,
float[][] B)
A - Vector.B - Matrix.public static float[][] Multiply(float[][] A,
float[][] B)
A - Matrix.B - Matrix.public static double[][] Multiply(double[][] A,
double value)
A - Matrix.value - Value.public static float[][] Multiply(float[][] A,
float value)
A - Matrix.value - Value.public static int[][] Multiply(int[][] A,
int value)
A - Matrix.value - Value.public static double[][] MultiplyByDiagonal(double[][] A,
double[] B)
public static double[][] MultiplyByTranspose(double[][] A)
A - Matrix.public static int[][] MultiplyByTranspose(int[][] A)
A - Matrix.public static float[][] MultiplyByTranspose(float[][] A)
A - Matrix.public static double[][] MultiplyByTranspose(double[][] A,
double[][] B)
A - Matrix.B - Matrix to be transposed.public static int[][] MultiplyByTranspose(int[][] A,
int[][] B)
A - Matrix.B - Matrix to be transposed.public static float[][] MultiplyByTranspose(float[][] A,
float[][] B)
A - Matrix.B - Matrix to be transposed.public static double[] MultiplyByTranspose(double[][] A,
double[] B)
A - Matrix.B - Vector.public static int[] MultiplyByTranspose(int[][] A,
int[] B)
A - Matrix.B - Vector.public static float[] MultiplyByTranspose(float[][] A,
float[] B)
A - Matrix.B - Vector.public static double Norm1(double[][] A)
A - Matrix.public static int Norm1(int[][] A)
A - Matrix.public static float Norm1(float[][] A)
A - Matrix.public static double Norm2(double[] A)
public static double Norm2(double[][] A)
A - Matrix.public static double NormF(double[][] A)
A - Matrix.public static double NormF(int[][] A)
A - Matrix.public static float NormF(float[][] A)
A - Matrix.public static double NormP(double[] v,
int p)
v - Vector.p - P must be an integer greater than 1.public static double[][] OuterProduct(double[] u)
u - Coordinate vector.public static double[][] OuterProduct(double[] u,
double[] v)
u - Coordinate vector.v - Coordinate vector.public static int[][] OuterProduct(int[] u)
u - Coordinate vector.public static int[][] OuterProduct(int[] u,
int[] v)
u - Coordinate vector.v - Coordinate vector.public static float[][] OuterProduct(float[] u)
u - Coordinate vector.public static float[][] OuterProduct(float[] u,
float[] v)
u - Coordinate vector.v - Coordinate vector.public static double[][] PseudoInverse(double[][] A)
A - Matrix.public static double Trace(double[][] A)
A - Matrix NxN.public static int Trace(int[][] A)
A - Matrix NxN.public static float Trace(float[][] A)
A - Matrix NxN.public static double[][] Transpose(double[][] A)
A - Matrix.public static int[][] Transpose(int[][] A)
A - Matrix.public static float[][] Transpose(float[][] A)
A - Matrix.public static <E> E[][] Transpose(E[][] A)
E - Object.A - Matrix.public static double[][] Identity(int order)
order - Size.public static double[][] Identity(int m,
int n)
m - Number of rows.n - Number of columns.public static double[][] Inverse(double[][] A)
A - Matrix.public static double Max(double[][] matrix)
matrix - Array.public static double Max(double[] matrix)
matrix - Array.public static int Max(int[] matrix)
matrix - Array.public static float Max(float[] matrix)
matrix - Array.public static int Max(int[][] matrix)
matrix - Array.public static float Max(float[][] matrix)
matrix - Array.public static int MaxIndex(double[] matrix)
matrix - Array.public static IntPoint MaxIndex(double[][] matrix)
matrix - Array.public static int MaxIndex(int[] matrix)
matrix - Array.public static IntPoint MaxIndex(int[][] matrix)
matrix - Array.public static int MaxIndex(float[] matrix)
matrix - Array.public static IntPoint MaxIndex(float[][] matrix)
matrix - Array.public static double Mean(double[][] matrix)
matrix - Matrix.public static double Mean(int[][] matrix)
matrix - Matrix.public static float Mean(float[][] matrix)
matrix - Matrix.public static int[][] MemberwiseClone(int[][] data)
public static float[][] MemberwiseClone(float[][] data)
public static double[][] MemberwiseClone(double[][] data)
public static double Min(double[] matrix)
matrix - Array.public static double Min(double[][] matrix)
matrix - Array.public static int Min(int[] matrix)
matrix - Array.public static float Min(float[] matrix)
matrix - Array.public static int Min(int[][] matrix)
matrix - Array.public static float Min(float[][] matrix)
matrix - Array.public static int MinIndex(double[] matrix)
matrix - Matrix.public static IntPoint MinIndex(double[][] matrix)
matrix - Matrix.public static double[] MinMax(double[][] matrix)
matrix - Matrix.public static int[] MinMax(int[][] matrix)
matrix - Matrix.public static float[] MinMax(float[][] matrix)
matrix - Matrix.public static int MinIndex(int[] matrix)
matrix - Matrix.public static IntPoint MinIndex(int[][] matrix)
matrix - Matrix.public static int MinIndex(float[] matrix)
matrix - Matrix.public static IntPoint MinIndex(float[][] matrix)
matrix - Matrix.public static boolean isEqual(double[][] A,
double[][] B)
A - Matrix.B - Matrix.public static boolean isEqual(int[][] A,
int[][] B)
A - Matrix.B - Matrix.public static boolean isEqual(float[][] A,
float[][] B)
A - Matrix.B - Matrix.public static boolean isNonNegative(double[][] A)
A - Matrix.public static boolean isNonNegative(int[][] A)
A - Matrix.public static boolean isNonNegative(float[][] A)
A - Matrix.public static boolean isSquare(double[][] A)
A - Matrix.public static boolean isSquare(int[][] A)
A - Matrix.public static boolean isSquare(float[][] A)
A - Matrix.public static boolean isSymmetric(double[][] A)
A - Matrix.public static boolean isSymmetric(int[][] A)
A - Matrix.public static boolean isSymmetric(float[][] A)
A - Matrix.public static boolean isZero(int[] A)
A - Vector.public static boolean isZero(float[] A)
A - Vector.public static boolean isZero(double[] A)
A - Vector.public static boolean isZero(int[][] A)
A - Matrix.public static boolean isZero(float[][] A)
A - Matrix.public static boolean isZero(double[][] A)
A - Matrix.public static int Rank(double[][] A)
A - matrix.public static int Rank(int[][] A)
A - Matrix.public static int Rank(float[][] A)
A - Matrix.public static int[][] RemoveColumns(int[][] A,
int[] index)
A - Matrix.index - Indexes.public static double[][] RemoveColumn(double[][] A,
int index)
A - Matrix.index - Index.public static int[][] RemoveColumn(int[][] A,
int index)
A - Matrix.index - Index.public static float[][] RemoveColumn(float[][] A,
int index)
A - Matrix.index - Index.public static double[][] RemoveColumns(double[][] A,
int[] index)
A - Matrix.index - Indexes.public static float[][] RemoveColumns(float[][] A,
int[] index)
A - Matrix.index - Indexes.public static double[] RemoveColumn(double[] A,
int index)
A - Vector.index - Index.public static int[] RemoveColumn(int[] A,
int index)
A - Vector.index - Index.public static float[] RemoveColumn(float[] A,
int index)
A - Vector.index - Index.public static <T> T[] RemoveColumn(T[] A,
int index)
T - Type.A - Vector.index - Index.public static double[] RemoveColumns(double[] A,
int[] index)
A - Vector.index - Array of index.public static int[] RemoveColumns(int[] A,
int[] index)
A - Vector.index - Array of index.public static float[] RemoveColumns(float[] A,
int[] index)
A - Vector.index - Array of index.public static <T> T[] RemoveColumns(T[] A,
int[] index)
T - Type.A - Vector.index - Array of index.public static double[][] RemoveRow(double[][] A,
int index)
A - Matrix.index - Index.public static int[][] RemoveRow(int[][] A,
int index)
A - Matrix.index - Index.public static float[][] RemoveRow(float[][] A,
int index)
A - Matrix.index - Index.public static <T> T[][] RemoveRow(T[][] A,
int index)
A - Matrix.index - Index.public static int[][] RemoveRows(int[][] A,
int[] index)
A - Matrix.index - Indexes.public static double[][] RemoveRows(double[][] A,
int[] index)
A - Matrix.index - Indexes.public static float[][] RemoveRows(float[][] A,
int[] index)
A - Matrix.index - Indexes.public static double[][] Reshape(double[] vector,
int m,
int n)
vector - Vector.m - Size of rows.n - Size of cols.public static int[][] Reshape(int[] vector,
int m,
int n)
vector - Vector.m - Size of rows.n - Size of cols.public static float[][] Reshape(float[] vector,
int m,
int n)
vector - Vector.m - Size of rows.n - Size of cols.public static double[] Reshape(double[][] A)
A - Matrix.public static int[] Reshape(int[][] A)
A - Matrix.public static float[] Reshape(float[][] A)
A - Matrix.public static double[][] SubMatrix(double[][] data,
int rows,
int cols)
public static int[] SubMatrix(int[] data,
int first)
public static double[] SubMatrix(double[] data,
int first)
public static int[] Submatrix(int[] data,
int startRow,
int endRow)
public static double[] Submatrix(double[] data,
int startRow,
int endRow)
public static double[][] Submatrix(double[][] data,
int startRow,
int endRow,
int startColumn,
int endColumn)
data - Original data.startRow - Start row.endRow - End row.startColumn - Start Column.endColumn - End Column.public static int[][] Submatrix(int[][] data,
int startRow,
int endRow,
int startColumn,
int endColumn)
data - Original data.startRow - Start row.endRow - End row.startColumn - Start Column.endColumn - End Column.public static float[][] Submatrix(float[][] data,
int startRow,
int endRow,
int startColumn,
int endColumn)
data - Original data.startRow - Start row.endRow - End row.startColumn - Start Column.endColumn - End Column.public static double[][] Submatrix(double[][] data,
int startRow,
int endRow,
int[] columnIndexes)
data - Original data.startRow - Start row.endRow - End row.columnIndexes - Column indexes.public static int[][] Submatrix(int[][] data,
int startRow,
int endRow,
int[] columnIndexes)
data - Original data.startRow - Start row.endRow - End row.columnIndexes - Column indexes.public static float[][] Submatrix(float[][] data,
int startRow,
int endRow,
int[] columnIndexes)
data - Original data.startRow - Start row.endRow - End row.columnIndexes - Column indexes.public static int[][] Submatrix(int[][] data,
int[] rowIndexes)
data - Original matrix.rowIndexes - Row indexes.public static double[][] Submatrix(double[][] data,
int[] rowIndexes)
data - Original matrix.rowIndexes - Row indexes.public static int[][] Submatrix(int[][] data,
int[] rowIndexes,
int startColumn,
int endColumn)
data - Original matrix.rowIndexes - Row indexes.startColumn - Initial column index.endColumn - Final column index.public static double[][] Submatrix(double[][] data,
int[] rowIndexes,
int startColumn,
int endColumn)
data - Original matrix.rowIndexes - Row indexes.startColumn - Initial column index.endColumn - Final column index.public static double[] toDoubleArray(int[][] A)
A - Matrix.public static double[] toDoubleArray(double[][] A)
A - Matrix.public static double[] toDoubleArray(float[][] A)
A - Matrix.public static double[][] toDoubleMatrix(java.util.List<double[]> list)
list - List of array.public static int[] toIntArray(int[][] A)
A - Matrix.public static int[] toIntArray(double[][] A)
A - Matrix.public static int[] toIntArray(float[][] A)
A - Matrix.public static int[][] toIntMatrix(java.util.List<int[]> list)
list - List of array.public static float[] toFloatArray(int[][] A)
A - Matrix.public static float[] toFloatArray(double[][] A)
A - Matrix.public static float[] toFloatArray(float[][] A)
A - Matrix.public static float[][] toFloatMatrix(java.util.List<float[]> list)
list - List of array.