YetAnotherCoupler 3.4.0
Loading...
Searching...
No Matches
interp_method_nnn.c File Reference
#include "config.h"
#include <string.h>
#include "interp_method_internal.h"
#include "interp_method_nnn.h"
#include "yac_lapack_interface.h"
#include "yac_mpi_internal.h"
Include dependency graph for interp_method_nnn.c:

Go to the source code of this file.

Data Structures

struct  interp_method_nnn
 
struct  interp_method_1nn
 
struct  interp_method_zero
 

Functions

static size_t do_search_nnn (struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)
 
static size_t do_search_1nn (struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)
 
static size_t do_search_zero (struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)
 
static void delete_nnn (struct interp_method *method)
 
static void compute_weights_avg (double tgt_coord[3], yac_coordinate_pointer src_coords, size_t const n, double *weights, double const dummy)
 
static void compute_weights_dist (double tgt_coord[3], yac_coordinate_pointer src_coords, size_t const n, double *weights, double const dummy)
 
static void compute_weights_gauss (double tgt_coord[3], yac_coordinate_pointer src_coords, size_t const n, double *weights, double const gauss_scale)
 
static void inverse (double *A, size_t n)
 
static void compute_weights_rbf (double tgt_coord[3], yac_coordinate_pointer src_coords, size_t const n, double *weights, double const rbf_scale)
 
static void interp_weights_add_zero (struct yac_interp_weights *weights, struct remote_points *tgts, struct remote_point src)
 
struct interp_methodyac_interp_method_nnn_new (struct yac_nnn_config config)
 

Variables

static struct interp_method_vtable interp_method_nnn_vtable
 
static struct interp_method_vtable interp_method_1nn_vtable
 
static struct interp_method_vtable interp_method_zero_vtable
 

Function Documentation

◆ compute_weights_avg()

static void compute_weights_avg ( double tgt_coord[3],
yac_coordinate_pointer src_coords,
size_t const n,
double * weights,
double const dummy )
static

Definition at line 66 of file interp_method_nnn.c.

Here is the caller graph for this function:

◆ compute_weights_dist()

static void compute_weights_dist ( double tgt_coord[3],
yac_coordinate_pointer src_coords,
size_t const n,
double * weights,
double const dummy )
static

Definition at line 78 of file interp_method_nnn.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_weights_gauss()

static void compute_weights_gauss ( double tgt_coord[3],
yac_coordinate_pointer src_coords,
size_t const n,
double * weights,
double const gauss_scale )
static

Definition at line 106 of file interp_method_nnn.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ compute_weights_rbf()

static void compute_weights_rbf ( double tgt_coord[3],
yac_coordinate_pointer src_coords,
size_t const n,
double * weights,
double const rbf_scale )
static

Definition at line 199 of file interp_method_nnn.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ delete_nnn()

static void delete_nnn ( struct interp_method * method)
static

Definition at line 584 of file interp_method_nnn.c.

◆ do_search_1nn()

static size_t do_search_1nn ( struct interp_method * method,
struct yac_interp_grid * interp_grid,
size_t * tgt_points,
size_t count,
struct yac_interp_weights * weights )
static

Definition at line 363 of file interp_method_nnn.c.

Here is the call graph for this function:

◆ do_search_nnn()

static size_t do_search_nnn ( struct interp_method * method,
struct yac_interp_grid * interp_grid,
size_t * tgt_points,
size_t count,
struct yac_interp_weights * weights )
static

Definition at line 262 of file interp_method_nnn.c.

Here is the call graph for this function:

◆ do_search_zero()

static size_t do_search_zero ( struct interp_method * method,
struct yac_interp_grid * interp_grid,
size_t * tgt_points,
size_t count,
struct yac_interp_weights * weights )
static

Definition at line 435 of file interp_method_nnn.c.

Here is the call graph for this function:

◆ interp_weights_add_zero()

static void interp_weights_add_zero ( struct yac_interp_weights * weights,
struct remote_points * tgts,
struct remote_point src )
static

Definition at line 415 of file interp_method_nnn.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inverse()

static void inverse ( double * A,
size_t n )
static

Definition at line 160 of file interp_method_nnn.c.

Here is the caller graph for this function:

◆ yac_interp_method_nnn_new()

struct interp_method * yac_interp_method_nnn_new ( struct yac_nnn_config config)
Examples
test_interp_method_nnn_parallel.c, test_interp_method_rbf_parallel.c, and test_interpolation_parallel5.c.

Definition at line 498 of file interp_method_nnn.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ interp_method_1nn_vtable

struct interp_method_vtable interp_method_1nn_vtable
static
Initial value:
= {
.do_search = do_search_1nn,
.delete = delete_nnn}
static void delete_nnn(struct interp_method *method)
static size_t do_search_1nn(struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)

Definition at line 35 of file interp_method_nnn.c.

◆ interp_method_nnn_vtable

struct interp_method_vtable interp_method_nnn_vtable
static
Initial value:
= {
.do_search = do_search_nnn,
.delete = delete_nnn}
static size_t do_search_nnn(struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)

Definition at line 32 of file interp_method_nnn.c.

◆ interp_method_zero_vtable

struct interp_method_vtable interp_method_zero_vtable
static
Initial value:
= {
.do_search = do_search_zero,
.delete = delete_nnn}
static size_t do_search_zero(struct interp_method *method, struct yac_interp_grid *interp_grid, size_t *tgt_points, size_t count, struct yac_interp_weights *weights)

Definition at line 38 of file interp_method_nnn.c.