Other classes from O2scl

O2sclpy

Class slack_messenger

class o2sclpy.slack_messenger(link, pointer=0)

Python interface for O2scl class slack_messenger, See https://awsteiner.org/code/o2scl/html/class/slack_messenger.html .

__init__(link, pointer=0)

Init function for class slack_messenger

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class slack_messenger

__copy__()

Shallow copy function for class slack_messenger

Returns: slack_messenger object

get_channel()

Get object of type std::string

get_icon()

Get object of type std::string

get_url()

Get object of type std::string

get_username()

Get object of type std::string

classmethod init(link, p_channel, p_username, p_url, p_mpi_time)

Constructor-like class method for slack_messenger .

Parameters:
property min_time_between

Property of type ctypes.c_double

send(message, err_on_fail=True)
Parameters:
message: string
err_on_fail =true: bool
Returns: a Python int
set_channel(value)

Set object of type std::string

set_channel_from_env(env_var)
Parameters:
env_var: string
Returns: a Python boolean
set_icon(value)

Set object of type std::string

set_url(value)

Set object of type std::string

set_url_from_env(env_var)
Parameters:
env_var: string
Returns: a Python boolean
set_username(value)

Set object of type std::string

set_username_from_env(env_var)
Parameters:
env_var: string
Returns: a Python boolean
property verbose

Property of type ctypes.c_int

Class quadratic_real_coeff_gsl

class o2sclpy.quadratic_real_coeff_gsl(link, pointer=0)

Python interface for O2scl class quadratic_real_coeff_gsl, See https://awsteiner.org/code/o2scl/html/class/quadratic_real_coeff_gsl.html .

__init__(link, pointer=0)

Init function for class quadratic_real_coeff_gsl

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class quadratic_real_coeff_gsl

__copy__()

Shallow copy function for class quadratic_real_coeff_gsl

Returns: quadratic_real_coeff_gsl object

solve_r(a2, b2, c2)
Parameters:
a2: double
b2: double
c2: double
Returns: a Python int, a Python float, a Python float
solve_rc(a2, b2, c2, r1, r2)
Parameters:
a2: double
b2: double
c2: double
r1: std::complex object
r2: std::complex object
Returns: a Python int

Class quadratic_real_coeff_gsl2

class o2sclpy.quadratic_real_coeff_gsl2(link, pointer=0)

Python interface for O2scl class quadratic_real_coeff_gsl2<>, See https://awsteiner.org/code/o2scl/html/class/quadratic_real_coeff_gsl2<>.html .

__init__(link, pointer=0)

Init function for class quadratic_real_coeff_gsl2

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class quadratic_real_coeff_gsl2

__copy__()

Shallow copy function for class quadratic_real_coeff_gsl2

Returns: quadratic_real_coeff_gsl2 object

solve_r(a2, b2, c2)
Parameters:
a2: double
b2: double
c2: double
Returns: a Python int, a Python float, a Python float
solve_rc(a2, b2, c2, r1, r2)
Parameters:
a2: double
b2: double
c2: double
r1: std::complex object
r2: std::complex object
Returns: a Python int

Class cubic_real_coeff_cern

class o2sclpy.cubic_real_coeff_cern(link, pointer=0)

Python interface for O2scl class cubic_real_coeff_cern<>, See https://awsteiner.org/code/o2scl/html/class/cubic_real_coeff_cern<>.html .

__init__(link, pointer=0)

Init function for class cubic_real_coeff_cern

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class cubic_real_coeff_cern

__copy__()

Shallow copy function for class cubic_real_coeff_cern

Returns: cubic_real_coeff_cern object

solve_r(a3, b3, c3, d3)
Parameters:
a3: double
b3: double
c3: double
d3: double
Returns: a Python int, a Python float, a Python float, a Python float
solve_rc(a3, b3, c3, d3, r2, r3)
Parameters:
a3: double
b3: double
c3: double
d3: double
r2: std::complex object
r3: std::complex object
Returns: a Python int, a Python float

Class cubic_real_coeff_gsl

class o2sclpy.cubic_real_coeff_gsl(link, pointer=0)

Python interface for O2scl class cubic_real_coeff_gsl, See https://awsteiner.org/code/o2scl/html/class/cubic_real_coeff_gsl.html .

__init__(link, pointer=0)

Init function for class cubic_real_coeff_gsl

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class cubic_real_coeff_gsl

__copy__()

Shallow copy function for class cubic_real_coeff_gsl

Returns: cubic_real_coeff_gsl object

solve_r(a3, b3, c3, d3)
Parameters:
a3: double
b3: double
c3: double
d3: double
Returns: a Python int, a Python float, a Python float, a Python float
solve_rc(a3, b3, c3, d3, r2, r3)
Parameters:
a3: double
b3: double
c3: double
d3: double
r2: std::complex object
r3: std::complex object
Returns: a Python int, a Python float

Class quartic_real_coeff_cern

class o2sclpy.quartic_real_coeff_cern(link, pointer=0)

Python interface for O2scl class quartic_real_coeff_cern<>, See https://awsteiner.org/code/o2scl/html/class/quartic_real_coeff_cern<>.html .

__init__(link, pointer=0)

Init function for class quartic_real_coeff_cern

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class quartic_real_coeff_cern

__copy__()

Shallow copy function for class quartic_real_coeff_cern

Returns: quartic_real_coeff_cern object

solve_r(a4, b4, c4, d4, e4)
Parameters:
a4: double
b4: double
c4: double
d4: double
e4: double
Returns: a Python int, a Python float, a Python float, a Python float, a Python float
solve_rc(a4, b4, c4, d4, e4, r1, r2, r3, r4)
Parameters:
a4: double
b4: double
c4: double
d4: double
e4: double
r1: std::complex object
r2: std::complex object
r3: std::complex object
r4: std::complex object
Returns: a Python int

Class fermi_dirac_integ_gsl

class o2sclpy.fermi_dirac_integ_gsl(link, pointer=0)

Python interface for O2scl class fermi_dirac_integ_gsl, See https://awsteiner.org/code/o2scl/html/class/fermi_dirac_integ_gsl.html .

__init__(link, pointer=0)

Init function for class fermi_dirac_integ_gsl

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class fermi_dirac_integ_gsl

__copy__()

Shallow copy function for class fermi_dirac_integ_gsl

Returns: fermi_dirac_integ_gsl object

calc_1o2(x)
Parameters:
x: double
Returns: a Python float
calc_2(x)
Parameters:
x: double
Returns: a Python float
calc_3(x)
Parameters:
x: double
Returns: a Python float
calc_3o2(x)
Parameters:
x: double
Returns: a Python float
calc_m1o2(x)
Parameters:
x: double
Returns: a Python float

Class bessel_K_exp_integ_gsl

class o2sclpy.bessel_K_exp_integ_gsl(link, pointer=0)

Python interface for O2scl class bessel_K_exp_integ_gsl, See https://awsteiner.org/code/o2scl/html/class/bessel_K_exp_integ_gsl.html .

__init__(link, pointer=0)

Init function for class bessel_K_exp_integ_gsl

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class bessel_K_exp_integ_gsl

__copy__()

Shallow copy function for class bessel_K_exp_integ_gsl

Returns: bessel_K_exp_integ_gsl object

K1exp(x)
Parameters:
x: double
Returns: a Python float
K2exp(x)
Parameters:
x: double
Returns: a Python float
K3exp(x)
Parameters:
x: double
Returns: a Python float

Class hist

class o2sclpy.hist(link, pointer=0)

Python interface for O2scl class hist, See https://awsteiner.org/code/o2scl/html/class/hist.html .

__init__(link, pointer=0)

Init function for class hist

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class hist

__copy__()

Shallow copy function for class hist

Returns: hist object

__deepcopy__(memo)

Deep copy function for class hist

Returns: new copy of the hist object

__getitem__(i)
Parameters:
i: size_t
clear()
create_rep_vec(v)
Parameters:
v: std_vector object
property extend_lhs

Property of type ctypes.c_bool

property extend_rhs

Property of type ctypes.c_bool

from_table(t, colx, n_bins)
Parameters:
t: table object
colx: string
n_bins: size_t
from_table_twocol(t, colx, coly, n_bins)
Parameters:
t: table object
colx: string
coly: string
n_bins: size_t
function(func)
Parameters:
func: string
Returns: a Python int
get_bin_index(x)
Parameters:
x: double
Returns: a Python int
get_bins()
Returns: ublas_vector object
get_wgt(x)
Parameters:
x: double
Returns: a Python float
get_wgt_i(i)
Parameters:
i: size_t
Returns: a Python float
get_wgts()
Returns: ublas_vector object
set_bin_edges_grid(g)
Parameters:
g: uniform_grid object
set_bin_edges_vec(n, v)
Parameters:
n: size_t
v: vector object
set_wgt(x, val)
Parameters:
x: double
val: double
set_wgt_i(i, x)
Parameters:
i: size_t
x: double
size()
Returns: a Python int
update(x, val=1.0)
Parameters:
x: double
val =1.0: double
update_i(i, val=1.0)
Parameters:
i: size_t
val =1.0: double

Class hist_2d

class o2sclpy.hist_2d(link, pointer=0)

Python interface for O2scl class hist_2d, See https://awsteiner.org/code/o2scl/html/class/hist_2d.html .

__init__(link, pointer=0)

Init function for class hist_2d

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class hist_2d

__copy__()

Shallow copy function for class hist_2d

Returns: hist_2d object

__deepcopy__(memo)

Deep copy function for class hist_2d

Returns: new copy of the hist_2d object

clear()
clear_wgts()
create_x_rep_vec(v)
Parameters:
v: std_vector object
create_y_rep_vec(v)
Parameters:
v: std_vector object
property extend_lhs

Property of type ctypes.c_bool

property extend_rhs

Property of type ctypes.c_bool

from_table(t, colx, coly, n_bins_x, n_bins_y)
Parameters:
t: table object
colx: string
coly: string
n_bins_x: size_t
n_bins_y: size_t
from_table_wgt(t, colx, coly, colz, n_bins_x, n_bins_y)
Parameters:
t: table object
colx: string
coly: string
colz: string
n_bins_x: size_t
n_bins_y: size_t
get_wgt(x, y)
Parameters:
x: double
y: double
Returns: a Python float
get_wgt_i(i, j)
Parameters:
i: size_t
j: size_t
Returns: a Python float
get_wgts()
Returns: ublas_matrix object
get_x_high_i(i)
Parameters:
i: size_t
Returns: a Python float
get_x_low_i(i)
Parameters:
i: size_t
Returns: a Python float
get_y_high_i(i)
Parameters:
i: size_t
Returns: a Python float
get_y_low_i(i)
Parameters:
i: size_t
Returns: a Python float
set_bin_edges_grid(gx, gy)
Parameters:
gx: uniform_grid object
gy: uniform_grid object
set_bin_edges_vec(nx, vx, ny, vy)
Parameters:
nx: size_t
vx: vector object
ny: size_t
vy: vector object
set_wgt(x, y, val)
Parameters:
x: double
y: double
val: double
set_wgt_i(i, j, val)
Parameters:
i: size_t
j: size_t
val: double
size_x()
Returns: a Python int
size_y()
Returns: a Python int
update(x, y, val=1.0)
Parameters:
x: double
y: double
val =1.0: double
update_i(i, j, val=1.0)
Parameters:
i: size_t
j: size_t
val =1.0: double

Class contour_line

class o2sclpy.contour_line(link, pointer=0)

Python interface for O2scl class contour_line, See https://awsteiner.org/code/o2scl/html/class/contour_line.html .

__init__(link, pointer=0)

Init function for class contour_line

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class contour_line

__copy__()

Shallow copy function for class contour_line

Returns: contour_line object

__deepcopy__(memo)

Deep copy function for class contour_line

Returns: new copy of the contour_line object

get_x()

Get object of type std::vector

get_y()

Get object of type std::vector

property level

Property of type ctypes.c_double

set_x(value)

Set object of type std::vector

set_y(value)

Set object of type std::vector

Class vector_contour_line

class o2sclpy.vector_contour_line(link, pointer=0)

Python interface for O2scl class std::vector<contour_line>, See https://awsteiner.org/code/o2scl/html/class/std::vector<contour_line>.html .

__init__(link, pointer=0)

Init function for class vector_contour_line

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class vector_contour_line

__copy__()

Shallow copy function for class vector_contour_line

Returns: vector_contour_line object

__getitem__(n)
Parameters:
n: size_t
Returns: contour_line object
__setitem__(i, value)
Parameters:
i: size_t
value: contour_line object
resize(n)
Parameters:
n: size_t
size()
Returns: a Python int

Class contour

class o2sclpy.contour(link, pointer=0)

Python interface for O2scl class contour, See https://awsteiner.org/code/o2scl/html/class/contour.html .

__init__(link, pointer=0)

Init function for class contour

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class contour

__copy__()

Shallow copy function for class contour

Returns: contour object

calc_contours(clines)
Parameters:
clines: vector object
property debug_next_point

Property of type ctypes.c_bool

property lev_adjust

Property of type ctypes.c_double

set_data(ugx, ugy, udata)
Parameters:
ugx: uniform_grid object
ugy: uniform_grid object
udata: ublas_matrix object
set_levels(n_levels, levels)
Parameters:
n_levels: size_t
levels: vector object
property verbose

Property of type ctypes.c_int

Class prob_dens_func

class o2sclpy.prob_dens_func(link, pointer=0)

Python interface for O2scl class prob_dens_func, See https://awsteiner.org/code/o2scl/html/class/prob_dens_func.html .

__init__(link, pointer=0)

Init function for class prob_dens_func

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class prob_dens_func

__copy__()

Shallow copy function for class prob_dens_func

Returns: prob_dens_func object

__getitem__()
cdf(x)
Parameters:
x: double
Returns: a Python float
entropy()
Returns: a Python float
invert_cdf(x)
Parameters:
x: double
Returns: a Python float
log_pdf(x)
Parameters:
x: double
Returns: a Python float
pdf(x)
Parameters:
x: double
Returns: a Python float

Class prob_dens_gaussian

class o2sclpy.prob_dens_gaussian(link, pointer=0)

Python interface for O2scl class prob_dens_gaussian, See https://awsteiner.org/code/o2scl/html/class/prob_dens_gaussian.html .

__init__(link, pointer=0)

Init function for class prob_dens_gaussian

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class prob_dens_gaussian

__copy__()

Shallow copy function for class prob_dens_gaussian

Returns: prob_dens_gaussian object

set_center(cent)
Parameters:
cent: double
set_sigma(sigma)
Parameters:
sigma: double

Class prob_dens_mdim

class o2sclpy.prob_dens_mdim(link, pointer=0)

Python interface for O2scl class prob_dens_mdim<std::vector<double>>, See https://awsteiner.org/code/o2scl/html/class/prob_dens_mdim<std::vector<double>>.html .

__init__(link, pointer=0)

Init function for class prob_dens_mdim

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class prob_dens_mdim

__copy__()

Shallow copy function for class prob_dens_mdim

Returns: prob_dens_mdim object

__getitem__(x)
Parameters:
x: std_vector object
dim()
Returns: a Python int
log_pdf(x)
Parameters:
x: std_vector object
Returns: a Python float
pdf(x)
Parameters:
x: std_vector object
Returns: a Python float

Class prob_dens_mdim_biv_gaussian

class o2sclpy.prob_dens_mdim_biv_gaussian(link, pointer=0)

Python interface for O2scl class prob_dens_mdim_biv_gaussian<std::vector<double>>, See https://awsteiner.org/code/o2scl/html/class/prob_dens_mdim_biv_gaussian<std::vector<double>>.html .

__init__(link, pointer=0)

Init function for class prob_dens_mdim_biv_gaussian

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class prob_dens_mdim_biv_gaussian

__copy__()

Shallow copy function for class prob_dens_mdim_biv_gaussian

Returns: prob_dens_mdim_biv_gaussian object

get()
Parameters:
Returns: , a Python float, a Python float, a Python float, a Python float, a Python float
level_fixed_integral(integral)
Parameters:
integral: double
Returns: a Python float
set(x_cent, y_cent, x_std, y_std, covar)
Parameters:
x_cent: double
y_cent: double
x_std: double
y_std: double
covar: double

Class prob_dens_mdim_gaussian

class o2sclpy.prob_dens_mdim_gaussian(link, pointer=0)

Python interface for O2scl class prob_dens_mdim_gaussian<>, See https://awsteiner.org/code/o2scl/html/class/prob_dens_mdim_gaussian<>.html .

__init__(link, pointer=0)

Init function for class prob_dens_mdim_gaussian

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class prob_dens_mdim_gaussian

__copy__()

Shallow copy function for class prob_dens_mdim_gaussian

Returns: prob_dens_mdim_gaussian object

make_biv()

Class hypercube

class o2sclpy.hypercube(link, pointer=0)

Python interface for O2scl class prob_dens_mdim_amr<>::hypercube, See https://awsteiner.org/code/o2scl/html/class/prob_dens_mdim_amr<>::hypercube.html .

__init__(link, pointer=0)

Init function for class hypercube

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class hypercube

__copy__()

Shallow copy function for class hypercube

Returns: hypercube object

property frac_vol

Property of type ctypes.c_double

get_high()

Get object of type std::vector

get_inside()

Get object of type std::vector

get_low()

Get object of type std::vector

property n_dim

Property of type ctypes.c_size_t

set_high(value)

Set object of type std::vector

set_inside(value)

Set object of type std::vector

set_low(value)

Set object of type std::vector

property weight

Property of type ctypes.c_double

Class std_vector_hypercube

class o2sclpy.std_vector_hypercube(link, pointer=0)

Python interface for O2scl class std::vector<prob_dens_mdim_amr<>::hypercube>, See https://awsteiner.org/code/o2scl/html/class/std::vector<prob_dens_mdim_amr<>::hypercube>.html .

__init__(link, pointer=0)

Init function for class std_vector_hypercube

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class std_vector_hypercube

__copy__()

Shallow copy function for class std_vector_hypercube

Returns: std_vector_hypercube object

__getitem__(n)
Parameters:
n: size_t
Returns: prob_dens_mdim_amr<>::hypercube object
__setitem__(i, value)
Parameters:
i: size_t
value: prob_dens_mdim_amr<>::hypercube object
resize(n)
Parameters:
n: size_t
size()
Returns: a Python int

Class prob_dens_mdim_amr

class o2sclpy.prob_dens_mdim_amr(link, pointer=0)

Python interface for O2scl class prob_dens_mdim_amr<>, See https://awsteiner.org/code/o2scl/html/class/prob_dens_mdim_amr<>.html .

__init__(link, pointer=0)

Init function for class prob_dens_mdim_amr

Parameters:
link linker object
pointer ctypes.c_void_p pointer
__del__()

Delete function for class prob_dens_mdim_amr

__copy__()

Shallow copy function for class prob_dens_mdim_amr

Returns: prob_dens_mdim_amr object

property allow_resampling

Property of type ctypes.c_bool

clear()
clear_mesh()
get_high()

Get object of type std::vector

get_low()

Get object of type std::vector

get_mesh()

Get object of type std::vector

get_scale()

Get object of type std::vector

property n_dim

Property of type ctypes.c_size_t

set_high(value)

Set object of type std::vector

set_low(value)

Set object of type std::vector

set_mesh(value)

Set object of type std::vector

set_scale(value)

Set object of type std::vector

total_volume()
Returns: a Python float
property verbose

Property of type ctypes.c_int