[][src]Function osqp_sys::osqp_update_A

pub unsafe extern "C" fn osqp_update_A(
    work: *mut OSQPWorkspace,
    Ax_new: *const osqp_float,
    Ax_new_idx: *const osqp_int,
    A_new_n: osqp_int
) -> osqp_int

Update elements of matrix A without changing sparsity structure.

If Ax_new_idx is OSQP_NULL, Ax_new is assumed to be as long as A->x and the whole A->x is replaced.

@param work Workspace structure @param Ax_new Vector of new elements in A->x @param Ax_new_idx Index mapping new elements to positions in A->x @param A_new_n Number of new elements to be changed @return output flag: 0: OK 1: A_new_n > nnzA <0: error in the update