xboa
Classes | Functions | Variables
Bunchcore.h File Reference
#include <Python.h>
#include "Hitcore.h"
Include dependency graph for Bunchcore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Bunchcore_hit
 
struct  Bunchcore
 

Functions

static void Bunchcore_dealloc (Bunchcore *self)
 
static int Bunchcore_init (Bunchcore *self, int length)
 
static Bunchcorebc_realloc (Bunchcore *self, int new_length)
 
static int length (Bunchcore *self)
 
static PyObject * length_python (PyObject *self, PyObject *args)
 
static Py_ssize_t len_python (PyObject *self)
 
static PyObject * get_item_python (PyObject *self, PyObject *args)
 
static void set_item_bc_hit (Bunchcore *self, PyObject *a_hit, Hitcore *a_hitcore, int pos, int *ierr)
 
static PyObject * set_item_python (PyObject *self, PyObject *args)
 
static double get_moment_char (Bunchcore *self, const char **axes, double *means, int n_axes, int *ierr)
 
static void covariance_matrix_char (Bunchcore *self, const char *axes[], double *means, int n_axes, double *target, int *ierr)
 
static void make_array_from_char_list (PyObject *py_list, const char ***string_list, int *list_size)
 
static void make_array_from_float_list (PyObject *py_list, double **double_list, int *list_size)
 
static PyObject * get_moment_python (PyObject *self, PyObject *args)
 
static PyObject * covariance_matrix_python (PyObject *self, PyObject *args)
 
static int _cut_double (Bunchcore *self, const char *variable, PyObject *comp, const double cut_value, const int is_local)
 
static PyObject * _cut_double_python (PyObject *self, PyObject *args)
 
void no_warn (void)
 
PyMODINIT_FUNC initBunchcore (void)
 
void import_hitcore (void)
 

Variables

static PyTypeObject BunchcoreType
 
static PySequenceMethods Bunchcore_as_seq
 
void ** hitcore_api
 
hc_get_dbl_function(* hc_get_dbl_function_by_string )(const char *)
 
static void(* hc_set_local_weight )(Hitcore *hc, double weight)
 
static void(* hc_set_global_weight )(Hitcore *hc, double weight)
 
static vector *(* vector_alloc )(size_t object_size, int n_elements)
 
static vector *(* vector_realloc )(vector *vec, int n_elements)
 
static vector *(* vector_init )(void *data, size_t data_length, size_t allocd_length, size_t object_size)
 
static vector *(* vector_free )(vector *vec)
 
static void(* vector_insert )(vector *vec, void *start, void *end, size_t insert_point, int *ierr)
 
static void *(* vector_el )(vector *vec, int element)
 
static void *(* vector_el_bc )(vector *vec, int element)
 
static size_t(* vector_size )(vector *vec)
 

Function Documentation

static void Bunchcore_dealloc ( Bunchcore self)
static
static int Bunchcore_init ( Bunchcore self,
int  length 
)
static
static Bunchcore* bc_realloc ( Bunchcore self,
int  new_length 
)
static
static int length ( Bunchcore self)
static
static PyObject* length_python ( PyObject *  self,
PyObject *  args 
)
static
static Py_ssize_t len_python ( PyObject *  self)
static
static PyObject* get_item_python ( PyObject *  self,
PyObject *  args 
)
static
static void set_item_bc_hit ( Bunchcore self,
PyObject *  a_hit,
Hitcore a_hitcore,
int  pos,
int *  ierr 
)
static
static PyObject* set_item_python ( PyObject *  self,
PyObject *  args 
)
static
static double get_moment_char ( Bunchcore self,
const char **  axes,
double *  means,
int  n_axes,
int *  ierr 
)
static
static void covariance_matrix_char ( Bunchcore self,
const char *  axes[],
double *  means,
int  n_axes,
double *  target,
int *  ierr 
)
static
static void make_array_from_char_list ( PyObject *  py_list,
const char ***  string_list,
int *  list_size 
)
static
static void make_array_from_float_list ( PyObject *  py_list,
double **  double_list,
int *  list_size 
)
static
static PyObject* get_moment_python ( PyObject *  self,
PyObject *  args 
)
static
static PyObject* covariance_matrix_python ( PyObject *  self,
PyObject *  args 
)
static
static int _cut_double ( Bunchcore self,
const char *  variable,
PyObject *  comp,
const double  cut_value,
const int  is_local 
)
static
static PyObject* _cut_double_python ( PyObject *  self,
PyObject *  args 
)
static
void no_warn ( void  )

Definition at line 564 of file Bunchcore.c.

References Bunchcore_shallow_copy(), and vector_free().

PyMODINIT_FUNC initBunchcore ( void  )

Definition at line 523 of file Bunchcore.c.

References import_hitcore().

void import_hitcore ( void  )

Variable Documentation

PyTypeObject BunchcoreType
static

Definition at line 37 of file Bunchcore.h.

PySequenceMethods Bunchcore_as_seq
static

Definition at line 38 of file Bunchcore.h.

void** hitcore_api

Definition at line 90 of file Bunchcore.h.

Referenced by import_hitcore().

hc_get_dbl_function(* hc_get_dbl_function_by_string)(const char *)
void(* hc_set_local_weight)(Hitcore *hc, double weight)
static

Definition at line 94 of file Bunchcore.h.

void(* hc_set_global_weight)(Hitcore *hc, double weight)
static

Definition at line 95 of file Bunchcore.h.

vector*(* vector_alloc)(size_t object_size, int n_elements)
static
vector*(* vector_realloc)(vector *vec, int n_elements)
static

Definition at line 99 of file Bunchcore.h.

Referenced by bc_realloc(), import_hitcore(), and test_vector_realloc().

vector*(* vector_init)(void *data, size_t data_length, size_t allocd_length, size_t object_size)
static

Definition at line 100 of file Bunchcore.h.

Referenced by import_hitcore(), test_vector_init(), and test_vector_insert().

vector*(* vector_free)(vector *vec)
static
void(* vector_insert)(vector *vec, void *start, void *end, size_t insert_point, int *ierr)
static

Definition at line 102 of file Bunchcore.h.

Referenced by import_hitcore(), and test_vector_insert().

void*(* vector_el)(vector *vec, int element)
static
void*(* vector_el_bc)(vector *vec, int element)
static
size_t(* vector_size)(vector *vec)
static

Definition at line 105 of file Bunchcore.h.

Referenced by Bunchcore_dealloc(), import_hitcore(), and initHitcore().