brotground/core.py
def nb_iterate_diverge(
    x,
    y,
    array,
    threshold: float,
    max_iterations: int,
    brot_equation: Callable,
    divergence_condition: Callable,
    c_initialization: Callable,
    z_initialization: Callable,
):
    """Numba optimized iterate diverge core logic

    Args:
        x ([np.ndarray]): X axis of the brot
        y ([np.ndarray]): Y axis of the brot
        array ([np.ndarray]): Array containing the brot state
        threshold (float): Threshold for divergence
        max_iterations (int): Maximum number of iterations
        brot_equation (Callable): numba optimized brot equation
        divergence_condition (Callable): numba optimized divergence condition
        c_initialization (Callable): numba optimized c initialization
        z_initialization (Callable): numba optimized z initialization

    Returns:
        [type]: [description]
    """
    for i in nb.prange(x.shape[0]):
        for j in range(y.shape[0]):
            z = z_initialization(x[i], y[j])
            c = c_initialization(x[i], y[j])
            n = 0

            while divergence_condition(z) and n <= max_iterations:
                z = brot_equation(z, c)
                n += 1

            array[j, i] = n
    return array
Numba optimized iterate diverge core logic

    Args:
        x ([np.ndarray]): X axis of the brot
        y ([np.ndarray]): Y axis of the brot
        array ([np.ndarray]): Array containing the brot state
        threshold (float): Threshold for divergence
        max_iterations (int): Maximum number of iterations
        brot_equation (Callable): numba optimized brot equation
        divergence_condition (Callable): numba optimized divergence condition
        c_initialization (Callable): numba optimized c initialization
        z_initialization (Callable): numba optimized z initialization

    Returns:
        [type]: [description]
    
Numba optimized iterate diverge core logic
Numba optimized iterate diverge core logic
def nb_iterate_diverge(
    x,
    y,
    array,
    threshold: float,
    max_iterations: int,
    brot_equation: Callable,
    divergence_condition: Callable,
    c_initialization: Callable,
    z_initialization: Callable,
):
    for i in nb.prange(x.shape[0]):
        for j in range(y.shape[0]):
            z = z_initialization(x[i], y[j])
            c = c_initialization(x[i], y[j])
            n = 0
            while divergence_condition(z) and n <= max_iterations:
                z = brot_equation(z, c)
                n += 1
            array[j, i] = n
    return array
def nb_iterate_diverge ( x , y , array , threshold : float , max_iterations : int , brot_equation : Callable , divergence_condition : Callable , c_initialization : Callable , z_initialization : Callable , ) : for i in nb . prange ( x . shape [ 0 ] ) : for j in range ( y . shape [ 0 ] ) : z = z_initialization ( x [ i ] , y [ j ] ) c = c_initialization ( x [ i ] , y [ j ] ) n = 0 while divergence_condition ( z ) and n <= max_iterations : z = brot_equation ( z , c ) n += 1 array [ j , i ] = n return array
Numba optimized iterate diverge core logic
Numba optimized iterate diverge core logic
"""Numba optimized iterate diverge core logic

    Args:
        x ([np.ndarray]): X axis of the brot
        y ([np.ndarray]): Y axis of the brot
        array ([np.ndarray]): Array containing the brot state
        threshold (float): Threshold for divergence
        max_iterations (int): Maximum number of iterations
        brot_equation (Callable): numba optimized brot equation
        divergence_condition (Callable): numba optimized divergence condition
        c_initialization (Callable): numba optimized c initialization
        z_initialization (Callable): numba optimized z initialization

    Returns:
        [type]: [description]
    """
None
[type]
x
X axis of the brot
X axis of the brot
y
Y axis of the brot
Y axis of the brot
array
Array containing the brot state
Array containing the brot state
threshold
float
Threshold for divergence
Threshold for divergence
max_iterations
int
Maximum number of iterations
Maximum number of iterations
brot_equation
Callable
numba optimized brot equation
numba optimized brot equation
divergence_condition
Callable
numba optimized divergence condition
numba optimized divergence condition
c_initialization
Callable
numba optimized c initialization
numba optimized c initialization
z_initialization
Callable
numba optimized z initialization
numba optimized z initialization