BigInteger Extensions BigInteger Extensions
BigInteger Extensions BigInteger Extensions
DocFX + Singulink = ♥

Search Results for

    Method GetCache

    GetCache(int, int)

    If there is an existing cache for the given basis then get it and increase its maximum size to meet the specified required max size, otherwise create a new cache with the given parameters.

    Declaration
    public static BigIntegerPowCache GetCache(int basis, int requiredMaxSize = 1024)
    Parameters
    Type Name Description
    int basis

    A value between 3 and 10 that specifies the basis of the exponent.

    int requiredMaxSize

    The required maximum size of the cache. The maximum cached exponent is one less than this size. Caches never have a smaller max size than 1024.

    Returns
    Type Description
    BigIntegerPowCache

    A cache for the given basis that meets or exceeds the required max size.

    © Singulink. All rights reserved.