vSMC  v3.0.0
Scalable Monte Carlo
Functions
core.h File Reference
#include <vsmc/internal/common.h>

Go to the source code of this file.

Functions

double * state_matrix_row_data (vsmc_state_matrix state_matrix, size_t id)
 vsmc::StateMatrix::row_data More...
 
void vsm_state_matrix_assign (vsmc_state_matrix state_matrix, vsmc_state_matrix other)
 vsmc::StateMatrix::operator= More...
 
void vsmc_monitor_assign (vsmc_monitor monitor, vsmc_monitor other)
 vsmc::Monitor::operator= More...
 
void vsmc_monitor_clear (vsmc_monitor monitor)
 vsmc::Monitor::clear More...
 
void vsmc_monitor_compute (vsmc_monitor monitor, size_t iter, vsmc_particle particle, vSMCMonitorStage stage)
 vsmc::Monitor::operator() More...
 
void vsmc_monitor_delete (vsmc_monitor *monitor_ptr)
 vsmc::Monitor::~Monitor More...
 
size_t vsmc_monitor_dim (vsmc_monitor monitor)
 vsmc::Monitor::dim More...
 
int vsmc_monitor_empty (vsmc_monitor monitor)
 vsmc::Monitor::empty More...
 
void vsmc_monitor_eval (vsmc_monitor monitor, vsmc_monitor_eval_type new_eval, int record_only, vSMCMonitorStage stage)
 vsmc::Monitor::eval More...
 
size_t vsmc_monitor_get_name (vsmc_monitor monitor, size_t id, char *name)
 vsmc::Monitor::name More...
 
size_t vsmc_monitor_index (vsmc_monitor monitor, size_t iter)
 vsmc::Monitor::index More...
 
size_t vsmc_monitor_iter_size (vsmc_monitor monitor)
 vsmc::Monitor::iter_size More...
 
vsmc_monitor vsmc_monitor_new (size_t dim, vsmc_monitor_eval_type eval, int record_only, vSMCMonitorStage stage)
 vsmc::Monitor::Monitor More...
 
void vsmc_monitor_read_index (vsmc_monitor monitor, size_t *fist)
 vsmc::Monitor::read_index More...
 
void vsmc_monitor_read_record (vsmc_monitor monitor, size_t id, double *first)
 vsmc::Monitor::read_record More...
 
void vsmc_monitor_read_record_matrix (vsmc_monitor monitor, vSMCMatrixLayout layout, double *first)
 vsmc::Monitor::read_record_matrix More...
 
double vsmc_monitor_record (vsmc_monitor monitor, size_t id, size_t iter)
 vsmc::Monitor::record More...
 
int vsmc_monitor_record_only (vsmc_monitor monitor)
 vsmc::Monitor::record_only More...
 
void vsmc_monitor_reserve (vsmc_monitor monitor, size_t num)
 vsmc::Monitor::reserve More...
 
void vsmc_monitor_set_name (vsmc_monitor monitor, size_t id, const char *name)
 vsmc::Monitor::name More...
 
vSMCMonitorStage vsmc_monitor_stage (vsmc_monitor monitor)
 vsmc::Monitor::stage More...
 
void vsmc_particle_assign (vsmc_particle particle, vsmc_particle other)
 vsmc::Particle::operator= More...
 
vsmc_particle vsmc_particle_clone (vsmc_particle particle)
 vsmc::Particle::clone More...
 
void vsmc_particle_delete (vsmc_particle *particle_ptr)
 vsmc::Particle::~Particle More...
 
vsmc_particle vsmc_particle_new (size_t n, size_t dim)
 vsmc::Particle::Particle More...
 
void vsmc_particle_resize_by_index (vsmc_particle particle, size_t n, const size_t *index)
 vsmc::Particle::resize_by_index More...
 
void vsmc_particle_resize_by_resample (vsmc_particle particle, size_t n, vSMCResampleScheme scheme)
 vsmc::Particle::resize_by_resample More...
 
void vsmc_particle_resize_by_uniform (vsmc_particle particle, size_t n)
 vsmc::Particle::resize_by_uniform More...
 
vsmc_rng vsmc_particle_rng (vsmc_particle particle, size_t id)
 vsmc::Particle::rng More...
 
size_t vsmc_particle_size (vsmc_particle particle)
 vsmc::Particle::size More...
 
vsmc_single_particle vsmc_particle_sp (vsmc_particle particle, size_t id)
 vsmc::Particle::sp More...
 
vsmc_state_matrix vsmc_particle_state (vsmc_particle particle)
 vsmc::Particle::state More...
 
vsmc_weight vsmc_particle_weight (vsmc_particle particle)
 vsmc::Particle::weight More...
 
void vsmc_sampler_assign (vsmc_sampler sampler, vsmc_sampler other)
 vsmc::Sampler::operator= More...
 
vsmc_sampler vsmc_sampler_clone (vsmc_sampler sampler)
 vsmc::Sampler::clone More...
 
void vsmc_sampler_delete (vsmc_sampler *sampler_ptr)
 vsmc::Sampler::~Sampler More...
 
double vsmc_sampler_ess_history (vsmc_sampler sampler, size_t iter)
 vsmc::Sampler::ess_history More...
 
void vsmc_sampler_eval (vsmc_sampler sampler, vsmc_sampler_eval_type new_eval, vSMCSamplerStage stage, int append)
 vsmc::Sampler::eval More...
 
vsmc_monitor vsmc_sampler_get_monitor (vsmc_sampler sampler, const char *name)
 vsmc::Sampler::monitor More...
 
double vsmc_sampler_get_threshold (vsmc_sampler sampler)
 vsmc::Sampler::resample_threshold More...
 
void vsmc_sampler_initialize (vsmc_sampler sampler)
 vsmc::Sampler::initialize More...
 
size_t vsmc_sampler_iter_num (vsmc_sampler sampler)
 vsmc::Sampler::iter_num More...
 
size_t vsmc_sampler_iter_size (vsmc_sampler sampler)
 vsmc::Sampler::iter_size More...
 
void vsmc_sampler_iterate (vsmc_sampler sampler, size_t num)
 vsmc::Sampler::iterate More...
 
int vsmc_sampler_monitor_clear (vsmc_sampler sampler, const char *name)
 vsmc::Sampler::monitor_clear More...
 
void vsmc_sampler_monitor_clear_all (vsmc_sampler sampler)
 vsmc::Sampler::monitor_clear More...
 
vsmc_sampler vsmc_sampler_new (size_t n, size_t dim)
 vsmc::Sampler::Sampler More...
 
vsmc_particle vsmc_sampler_particle (vsmc_sampler sampler)
 vsmc::Sampler::particle More...
 
size_t vsmc_sampler_print (vsmc_sampler sampler, char *buf, char sepchar)
 vsmc::Sampler::print More...
 
void vsmc_sampler_print_f (vsmc_sampler sampler, const char *filename, char sepchar)
 vsmc::Sampler::print directly to an external file More...
 
void vsmc_sampler_read_ess_history (vsmc_sampler sampler, double *first)
 vsmc::Sampler::read_ess_history More...
 
void vsmc_sampler_read_resampled_history (vsmc_sampler sampler, int *first)
 vsmc::Sampler::read_resampled_history More...
 
void vsmc_sampler_read_size_history (vsmc_sampler sampler, size_t *first)
 vsmc::Sampler::read_size_history More...
 
void vsmc_sampler_resample_eval (vsmc_sampler sampler, vsmc_sampler_eval_type res_move, double threshold)
 vsmc::Sampler::resample_method More...
 
void vsmc_sampler_resample_scheme (vsmc_sampler sampler, vSMCResampleScheme scheme, double threshold)
 vsmc::Sampler::resample_method More...
 
double vsmc_sampler_resample_threshold_always (void)
 vsmc::Sampler::resample_threshold_always More...
 
double vsmc_sampler_resample_threshold_never (void)
 vsmc::Sampler::resample_threshold_never More...
 
int vsmc_sampler_resampled_history (vsmc_sampler sampler, size_t iter)
 vsmc::Sampler::resampled_history More...
 
void vsmc_sampler_reserve (vsmc_sampler sampler, size_t num)
 vsmc::Sampler::reserve More...
 
void vsmc_sampler_set_monitor (vsmc_sampler sampler, const char *name, vsmc_monitor mon)
 vsmc::Sampler::monitor More...
 
void vsmc_sampler_set_threshold (vsmc_sampler sampler, double threshold)
 vsmc::Sampler::resample_threshold More...
 
size_t vsmc_sampler_size (vsmc_sampler sampler)
 vsmc::Sampler::size More...
 
size_t vsmc_sampler_size_history (vsmc_sampler sampler, size_t iter)
 vsmc::Sampler::size_history More...
 
size_t vsmc_sampler_status_history (vsmc_sampler sampler, size_t iter, size_t id)
 vsmc::Sampler::status_history More...
 
double * vsmc_state_matrix_data (vsmc_state_matrix state_matrix)
 vsmc::StateMatrix::data More...
 
void vsmc_state_matrix_delete (vsmc_state_matrix *state_matrix_ptr)
 vsmc::StateMatrix::~StateMatrix More...
 
size_t vsmc_state_matrix_dim (vsmc_state_matrix state_matrix)
 vsmc::StateMatrix::dim More...
 
void vsmc_state_matrix_duplicate (vsmc_state_matrix state_matrix, size_t src, size_t dst)
 vsmc::StateMatrix::duplicate More...
 
double vsmc_state_matrix_get (vsmc_state_matrix state_matrix, size_t id, size_t pos)
 vsmc::StateMatrix::state More...
 
vsmc_state_matrix vsmc_state_matrix_new (size_t n, size_t dim)
 vsmc::StateMatrix::StateMatrix More...
 
void vsmc_state_matrix_read_state (vsmc_state_matrix state_matrix, size_t pos, double *first)
 vsmc::StateMatrix::read_state More...
 
void vsmc_state_matrix_read_state_matrix (vsmc_state_matrix state_matrix, vSMCMatrixLayout layout, double *first)
 vsmc::StateMatrix::read_state_matrix More...
 
void vsmc_state_matrix_reserve (vsmc_state_matrix state_matrix, size_t n, size_t dim)
 vsmc::StateMatrix::reserve More...
 
void vsmc_state_matrix_resize (vsmc_state_matrix state_matrix, size_t n, size_t dim)
 vsmc::StateMatrix::resize More...
 
double * vsmc_state_matrix_row_data (vsmc_state_matrix state_matrix, size_t id)
 vsmc::StateMatrix::row_data More...
 
void vsmc_state_matrix_select (vsmc_state_matrix state_matrix, size_t n, const size_t *index)
 vsmc::StateMatrix::copy More...
 
void vsmc_state_matrix_set (vsmc_state_matrix state_matrix, size_t id, size_t pos, double s)
 vsmc::StateMatrix::state More...
 
void vsmc_state_matrix_shrink_to_fit (vsmc_state_matrix state_matrix)
 vsmc::StateMatrix::shrink_to_fit More...
 
size_t vsmc_state_matrix_size (vsmc_state_matrix state_matrix)
 vsmc::StateMatrix::size More...
 
void vsmc_weight_add_log (vsmc_weight weight, const double *first, int stride)
 vsmc::Weight::add_log More...
 
void vsmc_weight_assign (vsmc_weight weight, vsmc_weight other)
 vsmc::Weight::operator= More...
 
const double * vsmc_weight_data (vsmc_weight weight)
 vsmc::Weight::data More...
 
void vsmc_weight_delete (vsmc_weight *weight_ptr)
 vsmc::Weight::~Weight More...
 
size_t vsmc_weight_draw (vsmc_weight weight, vsmc_rng rng)
 vsmc::Weight::draw More...
 
double vsmc_weight_ess (vsmc_weight weight)
 vsmc::Weight::ess More...
 
void vsmc_weight_mul (vsmc_weight weight, const double *first, int stride)
 vsmc::Weight::mul More...
 
vsmc_weight vsmc_weight_new (size_t n)
 vsmc::Weight::Weight More...
 
void vsmc_weight_read_weight (vsmc_weight weight, double *first, int stride)
 vsmc::Weight::read_weight More...
 
void vsmc_weight_reserve (vsmc_weight weight, size_t n)
 vsmc::Weight::reserve More...
 
void vsmc_weight_resize (vsmc_weight weight, size_t n)
 vsmc::Weight::resize More...
 
void vsmc_weight_set (vsmc_weight weight, const double *first, int stride)
 vsmc::Weight::set More...
 
void vsmc_weight_set_equal (vsmc_weight weight)
 vsmc::Weight::set_equal More...
 
void vsmc_weight_set_log (vsmc_weight weight, const double *first, int stride)
 vsmc::Weight::set_log More...
 
void vsmc_weight_shrink_to_fit (vsmc_weight weight)
 vsmc::Weight::shrink_to_fit More...
 
size_t vsmc_weight_size (vsmc_weight weight)
 vsmc::Weight::size More...