|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.math.Matrices
public final class Matrices
| Constructor Summary | |
|---|---|
Matrices()
|
|
| Method Summary | |
|---|---|
static Matrix |
functionalMatrixView(int rows,
int columns,
IntIntFunction gf)
Shorter form of functionalMatrixView(int, int,
org.apache.mahout.math.function.IntIntFunction, boolean). |
static Matrix |
functionalMatrixView(int rows,
int columns,
IntIntFunction gf,
boolean denseLike)
Create a matrix view based on a function generator. |
static IntIntFunction |
gaussianGenerator(long seed)
Generator for a matrix populated by random Gauissian values (Gaussian matrix view) |
static Matrix |
gaussianView(int rows,
int columns,
long seed)
Random Gaussian matrix view. |
static Matrix |
symmetricUniformView(int rows,
int columns,
int seed)
Matrix view based on uniform [-1,1) distribution. |
static Matrix |
transposedView(Matrix m)
A read-only transposed view of a matrix argument. |
static IntIntFunction |
uniformGenerator(int seed)
Uniform [0,1) matrix generator function |
static IntIntFunction |
uniformSymmetricGenerator(int seed)
Uniform [-1,1) matrix generator function. |
static Matrix |
uniformView(int rows,
int columns,
int seed)
Matrix view based on uniform [0,1) distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Matrices()
| Method Detail |
|---|
public static final Matrix functionalMatrixView(int rows,
int columns,
IntIntFunction gf,
boolean denseLike)
IntIntFunction.apply(int, int) call.
rows - Number of rows in a viewcolumns - Number of columns in a view.gf - view generatordenseLike - type of matrix returne dby Matrix.like().
public static final Matrix functionalMatrixView(int rows,
int columns,
IntIntFunction gf)
functionalMatrixView(int, int,
org.apache.mahout.math.function.IntIntFunction, boolean).
public static final Matrix transposedView(Matrix m)
m - original matrix
public static final Matrix gaussianView(int rows,
int columns,
long seed)
seed - generator seed
public static final Matrix symmetricUniformView(int rows,
int columns,
int seed)
seed - generator seed
public static final Matrix uniformView(int rows,
int columns,
int seed)
seed - generator seedpublic static final IntIntFunction gaussianGenerator(long seed)
seed - The seed for the matrix.
IntIntFunction generating matrix view with normal valuespublic static final IntIntFunction uniformSymmetricGenerator(int seed)
seed -
IntIntFunction generatorpublic static final IntIntFunction uniformGenerator(int seed)
seed - generator seed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||