Class CheckGeneratorKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean checkGenerator(Matrix Q, Boolean transient, Double prec) Checks if the matrix is a valid generator matrix: the matrix is a square matrix, the matrix has positive or zero off-diagonal elements, the diagonal of the matrix is negative, the rowsum of the matrix is 0.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • checkGenerator

         final static Boolean checkGenerator(Matrix Q, Boolean transient, Double prec)

        Checks if the matrix is a valid generator matrix: the matrix is a square matrix, the matrix has positive or zero off-diagonal elements, the diagonal of the matrix is negative, the rowsum of the matrix is 0.

        If the "transient" parameter is set to true, it checks if the real part of the maximum absolute eigenvalue is less than zero and the rowsum is equal or less than 0.

        Parameters:
        Q - The generator to check.
        transient - If true, the procedure checks if Q is a transient generator, otherwise it checks if it is a valid generator.
        prec - Entries with absolute value less than prec are considered to be zeros.
        Returns:

        The result of the check.