Class Pow

    • Constructor Detail

      • Pow

        public Pow​(Matrix A,
                   int n,
                   double base)
        Construct the power matrix An so that
        An = basescale * B
        Parameters:
        A - a matrix
        n - a positive integer exponent
        base - the base to scale down the product to avoid overflow
      • Pow

        public Pow​(Matrix A,
                   int n)
        Construct the power matrix An so that
        An = (1e100)scale * B
        Parameters:
        A - a matrix
        n - a positive integer exponent
    • Method Detail

      • base

        public double base()
        Get the radix or base of the coefficient.
        Returns:
        the base
        See Also:
        Wikipedia: Radix
      • scale

        public int scale()
        Get the exponential of the coefficient.
        Returns:
        the exponential of the coefficient
      • B

        public ImmutableMatrix B()
        Get the double precision matrix.
        Returns:
        the double precision matrix