src/syndp/utils/functions.py
def give_calculated_gradient_list(extended_vector:list, step=2):
    '''
    This function takes the extended vector as its input and calculates the gradient.
    It outputs the gradient for every point.
    step : step size to calculate the gradient. default : 2
    '''
    number_of_chunks = int(len(extended_vector) / 2)
    chunks = [(extended_vector[num*2],extended_vector[num*2+1]) for num in range(0,number_of_chunks)]
    return list(map(calculate_gradient,chunks))

    This function takes the extended vector as its input and calculates the gradient.
    It outputs the gradient for every point.
    step : step size to calculate the gradient. default : 2
    
This function takes the extended vector as its input and calculates the gradient.
It outputs the gradient for every point.
step : step size to calculate the gradient. default : 2
This function takes the extended vector as its input and calculates the gradient . It outputs the gradient for every point . step : step size to calculate the gradient . default : 2
def give_calculated_gradient_list(extended_vector:list, step=2):
    number_of_chunks = int(len(extended_vector) / 2)
    chunks = [(extended_vector[num*2],extended_vector[num*2+1]) for num in range(0,number_of_chunks)]
    return list(map(calculate_gradient,chunks))
def give_calculated_gradient_list ( extended_vector : list , step = 2 ) : number_of_chunks = int ( len ( extended_vector ) / 2 ) chunks = [ ( extended_vector [ num * 2 ] , extended_vector [ num * 2 + 1 ] ) for num in range ( 0 , number_of_chunks ) ] return list ( map ( calculate_gradient , chunks ) )
This function takes the extended vector as its input and calculates the gradient.
This function takes the extended vector as its input and calculates the gradient .
'''
    This function takes the extended vector as its input and calculates the gradient.
    It outputs the gradient for every point.
    step : step size to calculate the gradient. default : 2
    '''
extended_vector
list
step