32 int i, j, k, m = A->
m, *ia = A->
ia, *ja = A->
ja, *iw, *jw, *id, *jd;
35 real diag_d, diag_w,
dist, epsilon = 0.01;
57 if (!(sm->
Lw) || !(sm->
Lwd)) {
68 for (i = 0; i < m; i++){
70 for (j = ia[i]; j < ia[i+1]; j++){
125 if (scaling != 1)
for (i = 0; i < B->
nz; i++) val[i] *= scaling;
133 real lambda0 = 10.1, M = 100, scaling = 1.;
134 int maxit = 300, samepoint =
TRUE, i, k, n = A->
m;
140 for (i = 0; i < dim*n; i++) {
145 for (i = 1; i < n; i++){
146 for (k = 0; k < dim; k++) {
158 fprintf(stderr,
"input coordinates to uniform_stress are the same, use random coordinates as initial input");
160 for (i = 0; i < dim*n; i++) x[i] = M*
drand();
void StressMajorizationSmoother_delete(StressMajorizationSmoother sm)
SparseMatrix SparseMatrix_new(int m, int n, int nz, int type, int format)
void(* data_deallocator)(void *)
int SparseMatrix_is_symmetric(SparseMatrix A, int test_pattern_symmetry_only)
SparseMatrix SparseMatrix_get_real_adjacency_matrix_symmetrized(SparseMatrix A)
real StressMajorizationSmoother_smooth(StressMajorizationSmoother sm, int dim, real *x, int maxit_sm, real tol)
SparseMatrix SparseMatrix_symmetrize(SparseMatrix A, int pattern_symmetric_only)
void SparseMatrix_delete(SparseMatrix A)
if(aagss+aagstacksize-1<=aagssp)
double dist(Site *s, Site *t)