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