Class RandomMatrices_ZDRM


  • public class RandomMatrices_ZDRM
    extends java.lang.Object
    Contains a list of functions for creating random row complex matrices and vectors with different structures.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void fillHermitian​(org.ejml.data.ZMatrixRMaj A, double min, double max, java.util.Random rand)
      Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.
      static void fillUniform​(org.ejml.data.ZMatrixD1 mat, double min, double max, java.util.Random rand)
      Sets each element in the matrix to a value drawn from an uniform distribution from 'min' to 'max' inclusive.
      static void fillUniform​(org.ejml.data.ZMatrixRMaj mat, java.util.Random rand)
      Sets each element in the matrix to a value drawn from an uniform distribution from 0 to 1 inclusive.
      static org.ejml.data.ZMatrixRMaj hermitian​(int length, double min, double max, java.util.Random rand)
      Creates a random Hermitian matrix with elements from min to max value.
      static org.ejml.data.ZMatrixRMaj hermitianPosDef​(int width, java.util.Random rand)
      Creates a random symmetric positive definite matrix.
      static org.ejml.data.ZMatrixRMaj rectangle​(int numRow, int numCol, double min, double max, java.util.Random rand)
      Returns a matrix where all the elements are selected independently from a uniform distribution between 'min' and 'max' inclusive.
      static org.ejml.data.ZMatrixRMaj rectangle​(int numRow, int numCol, java.util.Random rand)
      Returns a matrix where all the elements are selected independently from a uniform distribution between -1 and 1 inclusive.
      • Methods inherited from class java.lang.Object

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

      • RandomMatrices_ZDRM

        public RandomMatrices_ZDRM()
    • Method Detail

      • rectangle

        public static org.ejml.data.ZMatrixRMaj rectangle​(int numRow,
                                                          int numCol,
                                                          java.util.Random rand)

        Returns a matrix where all the elements are selected independently from a uniform distribution between -1 and 1 inclusive.

        Parameters:
        numRow - Number of rows in the new matrix.
        numCol - Number of columns in the new matrix.
        rand - Random number generator used to fill the matrix.
        Returns:
        The randomly generated matrix.
      • rectangle

        public static org.ejml.data.ZMatrixRMaj rectangle​(int numRow,
                                                          int numCol,
                                                          double min,
                                                          double max,
                                                          java.util.Random rand)

        Returns a matrix where all the elements are selected independently from a uniform distribution between 'min' and 'max' inclusive.

        Parameters:
        numRow - Number of rows in the new matrix.
        numCol - Number of columns in the new matrix.
        min - The minimum value each element can be.
        max - The maximum value each element can be.
        rand - Random number generator used to fill the matrix.
        Returns:
        The randomly generated matrix.
      • fillUniform

        public static void fillUniform​(org.ejml.data.ZMatrixRMaj mat,
                                       java.util.Random rand)

        Sets each element in the matrix to a value drawn from an uniform distribution from 0 to 1 inclusive.

        Parameters:
        mat - The matrix who is to be randomized. Modified.
        rand - Random number generator used to fill the matrix.
      • fillUniform

        public static void fillUniform​(org.ejml.data.ZMatrixD1 mat,
                                       double min,
                                       double max,
                                       java.util.Random rand)

        Sets each element in the matrix to a value drawn from an uniform distribution from 'min' to 'max' inclusive.

        Parameters:
        min - The minimum value each element can be.
        max - The maximum value each element can be.
        mat - The matrix who is to be randomized. Modified.
        rand - Random number generator used to fill the matrix.
      • hermitianPosDef

        public static org.ejml.data.ZMatrixRMaj hermitianPosDef​(int width,
                                                                java.util.Random rand)
        Creates a random symmetric positive definite matrix.
        Parameters:
        width - The width of the square matrix it returns.
        rand - Random number generator used to make the matrix.
        Returns:
        The random symmetric positive definite matrix.
      • hermitian

        public static org.ejml.data.ZMatrixRMaj hermitian​(int length,
                                                          double min,
                                                          double max,
                                                          java.util.Random rand)
        Creates a random Hermitian matrix with elements from min to max value.
        Parameters:
        length - Width and height of the matrix.
        min - Minimum value an element can have.
        max - Maximum value an element can have.
        rand - Random number generator.
        Returns:
        A symmetric matrix.
      • fillHermitian

        public static void fillHermitian​(org.ejml.data.ZMatrixRMaj A,
                                         double min,
                                         double max,
                                         java.util.Random rand)
        Assigns the provided square matrix to be a random Hermitian matrix with elements from min to max value.
        Parameters:
        A - The matrix that is to be modified. Must be square. Modified.
        min - Minimum value an element can have.
        max - Maximum value an element can have.
        rand - Random number generator.