NetSolve and PETSc
>> [mv, idx, jdx] = find(A);
>> [y, its, ierr] = netsolve('itmeth’, mv, x, idx, jdx, nrows, tol, maxit);
% case: Jacobi preconditioner
>> [y, its, ierr] = netsolve('itmeth', mv, x, idx, jdx, nrows, tol, maxit,
% case: incomplete ILU preconditioner
>> [y, its, ierr] = netsolve('itmeth', mv, x, idx, jdx, nrows, tol, maxit,
'-pc_type ilu -pc_ilu_levels 4');
Example of using packages remotely