import { Matrix } from 'ml-matrix'; /** * Combinatorial Subspace Least Squares - subfunction for the FC-NNLS * Solves XtX*K = XtY for the variables in Pset * if XtX (or XtX(vars,vars)) is singular, performs the svd and find pseudo-inverse, otherwise (even if ill-conditioned) finds inverse with LU decomposition and solves the set of equations * it is consistent with matlab results for ill-conditioned matrices (at least consistent with test 'ill-conditioned square X rank 2, Y 3x1' in cssls.test) * @param options - @see {@link Cssls} * @param options.XtX * @param options.XtY * @param options.Pset * @param options.nColsX * @param options.nColsY */ export declare function cssls({ XtX, XtY, Pset, nColsX, nColsY }: Cssls): Matrix; interface Cssls { /** * XtX - Gram matrix */ XtX: Matrix; /** * XtY */ XtY: Matrix; /** * Pset - Subset of matrix K with positive values (indices) */ Pset: number[][] | null; /** * nColsX - number of columns of X */ nColsX: number; /** * nColsY - number of columns of Y */ nColsY: number; } export {}; //# sourceMappingURL=cssls.d.ts.map