public class DComplexFactory1D extends PersistentObject
ComplexFactory1D F = ComplexFactory1D.dense; F.make(1000); F.random(3); ... |
Modifier and Type | Field and Description |
---|---|
static DComplexFactory1D |
dense
A factory producing dense matrices.
|
static DComplexFactory1D |
sparse
A factory producing sparse matrices.
|
Modifier and Type | Method and Description |
---|---|
DComplexMatrix1D |
append(DComplexMatrix1D A,
DComplexMatrix1D B)
C = A||B; Constructs a new matrix which is the concatenation of two other
matrices.
|
DComplexMatrix1D |
make(ArrayList<double[]> values)
Constructs a matrix from the values of the given list.
|
DComplexMatrix1D |
make(DComplexMatrix1D[] parts)
Constructs a matrix which is the concatenation of all given parts.
|
DComplexMatrix1D |
make(double[] values)
Constructs a matrix with the given cell values.
|
DComplexMatrix1D |
make(int size)
Constructs a matrix with the given shape, each cell initialized with
zero.
|
DComplexMatrix1D |
make(int size,
double[] initialValue)
Constructs a matrix with the given shape, each cell initialized with the
given value.
|
DComplexMatrix1D |
random(int size)
Constructs a matrix with uniformly distributed values in (0,1)
(exclusive).
|
DComplexMatrix1D |
repeat(DComplexMatrix1D A,
int repeat)
C = A||A||..||A; Constructs a new matrix which is concatenated
repeat times.
|
DComplexMatrix1D |
sample(int size,
double[] value,
double nonZeroFraction)
Constructs a randomly sampled matrix with the given shape.
|
ArrayList<double[]> |
toList(DComplexMatrix1D values)
Constructs a list from the given matrix.
|
clone
public static final DComplexFactory1D dense
public static final DComplexFactory1D sparse
public DComplexMatrix1D append(DComplexMatrix1D A, DComplexMatrix1D B)
public DComplexMatrix1D make(double[] values)
values
- The values to be filled into the new matrix.public DComplexMatrix1D make(DComplexMatrix1D[] parts)
public DComplexMatrix1D make(int size)
public DComplexMatrix1D make(int size, double[] initialValue)
public DComplexMatrix1D make(ArrayList<double[]> values)
values
- The values to be filled into the new matrix.public DComplexMatrix1D random(int size)
public DComplexMatrix1D repeat(DComplexMatrix1D A, int repeat)
public DComplexMatrix1D sample(int size, double[] value, double nonZeroFraction)
IllegalArgumentException
- if nonZeroFraction < 0 || nonZeroFraction > 1.DoubleRandomSampler
public ArrayList<double[]> toList(DComplexMatrix1D values)
values
- The values to be filled into the new list.Jump to the Parallel Colt Homepage