|
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.tdcomplex.DComplexFactory1D
public class DComplexFactory1D
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 DComplexFactory1D |
dense
A factory producing dense matrices. |
static DComplexFactory1D |
sparse
A factory producing sparse matrices. |
Method Summary | |
---|---|
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. |
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 DComplexFactory1D dense
public static final DComplexFactory1D sparse
Method Detail |
---|
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.
|
Parallel Colt 0.9.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |