public class MatrixFactory extends Object
| Constructor and Description |
|---|
MatrixFactory() |
| Modifier and Type | Method and Description |
|---|---|
static MatrixD |
constructWithCopy(double[][] A)
Construct a matrix from a copy of a 2-D array.
|
static MatrixD |
identity(int m,
int n)
Generate identity matrix
|
static MatrixD |
random(int m,
int n)
Generate matrix with random elements
|
public static MatrixD constructWithCopy(double[][] A)
A - Two-dimensional array of doubles.IllegalArgumentException - All rows must have the same lengthpublic static MatrixD identity(int m, int n)
m - Number of rows.n - Number of colums.public static MatrixD random(int m, int n)
m - Number of rows.n - Number of colums.Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.