|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jblas.util.Permutations
public class Permutations
Constructor Summary | |
---|---|
Permutations()
|
Method Summary | |
---|---|
static DoubleMatrix |
permutationMatrixFromPivotIndices(int size,
int[] ipiv)
Create a permutation matrix from a LAPACK-style 'ipiv' vector. |
static int[] |
randomPermutation(int size)
Create a random permutation of the numbers 0, ..., size - 1. |
static int[] |
randomSubset(int k,
int n)
Get a random sample of k out of n elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Permutations()
Method Detail |
---|
public static int[] randomPermutation(int size)
public static int[] randomSubset(int k, int n)
public static DoubleMatrix permutationMatrixFromPivotIndices(int size, int[] ipiv)
ipiv
- row i was interchanged with row ipiv[i]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |