Package org.esa.snap.core.util.math
Class ColumnMajorMatrixFactory
- java.lang.Object
-
- org.esa.snap.core.util.math.ColumnMajorMatrixFactory
-
- All Implemented Interfaces:
MatrixFactory
public class ColumnMajorMatrixFactory extends Object implements MatrixFactory
Matrix factory implementation.
-
-
Constructor Summary
Constructors Constructor Description ColumnMajorMatrixFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]createMatrix(int m, int n, double[] values)Creates a matrix from a given array of values, assuming a column-major layout of the latter.
-
-
-
Method Detail
-
createMatrix
public double[][] createMatrix(int m, int n, double[] values)Creates a matrix from a given array of values, assuming a column-major layout of the latter.- Specified by:
createMatrixin interfaceMatrixFactory- Parameters:
m- the number of rows in the matrix being created.n- the number of columns in the matrix being created.values- the values.- Returns:
- the matrix created from the values array.
-
-