}
if (Verbose) fprintf(stderr,"ratio (edges among discontiguous regions vs total edges)=%f\n",((double) nbad)/ia[n]);
- stress_model(dim, D, D, &x, FALSE, maxit, tol, &flag);
+ stress_model(dim, D, &x, FALSE, maxit, tol, &flag);
assert(!flag);
D = DD;
}
- stress_model(Ndim, A, D, &pos, TRUE, maxit, tol, &flag);
+ stress_model(Ndim, D, &pos, TRUE, maxit, tol, &flag);
}
break;
}
if (A != B) SparseMatrix_delete(A);
}
-void stress_model(int dim, SparseMatrix A, SparseMatrix D, double **x, int edge_len_weighted, int maxit_sm, double tol, int *flag){
+void stress_model(int dim, SparseMatrix D, double **x, int edge_len_weighted, int maxit_sm, double tol, int *flag){
stress_model_core(dim, D, x, edge_len_weighted, maxit_sm, tol, flag);
}
#pragma once
-void stress_model(int dim, SparseMatrix A, SparseMatrix D, double **x, int edge_len_weighted, int maxit, double tol, int *flag);
+void stress_model(int dim, SparseMatrix D, double **x, int edge_len_weighted, int maxit, double tol, int *flag);