geodesic.curve_shorten.
compute_geodesic
(curve_obj, local_num_nodes, tol, metric, grad_metric, processes=1)[source]¶This function creates a new task to compute a geodesic midpoint and submits it to the worker pool.
Parameters: 


geodesic.curve_shorten.
compute_metric
(points, metric_function)[source]¶Takes a list of NumPy arrays describing points molecular configurations, evaluates the metric at each point and returns a list of metric values at those points.
Parameters: 


Returns:  A list of metric values at the corresponding points. 
Return type:  list 
geodesic.curve_shorten.
find_geodesic_midpoint
(start_point, end_point, number_of_inner_points, dimension, node_number, metric, grad_metric)[source]¶This function computes the local geodesic curve joining start_point to end_point using the LBFGS method.
Parameters: 


Returns:  The midpoint along the approximate local geodesic curve. 
Return type:  numpy.array 
geodesic.curve_shorten.
generate_points
(x, start_point, end_point, rotation_matrix, total_number_of_points, co_dimension)[source]¶This function computes the local geodesic curve joining start_point to end_point using the LBFGS method.
Parameters: 


Returns:  The midpoint along the approximate local geodesic curve. 
Return type:  numpy.array 
geodesic.curve_shorten.
get_rotation
(start_point, end_point, dimension)[source]¶Parameters: 


Returns:  The matrix representing the linear transformation from dimension dimensional space to the tangent space of the line joining start_point to end_point. 
Return type:  numpy.array 
geodesic.curve_shorten.
length
(x, start_point, end_point, rotation_matrix, total_number_of_points, co_dimension, metric)[source]¶This function computes the length of the local geodesic as a function of shifts from the line joining start_point to end_point. It also returns the gradient of this function for the LBFGS method.
Parameters: 


Returns:  The approximate length of the geodesic. numpy.array :

Return type:  float 
geodesic.curve_shorten.
norm
(x, matrix)[source]¶Computes the value of sqrt(<x, matrix*x>).
Parameters: 


Returns:  The value of sqrt(<x, matrix*x>). 
Return type:  float 
geodesic.curve_shorten.
norm_gradient
(x, matrix)[source]¶Computes the gradient of sqrt(<x, matrix*x>).
Parameters: 


Returns:  The gradient of sqrt(<x, matrix*x>). 
Return type:  numpy.array 