Documentation of 'edu.emory.mathcs.csparsej.tfloat.Scs_randperm' Java class
Scs_randperm
edu.emory.mathcs.csparsej.tfloat

Class Scs_randperm



  • public class Scs_randperm
    extends java.lang.Object
    Random permutation.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Scs_randperm() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static int[] cs_randperm(int n, int seed)
      Returns a random permutation vector, the identity perm, or p = n-1:-1:0.f seed = -1 means p = n-1:-1:0.f seed = 0 means p = identity.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Scs_randperm

        public Scs_randperm()
    • Method Detail

      • cs_randperm

        public static int[] cs_randperm(int n,
                                        int seed)
        Returns a random permutation vector, the identity perm, or p = n-1:-1:0.f seed = -1 means p = n-1:-1:0.f seed = 0 means p = identity. otherwise p = random permutation.
        Parameters:
        n - length of p
        seed - 0: natural, -1: reverse, random p oterwise
        Returns:
        p, null on error or for natural order

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.