Graphviz
2.41.20171026.1811
|
#include "general.h"
#include "SparseMatrix.h"
#include "spring_electrical.h"
#include "post_process.h"
#include "sparse_solve.h"
#include <time.h>
#include "uniform_stress.h"
Go to the source code of this file.
Functions | |
UniformStressSmoother | UniformStressSmoother_new (int dim, SparseMatrix A, real *x, real alpha, real M, int *flag) |
void | UniformStressSmoother_delete (UniformStressSmoother sm) |
real | UniformStressSmoother_smooth (UniformStressSmoother sm, int dim, real *x, int maxit_sm) |
SparseMatrix | get_distance_matrix (SparseMatrix A, real scaling) |
void | scale_to_box (real xmin, real ymin, real xmax, real ymax, int n, int dim, real *x) |
void | uniform_stress (int dim, SparseMatrix A, real *x, int *flag) |
SparseMatrix get_distance_matrix | ( | SparseMatrix | A, |
real | scaling | ||
) |
Definition at line 112 of file uniform_stress.c.
References SparseMatrix_struct::a, FALSE, if(), MATRIX_TYPE_REAL, SparseMatrix_struct::nz, real, SparseMatrix_get_real_adjacency_matrix_symmetrized(), SparseMatrix_symmetrize(), and SparseMatrix_struct::type.
Referenced by uniform_stress().
Definition at line 312 of file general.c.
Referenced by uniform_stress().
void uniform_stress | ( | int | dim, |
SparseMatrix | A, | ||
real * | x, | ||
int * | flag | ||
) |
Definition at line 131 of file uniform_stress.c.
References ABS, assert, drand(), FALSE, get_distance_matrix(), SparseMatrix_struct::m, MACHINEACC, NULL, real, scale_to_box(), SparseMatrix_delete(), SparseMatrix_is_symmetric(), TRUE, UniformStressSmoother_delete(), UniformStressSmoother_new(), and UniformStressSmoother_smooth().
void UniformStressSmoother_delete | ( | UniformStressSmoother | sm | ) |
Definition at line 100 of file uniform_stress.c.
References StressMajorizationSmoother_delete().
Referenced by uniform_stress().
UniformStressSmoother UniformStressSmoother_new | ( | int | dim, |
SparseMatrix | A, | ||
real * | x, | ||
real | alpha, | ||
real | M, | ||
int * | flag | ||
) |
Definition at line 30 of file uniform_stress.c.
References SparseMatrix_struct::a, ABS, alpha, assert, StressMajorizationSmoother_struct::data, StressMajorizationSmoother_struct::data_deallocator, dist(), FALSE, FORMAT_CSR, FREE, SparseMatrix_struct::ia, int, SparseMatrix_struct::ja, StressMajorizationSmoother_struct::lambda, StressMajorizationSmoother_struct::Lw, StressMajorizationSmoother_struct::Lwd, SparseMatrix_struct::m, MALLOC, MATRIX_TYPE_REAL, MAX, StressMajorizationSmoother_struct::maxit_cg, NULL, SparseMatrix_struct::nz, real, StressMajorizationSmoother_struct::scheme, SM_SCHEME_UNIFORM_STRESS, SparseMatrix_is_symmetric(), SparseMatrix_new(), StressMajorizationSmoother_delete(), and StressMajorizationSmoother_struct::tol_cg.
Referenced by uniform_stress().
real UniformStressSmoother_smooth | ( | UniformStressSmoother | sm, |
int | dim, | ||
real * | x, | ||
int | maxit_sm | ||
) |
Definition at line 106 of file uniform_stress.c.
References StressMajorizationSmoother_smooth().
Referenced by uniform_stress().