Class BigScalar

    • Constructor Detail

      • BigScalar

        public BigScalar()
      • BigScalar

        private BigScalar​(java.math.BigDecimal number)
    • Method Detail

      • isAbsolute

        public static boolean isAbsolute​(java.math.BigDecimal value)
      • isSmall

        public static boolean isSmall​(double comparedTo,
                                      java.math.BigDecimal value)
      • of

        public static BigScalar of​(java.math.BigDecimal value)
      • valueOf

        public static BigScalar valueOf​(java.lang.Comparable<?> number)
      • valueOf

        public static BigScalar valueOf​(double value)
      • compareTo

        public int compareTo​(java.math.BigDecimal reference)
        Specified by:
        compareTo in interface java.lang.Comparable<java.math.BigDecimal>
      • conjugate

        public BigScalar conjugate()
        Description copied from interface: VectorSpace

        This method will (most likely) be moved to some other interface in the future! Just have to figure out where it fits...

        The conjugate transpose of a matrix and/or the conjugate of a scalar/field like ComplexNumber or Quaternion.

        The conjugate transpose of a real matrix is simply its transpose.

        Specified by:
        conjugate in interface VectorSpace<Scalar<java.math.BigDecimal>,​java.math.BigDecimal>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • get

        public java.math.BigDecimal get()
        Specified by:
        get in interface AccessScalar<java.math.BigDecimal>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isAbsolute

        public boolean isAbsolute()
        Specified by:
        isAbsolute in interface Scalar<java.math.BigDecimal>
        Returns:
        true if this is equal to its own norm, modulus or absolute value (non-negative real part and no imaginary part); otherwise false.
        See Also:
        Scalar.isAbsolute()
      • isSmall

        public boolean isSmall​(double comparedTo)
        Specified by:
        isSmall in interface NormedVectorSpace<Scalar<java.math.BigDecimal>,​java.math.BigDecimal>
        Parameters:
        comparedTo - What to compare with
        Returns:
        true if this is small compared to the magnitude of the input reference value.
      • norm

        public double norm()
        Description copied from interface: NormedVectorSpace
        this == this.signum().multiply(this.norm())
        Specified by:
        norm in interface NormedVectorSpace<Scalar<java.math.BigDecimal>,​java.math.BigDecimal>
        Returns:
        The norm
      • toBigDecimal

        public java.math.BigDecimal toBigDecimal()
        Specified by:
        toBigDecimal in interface Scalar<java.math.BigDecimal>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(NumberContext context)
        Specified by:
        toString in interface Scalar<java.math.BigDecimal>