gen_z_exactR: Sets up the call to the gen_z_exact() C language function...

Description Usage Arguments Value Author(s) Examples

Description

simulate_data_exact demonstrates the R / C language interface

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
simulate_data_exact(n,
		ncores,
		gpus,
		ts,
		p_grid,
		q_grid,
		theta1,
		theta2,
		theta3,
		dmetric,
		seed,
		globalveclen)

Arguments

n

Integer - number of locations in the incoming data (real mode) or generated data (test mode)

ncores

Integer - CPU threads

gpus

Integer - GPU threads

ts

Integer - tile size

p_grid

Integer - (p,q) 2-D block-cyclic distribution grid

q_grid

Integer - (p,q) 2-D block-cyclic distribution grid

theta1

Double - initial theta1 values to generate z

theta2

Double - initial theta2 values to generate z

theta3

Double - initial theta3 values to generate z

dmetric

Integer - "0:dm" or "1:gcd"

seed

Integer - initial seed

globalveclen

Integer - output vector length

Value

Returned value: One vector represents: x_out, y_out, and z_out.

globalvec

Double vector - locations x, locations y, observations z at (x,y)

Author(s)

Sameh Abdulah, Postdoctoral Fellow, Extreme Computing and Research Center, KAUST sameh.abdulah@kaust.edu.sa

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#
# inline call at R command line or in another R function:
# Provides function arguments for and calls the R exageostat__gen_zR() function.
#
#simulate_data_exact(n,
#               ncores,
#               gpus,
#               ts,
#               p_grid,
#		q_grid,
#		theta,
#		dmetric)

ecrc/exageostatR-dev documentation built on May 14, 2019, 3:06 a.m.