|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcern.colt.PersistentObject
cern.colt.matrix.tfcomplex.FComplexFactory1D
public class FComplexFactory1D
Factory for convenient construction of 1-d matrices holding complex cells. Use idioms like ComplexFactory1D.dense.make(1000) to construct dense matrices, ComplexFactory1D.sparse.make(1000) to construct sparse matrices. If the factory is used frequently it might be useful to streamline the notation. For example by aliasing:
ComplexFactory1D F = ComplexFactory1D.dense; F.make(1000); F.random(3); ... |
Field Summary | |
---|---|
static FComplexFactory1D |
dense
A factory producing dense matrices. |
static FComplexFactory1D |
sparse
A factory producing sparse matrices. |
Method Summary | |
---|---|
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. |
Methods inherited from class cern.colt.PersistentObject |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final FComplexFactory1D dense
public static final FComplexFactory1D sparse
Method Detail |
---|
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.
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |