UNPKG

@graphty/layout

Version:

graph layout algorithms based on networkx

14 lines (13 loc) 422 B
/** * L-BFGS optimization utilities */ /** * Compute the search direction using L-BFGS approximation * * @param grad - Current gradient * @param sList - List of position differences (s_k) * @param yList - List of gradient differences (y_k) * @param m - Memory size * @returns Direction vector */ export declare function _lbfgsDirection(grad: number[], sList: number[][], yList: number[][], m: number): number[];