Enum Precision

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Precision>

    public enum Precision
    extends java.lang.Enum<Precision>
    Precision describes supported precisions of floating-point numbers.
    • Enum Constant Detail

      • FLOAT16

        public static final Precision FLOAT16
      • FLOAT32

        public static final Precision FLOAT32
      • FLOAT64

        public static final Precision FLOAT64
      • FLOAT80

        public static final Precision FLOAT80
      • FLOAT128

        public static final Precision FLOAT128
    • Method Detail

      • values

        public static Precision[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Precision c : Precision.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Precision valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getFractionSize

        public final int getFractionSize()
      • getExponentSize

        public final int getExponentSize()
      • getSize

        public final int getSize()
      • getText

        public final java.lang.String getText()
      • getOperations

        public abstract ru.ispras.microtesk.model.data.floatx.Operations getOperations()
      • find

        public static Precision find​(int fractionSize,
                                     int exponentSize)