|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ujmp.core.MatrixFactory
public abstract class MatrixFactory
This class provides a factory for matrix generation. Use
Matrix.factory.dense(rows, columns)
or
Matrix.factory.sparse(rows, columns)
to create empty matrices.
Field Summary | |
---|---|
static int |
ALL
|
static int |
COLUMN
|
static EmptyMatrix |
EMPTYMATRIX
|
static int |
NONE
|
static int |
ROW
|
static int |
X
|
static int |
Y
|
static int |
Z
|
Constructor Summary | |
---|---|
MatrixFactory()
|
Method Summary | ||
---|---|---|
static Matrix |
availableProcessors()
|
|
static Matrix |
concat(int dimension,
Collection<Matrix> matrices)
|
|
static Matrix |
concat(int dimension,
Matrix... matrices)
|
|
static Matrix |
copyFromMatrix(Matrix matrix)
Deprecated. Please do not use this method anymore, it will be removed. use matrix.clone() instead |
|
static Matrix |
correlatedColumns(int rows,
int columns,
double correlationFactor)
|
|
static Matrix |
createVectorForClass(int classID,
int classCount)
|
|
static Matrix |
dense(long... size)
Deprecated. Please do not use this method anymore, it will be moved to DenseMatrix.factory.zeros |
|
static Matrix |
dense(ValueType valueType,
long... size)
|
|
static Matrix |
emptyMatrix()
|
|
static Matrix |
eye(long... size)
Deprecated. Please do not use this method anymore, it will be moved to DenseMatrix.factory.eye |
|
static Matrix |
eye(ValueType valueType,
long... size)
|
|
static Matrix |
fibonacci(int count)
|
|
static Matrix |
fill(Object value,
long... size)
|
|
static MatrixMapper |
getMatrixMapper()
|
|
static Matrix |
horCat(Collection<Matrix> matrices)
|
|
static Matrix |
horCat(Matrix... matrices)
|
|
static Matrix |
horCat(Matrix column,
long columnCount)
|
|
static Matrix |
importFromArray(boolean[]... values)
|
|
static Matrix |
importFromArray(byte[]... values)
|
|
static Matrix |
importFromArray(char[]... values)
|
|
static Matrix |
importFromArray(Date[]... values)
|
|
static Matrix |
importFromArray(double[]... values)
|
|
static Matrix |
importFromArray(float[]... values)
|
|
static Matrix |
importFromArray(int[]... values)
|
|
static Matrix |
importFromArray(long[]... values)
|
|
static Matrix |
importFromArray(Object[]... values)
|
|
static Matrix |
importFromArray(short[]... values)
|
|
static Matrix |
importFromArray(String[]... values)
|
|
static Matrix |
importFromClipboard(FileFormat format,
Object... parameters)
|
|
static Matrix |
importFromFile(FileFormat format,
File file,
Object... parameters)
|
|
static Matrix |
importFromFile(FileFormat format,
String file,
Object... parameters)
|
|
static Matrix |
importFromFile(File file,
Object... parameters)
|
|
static Matrix |
importFromFile(String filename,
Object... parameters)
|
|
static ObjectMatrix2D |
importFromJDBC(DB type,
String host,
int port,
String database,
String sqlStatement,
String username,
String password)
|
|
static ObjectMatrix2D |
importFromJDBC(String url,
String sqlStatement,
String username,
String password)
|
|
static Matrix |
importFromStream(FileFormat format,
InputStream stream,
Object... parameters)
|
|
static Matrix |
importFromString(FileFormat format,
String string,
Object... parameters)
|
|
static Matrix |
importFromURL(FileFormat format,
String url,
Object... parameters)
|
|
static Matrix |
importFromURL(FileFormat format,
URL url,
Object... parameters)
|
|
static Matrix |
like(Matrix matrix)
|
|
static Matrix |
like(Matrix matrix,
long... size)
|
|
static DenseBooleanMatrix2D |
linkToArray(boolean... values)
|
|
static DenseBooleanMatrix2D |
linkToArray(boolean[]... values)
|
|
static DenseByteMatrix2D |
linkToArray(byte... values)
|
|
static DenseByteMatrix2D |
linkToArray(byte[]... values)
|
|
static DenseCharMatrix2D |
linkToArray(char... values)
|
|
static DenseCharMatrix2D |
linkToArray(char[]... values)
|
|
static DenseDateMatrix2D |
linkToArray(Date... values)
|
|
static DenseDateMatrix2D |
linkToArray(Date[]... values)
|
|
static DenseDoubleMatrix2D |
linkToArray(double... values)
|
|
static DenseDoubleMatrix2D |
linkToArray(double[]... values)
|
|
static DenseFloatMatrix2D |
linkToArray(float... values)
|
|
static DenseFloatMatrix2D |
linkToArray(float[]... values)
|
|
static DenseIntMatrix2D |
linkToArray(int... values)
|
|
static DenseIntMatrix2D |
linkToArray(int[]... values)
|
|
static DenseLongMatrix2D |
linkToArray(long... values)
|
|
static DenseLongMatrix2D |
linkToArray(long[]... values)
|
|
static DenseObjectMatrix2D |
linkToArray(Object... values)
|
|
static DenseObjectMatrix2D |
linkToArray(Object[]... values)
|
|
static DenseShortMatrix2D |
linkToArray(short... values)
|
|
static DenseShortMatrix2D |
linkToArray(short[]... values)
|
|
static DenseStringMatrix2D |
linkToArray(String... values)
|
|
static DenseStringMatrix2D |
linkToArray(String[]... values)
|
|
static DenseDoubleMatrix |
linkToBinaryFile(String filename,
long... size)
|
|
static Matrix |
linkToCollection(Collection<?> list)
|
|
static FileListMatrix |
linkToDir(String dir)
|
|
static Matrix |
linkToFile(FileFormat format,
File file,
Object... parameters)
|
|
static ObjectMatrix2D |
linkToJDBC(DB type,
String host,
int port,
String database,
String sqlStatement,
String username,
String password)
|
|
static ObjectMatrix2D |
linkToJDBC(String url,
String sqlStatement,
String username,
String password)
|
|
static Matrix |
linkToMap(Map<?,?> map)
|
|
static DenseBooleanMatrix2D |
linkToValue(boolean value)
|
|
static DenseByteMatrix2D |
linkToValue(byte value)
|
|
static DenseCharMatrix2D |
linkToValue(char value)
|
|
static DenseDateMatrix2D |
linkToValue(Date value)
|
|
static DenseDoubleMatrix2D |
linkToValue(double value)
|
|
static DenseIntMatrix2D |
linkToValue(int value)
|
|
static DenseLongMatrix2D |
linkToValue(long value)
|
|
static Matrix |
linkToValue(Object value)
|
|
static DenseShortMatrix2D |
linkToValue(short value)
|
|
static DenseStringMatrix2D |
linkToValue(String value)
|
|
static Matrix |
magic(int size)
|
|
static Matrix |
memoryUsage()
|
|
static Matrix |
ones(long... size)
Deprecated. Please do not use this method anymore, it will be moved to DenseMatrix.factory.ones |
|
static Matrix |
ones(ValueType valueType,
long... size)
|
|
static Matrix |
pascal(long... size)
|
|
static Matrix |
rand(long... size)
Deprecated. Please do not use this method anymore, it will be moved to DenseMatrix.factory.rand |
|
static Matrix |
rand(ValueType valueType,
long... size)
|
|
static Matrix |
randn(long... size)
Deprecated. Please do not use this method anymore, it will be moved to DenseMatrix.factory.rand |
|
static Matrix |
randn(ValueType valueType,
long... size)
|
|
static Matrix |
randomSeed()
|
|
static Matrix |
range(double start,
double end)
|
|
static Matrix |
range(double start,
double end,
double stepSize)
|
|
static Matrix |
repmat(Matrix matrix,
long... count)
|
|
static Matrix |
runningThreads()
|
|
static Matrix |
sequence(double start,
double end)
|
|
static Matrix |
sequence(double start,
double end,
double stepsize)
|
|
static void |
setMatrixMapper(MatrixMapper matrixMapper)
|
|
static Matrix |
sparse(long... size)
Deprecated. Please do not use this method anymore, it will be moved to SparseMatrix.factory |
|
static Matrix |
sparse(Matrix indices)
|
|
static Matrix |
sparse(ValueType valueType,
long... size)
|
|
static Matrix |
SUNSPOTDATASET()
|
|
static
|
synchronizedMatrix(GenericMatrix<T> matrix)
Wraps another Matrix so that all methods are executed synchronized. |
|
static Matrix |
systemEnvironment()
|
|
static Matrix |
systemProperties()
|
|
static Matrix |
systemTime()
|
|
static
|
vertCat(Collection<Matrix> matrices)
|
|
static
|
vertCat(Matrix... matrices)
|
|
static Matrix |
vertCat(Matrix row,
long rowCount)
|
|
static Matrix |
welcomeMatrix()
|
|
static Matrix |
zeros(long... size)
Deprecated. Please do not use this method anymore, it will be replaced by DenseMatrix.factory.zeros(long... size) |
|
static Matrix |
zeros(ValueType valueType,
long... size)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ROW
public static final int COLUMN
public static final int Y
public static final int X
public static final int Z
public static final int ALL
public static final int NONE
public static final EmptyMatrix EMPTYMATRIX
Constructor Detail |
---|
public MatrixFactory()
Method Detail |
---|
public static final Matrix systemTime()
public static final Matrix availableProcessors()
public static final Matrix memoryUsage()
public static final Matrix range(double start, double end, double stepSize)
public static final Matrix range(double start, double end)
public static final Matrix randomSeed()
public static final Matrix runningThreads()
public static final Matrix systemEnvironment()
public static final Matrix systemProperties()
public static final Matrix horCat(Matrix... matrices) throws MatrixException
MatrixException
public static final <A> Matrix vertCat(Matrix... matrices) throws MatrixException
MatrixException
public static final <A> Matrix vertCat(Collection<Matrix> matrices) throws MatrixException
MatrixException
public static final Matrix horCat(Collection<Matrix> matrices) throws MatrixException
MatrixException
public static final Matrix concat(int dimension, Matrix... matrices) throws MatrixException
MatrixException
public static final Matrix concat(int dimension, Collection<Matrix> matrices) throws MatrixException
MatrixException
public static final Matrix importFromArray(boolean[]... values)
public static final Matrix importFromArray(byte[]... values)
public static final Matrix importFromArray(char[]... values)
public static final Matrix importFromArray(Date[]... values)
public static final Matrix importFromArray(double[]... values)
public static final Matrix importFromArray(float[]... values)
public static final Matrix importFromArray(int[]... values)
public static final Matrix importFromArray(long[]... values)
public static final Matrix importFromArray(Object[]... values)
public static final Matrix importFromArray(short[]... values)
public static final Matrix importFromArray(String[]... values)
public static final DenseBooleanMatrix2D linkToArray(boolean[]... values)
public static final DenseBooleanMatrix2D linkToArray(boolean... values)
public static final DenseByteMatrix2D linkToArray(byte[]... values)
public static final DenseByteMatrix2D linkToArray(byte... values)
public static final DenseCharMatrix2D linkToArray(char[]... values)
public static final DenseCharMatrix2D linkToArray(char... values)
public static final DenseDateMatrix2D linkToArray(Date[]... values)
public static final DenseDateMatrix2D linkToArray(Date... values)
public static final DenseDoubleMatrix2D linkToArray(double[]... values)
public static final DenseDoubleMatrix2D linkToArray(double... values)
public static final DenseFloatMatrix2D linkToArray(float[]... values)
public static final DenseFloatMatrix2D linkToArray(float... values)
public static final DenseIntMatrix2D linkToArray(int[]... values)
public static final DenseIntMatrix2D linkToArray(int... values)
public static final DenseLongMatrix2D linkToArray(long[]... values)
public static final DenseLongMatrix2D linkToArray(long... values)
public static final DenseObjectMatrix2D linkToArray(Object[]... values)
public static final DenseObjectMatrix2D linkToArray(Object... values)
public static final DenseShortMatrix2D linkToArray(short[]... values)
public static final DenseShortMatrix2D linkToArray(short... values)
public static final DenseStringMatrix2D linkToArray(String[]... values)
public static final DenseStringMatrix2D linkToArray(String... values)
public static final Matrix copyFromMatrix(Matrix matrix) throws MatrixException
matrix.clone()
instead
MatrixException
public static final Matrix randn(long... size) throws MatrixException
DenseMatrix.factory.rand
MatrixException
public static final Matrix randn(ValueType valueType, long... size) throws MatrixException
MatrixException
public static final Matrix rand(long... size) throws MatrixException
DenseMatrix.factory.rand
MatrixException
public static final Matrix rand(ValueType valueType, long... size) throws MatrixException
MatrixException
public static final Matrix correlatedColumns(int rows, int columns, double correlationFactor) throws MatrixException
MatrixException
public static final DenseDoubleMatrix2D linkToValue(double value)
public static final DenseIntMatrix2D linkToValue(int value)
public static final DenseCharMatrix2D linkToValue(char value)
public static final DenseDateMatrix2D linkToValue(Date value)
public static final DenseBooleanMatrix2D linkToValue(boolean value)
public static final DenseByteMatrix2D linkToValue(byte value)
public static final DenseShortMatrix2D linkToValue(short value)
public static final DenseStringMatrix2D linkToValue(String value)
public static final DenseLongMatrix2D linkToValue(long value)
public static final Matrix linkToValue(Object value)
public static Matrix zeros(ValueType valueType, long... size) throws MatrixException
MatrixException
public static Matrix dense(ValueType valueType, long... size) throws MatrixException
MatrixException
public static Matrix ones(long... size) throws MatrixException
DenseMatrix.factory.ones
MatrixException
public static Matrix fill(Object value, long... size) throws MatrixException
MatrixException
public static Matrix ones(ValueType valueType, long... size) throws MatrixException
MatrixException
public static Matrix eye(long... size) throws MatrixException
DenseMatrix.factory.eye
MatrixException
public static Matrix magic(int size) throws MatrixException
MatrixException
public static Matrix pascal(long... size) throws MatrixException
MatrixException
public static Matrix fibonacci(int count) throws MatrixException
MatrixException
public static Matrix eye(ValueType valueType, long... size) throws MatrixException
MatrixException
public static final Matrix createVectorForClass(int classID, int classCount) throws MatrixException
MatrixException
public static final FileListMatrix linkToDir(String dir)
public static final Matrix linkToMap(Map<?,?> map)
public static final Matrix linkToCollection(Collection<?> list)
public static Matrix importFromStream(FileFormat format, InputStream stream, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static Matrix importFromURL(FileFormat format, URL url, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static Matrix importFromURL(FileFormat format, String url, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static Matrix importFromString(FileFormat format, String string, Object... parameters) throws MatrixException
MatrixException
public static final <T> SynchronizedGenericMatrix<T> synchronizedMatrix(GenericMatrix<T> matrix)
matrix
- the source Matrix
public static final DenseDoubleMatrix linkToBinaryFile(String filename, long... size) throws IOException
IOException
public static final ObjectMatrix2D linkToJDBC(String url, String sqlStatement, String username, String password)
public static final ObjectMatrix2D linkToJDBC(DB type, String host, int port, String database, String sqlStatement, String username, String password)
public static final ObjectMatrix2D importFromJDBC(String url, String sqlStatement, String username, String password)
public static final ObjectMatrix2D importFromJDBC(DB type, String host, int port, String database, String sqlStatement, String username, String password)
public static final Matrix sparse(long... size) throws MatrixException
SparseMatrix.factory
MatrixException
public static final Matrix sparse(Matrix indices)
public static final Matrix sparse(ValueType valueType, long... size) throws MatrixException
MatrixException
public static Matrix zeros(long... size) throws MatrixException
DenseMatrix.factory.zeros(long... size)
MatrixException
public static Matrix dense(long... size) throws MatrixException
DenseMatrix.factory.zeros
MatrixException
public static final Matrix linkToFile(FileFormat format, File file, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static final Matrix importFromFile(String filename, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static final Matrix importFromFile(File file, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static final Matrix importFromFile(FileFormat format, String file, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static final Matrix importFromFile(FileFormat format, File file, Object... parameters) throws MatrixException, IOException
MatrixException
IOException
public static final Matrix importFromClipboard(FileFormat format, Object... parameters) throws MatrixException
MatrixException
public static final Matrix SUNSPOTDATASET()
public static final Matrix emptyMatrix()
public static MatrixMapper getMatrixMapper()
public static void setMatrixMapper(MatrixMapper matrixMapper)
public static Matrix repmat(Matrix matrix, long... count)
public static Matrix welcomeMatrix()
public static Matrix like(Matrix matrix)
public static Matrix like(Matrix matrix, long... size)
public static Matrix vertCat(Matrix row, long rowCount)
public static Matrix horCat(Matrix column, long columnCount)
public static Matrix sequence(double start, double end)
public static Matrix sequence(double start, double end, double stepsize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |