public abstract class DenseMatrixFolder extends Object
| Constructor and Description |
|---|
DenseMatrixFolder() |
| Modifier and Type | Method and Description |
|---|---|
static de.jungblut.math.DoubleVector |
foldMatrices(de.jungblut.math.DoubleMatrix... matrices)
Folds the given matrices column-wise into a single vector.
|
static de.jungblut.math.DoubleVector |
foldMatrix(de.jungblut.math.DoubleMatrix mat)
Folds a single matrix into a single vector by rows.
|
static de.jungblut.math.DoubleMatrix[] |
unfoldMatrices(de.jungblut.math.DoubleVector vector,
int[][] sizeArray)
Unfolds a vector into matrices by the rules defined in the sizeArray.
|
static de.jungblut.math.DoubleMatrix |
unfoldMatrix(de.jungblut.math.DoubleVector vector,
int rows,
int cols)
Unfolds a single vector into a single matrix by rows.
|
public static de.jungblut.math.DoubleVector foldMatrices(de.jungblut.math.DoubleMatrix... matrices)
public static de.jungblut.math.DoubleMatrix[] unfoldMatrices(de.jungblut.math.DoubleVector vector,
int[][] sizeArray)
public static de.jungblut.math.DoubleMatrix unfoldMatrix(de.jungblut.math.DoubleVector vector,
int rows,
int cols)
vector - the vector to split.rows - the number of rows the target matrix needs to have.cols - the number of columns the target matrix needs to have.public static de.jungblut.math.DoubleVector foldMatrix(de.jungblut.math.DoubleMatrix mat)
Copyright © 2016. All rights reserved.