Base classes from O2scl¶
This python interface is not intended to provide the full functionality of the corresponding C++ class.
Class std_vector¶
- class o2sclpy.std_vector(pointer=0)¶
 Python interface for C++ class
std::vector<double>.- __init__(pointer=0)¶
 Init function for class std_vector
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class std_vector
- __copy__()¶
 Shallow copy function for class std_vector
Returns: std_vector object
- __deepcopy__(memo)¶
 Deep copy function for class std_vector
Returns: new copy of the std_vector object
- __getitem__(n)¶
 - Parameters:n:
size_t 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue:double 
- append(value)¶
 Add an element to the end of the vector
- erase(index)¶
 Erase item at specified index
- from_list(lst)¶
 Set the vector with a python list
- push_back(x)¶
 - Parameters:x:
double 
- resize(n)¶
 - Parameters:n:
size_t 
- size()¶
 - Returns: a Python int
 
- to_numpy()¶
 Copy the vector to a numpy array
Returns: a one-dimensional
numpyarray
Class std_vector_int¶
- class o2sclpy.std_vector_int(pointer=0)¶
 Python interface for C++ class
std::vector<int>.- __init__(pointer=0)¶
 Init function for class std_vector_int
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class std_vector_int
- __copy__()¶
 Shallow copy function for class std_vector_int
Returns: std_vector_int object
- __deepcopy__(memo)¶
 Deep copy function for class std_vector_int
Returns: new copy of the std_vector_int object
- __getitem__(n)¶
 - Parameters:n:
size_t 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue:int 
- resize(n)¶
 - Parameters:n:
size_t 
- size()¶
 - Returns: a Python int
 
- to_numpy()¶
 Copy the vector to a numpy array
Returns: a one-dimensional
numpyarray with dtypeint32
Class std_vector_size_t¶
- class o2sclpy.std_vector_size_t(pointer=0)¶
 Python interface for C++ class
std::vector<size_t>.- __init__(pointer=0)¶
 Init function for class std_vector_size_t
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class std_vector_size_t
- __copy__()¶
 Shallow copy function for class std_vector_size_t
Returns: std_vector_size_t object
- __deepcopy__(memo)¶
 Deep copy function for class std_vector_size_t
Returns: new copy of the std_vector_size_t object
- __getitem__(n)¶
 - Parameters:n:
size_t 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue:size_t 
- init_py(v)¶
 Initialize the vector from a python array
- resize(n)¶
 - Parameters:n:
size_t 
- size()¶
 - Returns: a Python int
 
- to_numpy()¶
 Copy the vector to a numpy array
Returns: a one-dimensional
numpyarray with dtypeuint64
Class std_vector_string¶
- class o2sclpy.std_vector_string(pointer=0)¶
 Python interface for C++ class
std::vector<std::string>.- __init__(pointer=0)¶
 Init function for class std_vector_string
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class std_vector_string
- __copy__()¶
 Shallow copy function for class std_vector_string
Returns: std_vector_string object
- __deepcopy__(memo)¶
 Deep copy function for class std_vector_string
Returns: new copy of the std_vector_string object
- __getitem__(n)¶
 - Parameters:n:
size_tReturns: Python bytes object 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue: Python bytes object 
- append(value)¶
 Add an element to the end of the vector
- push_back(x)¶
 - Parameters:x: byte array
 
- resize(n)¶
 - Parameters:n:
size_t 
- set_list(ls)¶
 Set the object from a python list
- size()¶
 - Returns: a Python int
 
- to_list()¶
 Set the object from a python list
Class ublas_vector¶
- class o2sclpy.ublas_vector(pointer=0)¶
 Python interface for C++ class
boost::numeric::ublas::vector<double>.- __init__(pointer=0)¶
 Init function for class ublas_vector
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ublas_vector
- __copy__()¶
 Shallow copy function for class ublas_vector
Returns: ublas_vector object
- __deepcopy__(memo)¶
 Deep copy function for class ublas_vector
Returns: new copy of the ublas_vector object
- __getitem__(i)¶
 - Parameters:i:
size_t 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue:double 
- resize(n)¶
 - Parameters:n:
size_t 
- size()¶
 - Returns: a Python int
 
- to_numpy()¶
 Copy the vector to a numpy array
Returns: a one-dimensional
numpyarray
Class ublas_vector_int¶
- class o2sclpy.ublas_vector_int(pointer=0)¶
 Python interface for C++ class
boost::numeric::ublas::vector<int>.- __init__(pointer=0)¶
 Init function for class ublas_vector_int
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ublas_vector_int
- __copy__()¶
 Shallow copy function for class ublas_vector_int
Returns: ublas_vector_int object
- __deepcopy__(memo)¶
 Deep copy function for class ublas_vector_int
Returns: new copy of the ublas_vector_int object
- __getitem__(i)¶
 - Parameters:i:
size_t 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue:int 
- resize(n)¶
 - Parameters:n:
size_t 
- size()¶
 - Returns: a Python int
 
- to_numpy()¶
 Copy the vector to a numpy array
Returns: a one-dimensional
numpyarray
Class ublas_matrix¶
- class o2sclpy.ublas_matrix(pointer=0)¶
 Python interface for C++ class
boost::numeric::ublas::matrix<double>.- __init__(pointer=0)¶
 Init function for class ublas_matrix
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ublas_matrix
- __copy__()¶
 Shallow copy function for class ublas_matrix
Returns: ublas_matrix object
- __deepcopy__(memo)¶
 Deep copy function for class ublas_matrix
Returns: new copy of the ublas_matrix object
- __getitem__(matrix_tuple)¶
 - Parameters:m:
size_tn:size_t 
- __setitem__(matrix_tuple, value)¶
 
- resize(m, n)¶
 - Parameters:m:
size_tn:size_t 
- size1()¶
 - Returns: a Python int
 
- size2()¶
 - Returns: a Python int
 
- to_numpy()¶
 Copy the vector to a numpy matrix
Returns: a two-dimensional
numpyarray, with dimensionsize1(),size2().
Class ublas_matrix_int¶
- class o2sclpy.ublas_matrix_int(pointer=0)¶
 Python interface for C++ class
boost::numeric::ublas::matrix<int>.- __init__(pointer=0)¶
 Init function for class ublas_matrix_int
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ublas_matrix_int
- __copy__()¶
 Shallow copy function for class ublas_matrix_int
Returns: ublas_matrix_int object
- __deepcopy__(memo)¶
 Deep copy function for class ublas_matrix_int
Returns: new copy of the ublas_matrix_int object
- __getitem__(matrix_tuple)¶
 - Parameters:m:
size_tn:size_t 
- __setitem__(matrix_tuple, value)¶
 
- resize(m, n)¶
 - Parameters:m:
size_tn:size_t 
- size1()¶
 - Returns: a Python int
 
- size2()¶
 - Returns: a Python int
 
- to_numpy()¶
 Copy the ublas matrix to a numpy matrix
Returns: a two-dimensional
numpyarray, with dimensionsize1(),size2().
Class std_vector_vector¶
- class o2sclpy.std_vector_vector(pointer=0)¶
 Python interface for C++ class
std::vector<std::vector<double>>.- __init__(pointer=0)¶
 Init function for class std_vector_vector
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class std_vector_vector
- __copy__()¶
 Shallow copy function for class std_vector_vector
Returns: std_vector_vector object
- __deepcopy__(memo)¶
 Deep copy function for class std_vector_vector
Returns: new copy of the std_vector_vector object
- __getitem__(n)¶
 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue: Python array 
- resize(n)¶
 - Parameters:n:
size_t 
- size()¶
 - Returns: a Python int
 
Class vec_vec_string¶
- class o2sclpy.vec_vec_string(pointer=0)¶
 Python interface for C++ class
std::vector<std::vector<std::string>>.- __init__(pointer=0)¶
 Init function for class vec_vec_string
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class vec_vec_string
- __copy__()¶
 Shallow copy function for class vec_vec_string
Returns: vec_vec_string object
- __deepcopy__(memo)¶
 Deep copy function for class vec_vec_string
Returns: new copy of the vec_vec_string object
- __getitem__(n)¶
 - Parameters:n:
size_tReturns: std_vector_string object 
- __setitem__(i, value)¶
 - Parameters:i:
size_tvalue: std_vector_string object 
- resize(n)¶
 - Parameters:n:
size_t 
- size()¶
 - Returns: a Python int
 
Class std_complex¶
- class o2sclpy.std_complex(pointer=0)¶
 Note that python complex numbers are immutable, but this class is not, so the real and imaginary parts can be changed with real_set() and imag_set().
- __init__(pointer=0)¶
 Init function for class std_complex
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class std_complex
- __copy__()¶
 Shallow copy function for class std_complex
Returns: std_complex object
- imag()¶
 - Returns: a Python float
 
- imag_set(value)¶
 - Parameters:value:
double 
- classmethod init(re, im)¶
 Constructor-like class method for std::complex<double> .
Parameters:
- real()¶
 - Returns: a Python float
 
- real_set(value)¶
 - Parameters:value:
double 
- to_python()¶
 Convert to a python complex number
Returns: a python complex number
Class lib_settings_class¶
- class o2sclpy.lib_settings_class(pointer=0)¶
 Python interface for O₂scl class
lib_settings_class, see https://awsteiner.org/code/o2scl/html/class/lib_settings_class.html .- __init__(pointer=0)¶
 Init function for class lib_settings_class
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class lib_settings_class
- __copy__()¶
 Shallow copy function for class lib_settings_class
Returns: lib_settings_class object
- armadillo_support()¶
 - Returns: a Python boolean
 
- config_h_report()¶
 
- date_compiled()¶
 - Returns: Python bytes object
 
- eigen_support()¶
 - Returns: a Python boolean
 
- fftw_support()¶
 - Returns: a Python boolean
 
- get_convert_units()¶
 - Returns:
convert_unitsobject 
- get_data_dir()¶
 - Returns: Python bytes object
 
- get_doc_dir()¶
 - Returns: Python bytes object
 
- hdf5_compression_support()¶
 - Returns: a Python boolean
 
- ncurses_support()¶
 - Returns: a Python boolean
 
- o2scl_version()¶
 - Returns: Python bytes object
 
- openmp_support()¶
 - Returns: a Python boolean
 
- range_check()¶
 - Returns: a Python boolean
 
- readline_support()¶
 - Returns: a Python boolean
 
- set_data_dir(dir)¶
 - Parameters:dir: byte arrayReturns: a Python int
 
- set_doc_dir(dir)¶
 - Parameters:dir: byte arrayReturns: a Python int
 
- system_type()¶
 - Returns: Python bytes object
 
- time_compiled()¶
 - Returns: Python bytes object
 
Class table¶
- class o2sclpy.table(pointer=0)¶
 Python interface for O2scl class
table, see https://awsteiner.org/code/o2scl/html/class/table.html .- __init__(pointer=0)¶
 Init function for class table
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class table
- __copy__()¶
 Shallow copy function for class table
Returns: table object
- __deepcopy__(memo)¶
 Deep copy function for class table
Returns: new copy of the table object
- __getitem__(col)¶
 
- add_col_from_table(source, src_index, src_col, dest_index, dest_col)¶
 - Parameters:source:
tableobjectsrc_index: byte arraysrc_col: byte arraydest_index: byte arraydest_col: byte array 
- add_table(source)¶
 - Parameters:source:
tableobject 
- average_col_roll(col_name, window)¶
 - Parameters:col_name: byte arraywindow:
size_t 
- average_rows(window, rolling)¶
 - Parameters:window:
size_trolling:bool 
- clear()¶
 
- clear_constants()¶
 
- clear_data()¶
 
- clear_table()¶
 
- copy_column(src, dest)¶
 - Parameters:src: byte arraydest: byte array
 
- copy_row(src, dest)¶
 - Parameters:src:
size_tdest:size_t 
- delete_column(col)¶
 - Parameters:col: byte array
 
- delete_row(scol, val)¶
 - Parameters:scol: byte arrayval:
double 
- delete_rows_ends(row_start, row_end)¶
 - Parameters:row_start:
size_trow_end:size_t 
- delete_rows_func(func)¶
 - Parameters:func: byte array
 
- deriv(sx, x0, sy)¶
 - Parameters:sx: byte arrayx0:
doublesy: byte arrayReturns: a Python float 
- deriv2(sx, x0, sy)¶
 - Parameters:sx: byte arrayx0:
doublesy: byte arrayReturns: a Python float 
- deriv2_col(x, y, yp)¶
 - Parameters:x: byte arrayy: byte arrayyp: byte array
 
- deriv2_index(ix, x0, iy)¶
 - Parameters:ix:
size_tx0:doubleiy:size_tReturns: a Python float 
- deriv_col(x, y, yp)¶
 - Parameters:x: byte arrayy: byte arrayyp: byte array
 
- deriv_index(ix, x0, iy)¶
 - Parameters:ix:
size_tx0:doubleiy:size_tReturns: a Python float 
- function_column(function, scol)¶
 - Parameters:function: byte arrayscol: byte array
 
- function_find_row(function)¶
 - Parameters:function: byte arrayReturns: a Python int
 
- functions_columns(list)¶
 - Parameters:list: byte array
 
- get(col, row)¶
 - Parameters:col: byte arrayrow:
size_tReturns: a Python float 
- get_column_name(icol)¶
 - Parameters:icol:
size_tReturns: Python bytes object 
- get_interp_type()¶
 - Returns: a Python int
 
- get_maxlines()¶
 - Returns: a Python int
 
- get_ncolumns()¶
 - Returns: a Python int
 
- get_nlines()¶
 - Returns: a Python int
 
- get_sorted_name(icol)¶
 - Parameters:icol:
size_tReturns: Python bytes object 
- inc_maxlines(llines)¶
 - Parameters:llines:
size_t 
- init_column(scol, val)¶
 - Parameters:scol: byte arrayval:
double 
- insert_row(nv, data, row)¶
 
- insert_table(source, src_index, allow_extrap, dest_index)¶
 - Parameters:source:
tableobjectsrc_index: byte arrayallow_extrap:booldest_index: byte array 
- integ(sx, x1, x2, sy)¶
 - Parameters:sx: byte arrayx1:
doublex2:doublesy: byte arrayReturns: a Python float 
- integ_col(x, y, yi)¶
 - Parameters:x: byte arrayy: byte arrayyi: byte array
 
- integ_index(ix, x1, x2, iy)¶
 - Parameters:ix:
size_tx1:doublex2:doubleiy:size_tReturns: a Python float 
- interp(sx, x0, sy)¶
 - Parameters:sx: byte arrayx0:
doublesy: byte arrayReturns: a Python float 
- interp_index(ix, x0, iy)¶
 - Parameters:ix:
size_tx0:doubleiy:size_tReturns: a Python float 
- is_column(scol)¶
 - Parameters:scol: byte arrayReturns: a Python boolean
 
- is_valid()¶
 
- line_of_data(v)¶
 Copy
vto anstd_vectorobject and add the line of data to the table
- line_of_data_vector(data)¶
 - Parameters:data:
std_vectorobject 
- line_of_names(names)¶
 - Parameters:names: byte array
 
- lookup(scol, val)¶
 - Parameters:scol: byte arrayval:
doubleReturns: a Python int 
- lookup_column(scol)¶
 - Parameters:scol: byte arrayReturns: a Python int
 
- lookup_val(scol, val, scol2)¶
 - Parameters:scol: byte arrayval:
doublescol2: byte arrayReturns: a Python int 
- max(max)¶
 - Parameters:max: byte arrayReturns: a Python float
 
- min(min)¶
 - Parameters:min: byte arrayReturns: a Python float
 
- new_column(col)¶
 - Parameters:col: byte array
 
- new_row(n)¶
 - Parameters:n:
size_t 
- ordered_lookup(scol, val)¶
 - Parameters:scol: byte arrayval:
doubleReturns: a Python int 
- rename_column(src, dest)¶
 - Parameters:src: byte arraydest: byte array
 
- row_function(scol, row)¶
 - Parameters:scol: byte arrayrow:
size_tReturns: a Python float 
- row_to_dict(row)¶
 Convert the specified row to a python dictionary
- set(col, row, val)¶
 - Parameters:col: byte arrayrow:
size_tval:double 
- set_interp_type(interp_type)¶
 - Parameters:interp_type:
size_t 
- set_maxlines(llines)¶
 - Parameters:llines:
size_t 
- set_nlines(lines)¶
 - Parameters:lines:
size_t 
- set_nlines_auto(il)¶
 - Parameters:il:
size_t 
- sort_column(scol)¶
 - Parameters:scol: byte array
 
- sort_table(scol)¶
 - Parameters:scol: byte array
 
- summary()¶
 
- zero_table()¶
 
Class table_units¶
- class o2sclpy.table_units(pointer=0)¶
 Python interface for O2scl class
table_units, see https://awsteiner.org/code/o2scl/html/class/table_units.html .- __init__(pointer=0)¶
 Init function for class table_units
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class table_units
- __copy__()¶
 Shallow copy function for class table_units
Returns: table_units object
- __deepcopy__(memo)¶
 Deep copy function for class table_units
Returns: new copy of the table_units object
- convert_to_unit(col, unit, err_on_fail=True)¶
 - Parameters:col: byte arrayunit: byte arrayerr_on_fail =True:
boolReturns: a Python int 
- get_unit(col)¶
 - Parameters:col: byte arrayReturns: Python bytes object
 
- line_of_units(unit_line)¶
 - Parameters:unit_line: byte array
 
- remove_unit(col)¶
 - Parameters:col: byte array
 
- set_unit(col, unit)¶
 - Parameters:col: byte arrayunit: byte array
 
Class uniform_grid¶
- class o2sclpy.uniform_grid(pointer=0)¶
 Python interface for O2scl class
uniform_grid, see https://awsteiner.org/code/o2scl/html/class/uniform_grid.html .- __init__(pointer=0)¶
 Init function for class uniform_grid
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class uniform_grid
- __copy__()¶
 Shallow copy function for class uniform_grid
Returns: uniform_grid object
- __getitem__(n)¶
 - Parameters:n:
size_t 
- get_end()¶
 - Returns: a Python float
 
- get_nbins()¶
 - Returns: a Python int
 
- get_npoints()¶
 - Returns: a Python int
 
- get_start()¶
 - Returns: a Python float
 
- get_width()¶
 - Returns: a Python float
 
- is_log()¶
 - Returns: a Python boolean
 
- to_numpy()¶
 Copy the
uniform_gridobject to a numpy arrayReturns: a one-dimensional
numpyarray
- vector(v)¶
 - Parameters:v:
std_vectorobject 
Class uniform_grid_end¶
- class o2sclpy.uniform_grid_end(pointer=0)¶
 Python interface for O2scl class
uniform_grid_end, see https://awsteiner.org/code/o2scl/html/class/uniform_grid_end.html .- __init__(pointer=0)¶
 Init function for class uniform_grid_end
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class uniform_grid_end
- __copy__()¶
 Shallow copy function for class uniform_grid_end
Returns: uniform_grid_end object
- classmethod init(start, end, n_bins)¶
 Constructor-like class method for uniform_grid_end<> .
Parameters:
Class uniform_grid_width¶
- class o2sclpy.uniform_grid_width(pointer=0)¶
 Python interface for O2scl class
uniform_grid_width, see https://awsteiner.org/code/o2scl/html/class/uniform_grid_width.html .- __init__(pointer=0)¶
 Init function for class uniform_grid_width
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class uniform_grid_width
- __copy__()¶
 Shallow copy function for class uniform_grid_width
Returns: uniform_grid_width object
- classmethod init(start, width, n_bins)¶
 Constructor-like class method for uniform_grid_width<> .
Parameters:
Class uniform_grid_end_width¶
- class o2sclpy.uniform_grid_end_width(pointer=0)¶
 Python interface for O2scl class
uniform_grid_end_width, see https://awsteiner.org/code/o2scl/html/class/uniform_grid_end_width.html .- __init__(pointer=0)¶
 Init function for class uniform_grid_end_width
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class uniform_grid_end_width
- __copy__()¶
 Shallow copy function for class uniform_grid_end_width
Returns: uniform_grid_end_width object
- classmethod init(start, end, width)¶
 Constructor-like class method for uniform_grid_end_width<> .
Parameters:
Class uniform_grid_log_end¶
- class o2sclpy.uniform_grid_log_end(pointer=0)¶
 Python interface for O2scl class
uniform_grid_log_end, see https://awsteiner.org/code/o2scl/html/class/uniform_grid_log_end.html .- __init__(pointer=0)¶
 Init function for class uniform_grid_log_end
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class uniform_grid_log_end
- __copy__()¶
 Shallow copy function for class uniform_grid_log_end
Returns: uniform_grid_log_end object
- classmethod init(start, end, n_bins)¶
 Constructor-like class method for uniform_grid_log_end<> .
Parameters:
Class uniform_grid_log_width¶
- class o2sclpy.uniform_grid_log_width(pointer=0)¶
 Python interface for O2scl class
uniform_grid_log_width, see https://awsteiner.org/code/o2scl/html/class/uniform_grid_log_width.html .- __init__(pointer=0)¶
 Init function for class uniform_grid_log_width
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class uniform_grid_log_width
- __copy__()¶
 Shallow copy function for class uniform_grid_log_width
Returns: uniform_grid_log_width object
- classmethod init(start, width, n_bins)¶
 Constructor-like class method for uniform_grid_log_width<> .
Parameters:
Class uniform_grid_log_end_width¶
- class o2sclpy.uniform_grid_log_end_width(pointer=0)¶
 Python interface for O2scl class
uniform_grid_log_end_width, see https://awsteiner.org/code/o2scl/html/class/uniform_grid_log_end_width.html .- __init__(pointer=0)¶
 Init function for class uniform_grid_log_end_width
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class uniform_grid_log_end_width
- __copy__()¶
 Shallow copy function for class uniform_grid_log_end_width
Returns: uniform_grid_log_end_width object
- classmethod init(start, end, width)¶
 Constructor-like class method for uniform_grid_log_end_width<> .
Parameters:
Class table3d¶
- class o2sclpy.table3d(pointer=0)¶
 Python interface for O₂scl class
table3d, see https://awsteiner.org/code/o2scl/html/class/table3d.html .- __init__(pointer=0)¶
 Init function for class table3d
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class table3d
- __copy__()¶
 Shallow copy function for class table3d
Returns: table3d object
- __deepcopy__(memo)¶
 Deep copy function for class table3d
Returns: new copy of the table3d object
- clear()¶
 
- copy_slice(name1, name2)¶
 - Parameters:name1: byte arrayname2: byte array
 
- deriv_x(x, y, name)¶
 - Parameters:x:
doubley:doublename: byte arrayReturns: a Python float 
- deriv_xy(x, y, name)¶
 - Parameters:x:
doubley:doublename: byte arrayReturns: a Python float 
- deriv_y(x, y, name)¶
 - Parameters:x:
doubley:doublename: byte arrayReturns: a Python float 
- function_matrix(function, mat, throw_on_err)¶
 
- function_slice(function, slice)¶
 - Parameters:function: byte arrayslice: byte array
 
- get(ix, iy, name)¶
 - Parameters:ix:
size_tiy:size_tname: byte arrayReturns: a Python float 
- get_grid_x(ix)¶
 - Parameters:ix:
size_tReturns: a Python float 
- get_grid_y(iy)¶
 - Parameters:iy:
size_tReturns: a Python float 
- get_i(ix, iy, iz)¶
 - Parameters:ix:
size_tiy:size_tiz:size_tReturns: a Python float 
- get_nslices()¶
 - Returns: a Python int
 
- get_nx()¶
 - Returns: a Python int
 
- get_ny()¶
 - Returns: a Python int
 
- get_size()¶
 - Parameters:Returns: , a Python int, a Python int
 
- get_slice(slice)¶
 
- get_slice_i(slice)¶
 
- get_slice_name(i)¶
 - Parameters:i:
size_tReturns: Python bytes object 
- get_val(x, y, name)¶
 - Parameters:x:
doubley:doublename: byte arrayReturns: a Python float 
- get_x_name()¶
 - Returns: Python bytes object
 
- get_y_name()¶
 - Returns: Python bytes object
 
- integ_x(x1, x2, y, name)¶
 - Parameters:x1:
doublex2:doubley:doublename: byte arrayReturns: a Python float 
- integ_y(x, y1, y2, name)¶
 - Parameters:x:
doubley1:doubley2:doublename: byte arrayReturns: a Python float 
- interp(x, y, name)¶
 - Parameters:x:
doubley:doublename: byte arrayReturns: a Python float 
- is_size_set()¶
 - Returns: a Python boolean
 
- is_slice(name)¶
 - Parameters:name: byte arrayReturns: a Python boolean, a Python int
 
- is_xy_set()¶
 - Returns: a Python boolean
 
- line_of_names(names)¶
 - Parameters:names: byte array
 
- lookup_slice(name)¶
 - Parameters:name: byte arrayReturns: a Python int
 
- lookup_x(val, ix)¶
 - Parameters:val:
doubleix:size_t 
- lookup_y(val, iy)¶
 - Parameters:val:
doubleiy:size_t 
- new_slice(slice)¶
 - Parameters:slice: byte array
 
- rename_slice(name1, name2)¶
 - Parameters:name1: byte arrayname2: byte array
 
- set(ix, iy, name, val)¶
 - Parameters:ix:
size_tiy:size_tname: byte arrayval:double 
- set_grid_x(ix, val)¶
 - Parameters:ix:
size_tval:double 
- set_grid_y(iy, val)¶
 - Parameters:iy:
size_tval:double 
- set_i(ix, iy, iz, val)¶
 - Parameters:ix:
size_tiy:size_tiz:size_tval:double 
- set_interp_type(interp_type)¶
 - Parameters:interp_type:
size_t 
- set_size(nx, ny)¶
 - Parameters:nx:
size_tny:size_t 
- set_slice_all(name, val)¶
 - Parameters:name: byte arrayval:
double 
- set_val(x, y, name, val)¶
 - Parameters:x:
doubley:doublename: byte arrayval:double 
- set_x_name(name)¶
 - Parameters:name: byte array
 
- set_xy(x_name, nx, x, y_name, ny, y)¶
 - Parameters:x_name: byte arraynx:
size_tx:std_vectorobjecty_name: byte arrayny:size_ty:std_vectorobject 
- set_xy_grid(x_name, x_grid, y_name, y_grid)¶
 - Parameters:x_name: byte arrayx_grid:
uniform_gridobjecty_name: byte arrayy_grid:uniform_gridobject 
- set_y_name(name)¶
 - Parameters:name: byte array
 
- summary()¶
 
- zero_table()¶
 
Class index_spec¶
- class o2sclpy.index_spec(pointer=0)¶
 Python interface for O₂scl class
index_spec, see https://awsteiner.org/code/o2scl/html/class/index_spec.html .- __init__(pointer=0)¶
 Init function for class index_spec
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class index_spec
- __copy__()¶
 Shallow copy function for class index_spec
Returns: index_spec object
- property ix1¶
 Property of type
ctypes.c_size_t
- property ix2¶
 Property of type
ctypes.c_size_t
- property ix3¶
 Property of type
ctypes.c_size_t
- property type¶
 Property of type
ctypes.c_size_t
- property val1¶
 Property of type
ctypes.c_double
- property val2¶
 Property of type
ctypes.c_double
- property val3¶
 Property of type
ctypes.c_double
Class ix_index¶
- class o2sclpy.ix_index(pointer=0)¶
 Python interface for O₂scl class
ix_index, see https://awsteiner.org/code/o2scl/html/class/ix_index.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_index
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_index
- __copy__()¶
 Shallow copy function for class ix_index
Returns: ix_index object
- classmethod init(ix)¶
 Constructor-like class method for ix_index .
Parameters:
Class ix_fixed¶
- class o2sclpy.ix_fixed(pointer=0)¶
 Python interface for O₂scl class
ix_fixed, see https://awsteiner.org/code/o2scl/html/class/ix_fixed.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_fixed
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_fixed
- __copy__()¶
 Shallow copy function for class ix_fixed
Returns: ix_fixed object
- classmethod init(ix, ix2)¶
 Constructor-like class method for ix_fixed .
Parameters:
Class ix_sum¶
- class o2sclpy.ix_sum(pointer=0)¶
 Python interface for O₂scl class
ix_sum, see https://awsteiner.org/code/o2scl/html/class/ix_sum.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_sum
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_sum
- __copy__()¶
 Shallow copy function for class ix_sum
Returns: ix_sum object
- classmethod init(ix)¶
 Constructor-like class method for ix_sum .
Parameters:
Class ix_trace¶
- class o2sclpy.ix_trace(pointer=0)¶
 Python interface for O₂scl class
ix_trace, see https://awsteiner.org/code/o2scl/html/class/ix_trace.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_trace
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_trace
- __copy__()¶
 Shallow copy function for class ix_trace
Returns: ix_trace object
- classmethod init(ix, ix2)¶
 Constructor-like class method for ix_trace .
Parameters:
Class ix_reverse¶
- class o2sclpy.ix_reverse(pointer=0)¶
 Python interface for O₂scl class
ix_reverse, see https://awsteiner.org/code/o2scl/html/class/ix_reverse.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_reverse
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_reverse
- __copy__()¶
 Shallow copy function for class ix_reverse
Returns: ix_reverse object
- classmethod init(ix)¶
 Constructor-like class method for ix_reverse .
Parameters:
Class ix_range¶
- class o2sclpy.ix_range(pointer=0)¶
 Python interface for O₂scl class
ix_range, see https://awsteiner.org/code/o2scl/html/class/ix_range.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_range
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_range
- __copy__()¶
 Shallow copy function for class ix_range
Returns: ix_range object
- classmethod init(ix, start, end)¶
 Constructor-like class method for ix_range .
Parameters:
Class ix_interp¶
- class o2sclpy.ix_interp(pointer=0)¶
 Python interface for O₂scl class
ix_interp, see https://awsteiner.org/code/o2scl/html/class/ix_interp.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_interp
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_interp
- __copy__()¶
 Shallow copy function for class ix_interp
Returns: ix_interp object
- classmethod init(ix, v)¶
 Constructor-like class method for ix_interp .
Parameters:
Class ix_grid¶
- class o2sclpy.ix_grid(pointer=0)¶
 Python interface for O₂scl class
ix_grid, see https://awsteiner.org/code/o2scl/html/class/ix_grid.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_grid
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_grid
- __copy__()¶
 Shallow copy function for class ix_grid
Returns: ix_grid object
- classmethod init(ix, start, end, n_bins, log)¶
 Constructor-like class method for ix_grid .
Parameters:
Class ix_gridw¶
- class o2sclpy.ix_gridw(pointer=0)¶
 Python interface for O₂scl class
ix_gridw, see https://awsteiner.org/code/o2scl/html/class/ix_gridw.html .- abstractmethod __init__(pointer=0)¶
 Init function for class ix_gridw
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class ix_gridw
- __copy__()¶
 Shallow copy function for class ix_gridw
Returns: ix_gridw object
- classmethod init(ix, start, end, width, log)¶
 Constructor-like class method for ix_gridw .
Parameters:
Class tensor¶
- class o2sclpy.tensor(pointer=0)¶
 Python interface for O2scl class
tensor, see https://awsteiner.org/code/o2scl/html/class/tensor.html .- __init__(pointer=0)¶
 Init function for class tensor
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class tensor
- __copy__()¶
 Shallow copy function for class tensor
Returns: tensor object
- __deepcopy__(memo)¶
 Deep copy function for class tensor
Returns: new copy of the tensor object
- clear()¶
 
- copy_table3d(ix_x, ix_y, tab, x_name='x', y_name='y', slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_ttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayslice_name =”z”: byte array 
- copy_table3d_sum(ix_x, ix_y, tab, x_name='x', y_name='y', slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_ttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayslice_name =”z”: byte array 
- create_size(v)¶
 Copy
vto anstd_vector_size_tobject and add the line of data to the table
- get(index)¶
 Copy
indexto anstd_vector_size_tobject and get the data from the table
- get_data()¶
 - Returns:
numpyarray 
- get_rank()¶
 - Returns: a Python int
 
- get_size(i)¶
 - Parameters:i:
size_tReturns: a Python int 
- get_size_arr()¶
 - Returns:
std_vector_size_tobject 
- get_vector(index)¶
 - Parameters:index:
vectorobjectReturns: a Python float 
- is_valid()¶
 
- max(ix)¶
 
- max_index(index)¶
 - Parameters:index:
std_vector_size_tobject 
- max_value()¶
 - Returns: a Python float
 
- min(ix)¶
 
- min_index(index)¶
 - Parameters:index:
std_vector_size_tobject 
- min_value()¶
 - Returns: a Python float
 
- minmax(min_ix, max_ix)¶
 - Parameters:min_ix:
std_vector_size_tobjectmax_ix:std_vector_size_tobjectReturns: , a Python float, a Python float 
- minmax_index(min, max)¶
 
- minmax_value()¶
 - Parameters:Returns: , a Python float, a Python float
 
- pack_indices(index)¶
 
- resize(index)¶
 Copy
indexto anstd_vector_size_tobject and resize
- resize_vector(n, index)¶
 - Parameters:n:
size_tindex:vectorobject 
- set(index, val)¶
 Copy
indexto anstd_vector_size_tobject and add the data to the table
- set_all(x)¶
 - Parameters:x:
double 
- set_vector(index, val)¶
 - Parameters:index:
vectorobjectval:double 
- swap_data(data)¶
 - Parameters:data:
std_vectorobject 
- total_size()¶
 - Returns: a Python int
 
- total_sum()¶
 - Returns: a Python float
 
- unpack_index(ix, index)¶
 
Class tensor_int¶
- class o2sclpy.tensor_int(pointer=0)¶
 Python interface for O2scl class
tensor, see https://awsteiner.org/code/o2scl/html/class/tensor.html .- __init__(pointer=0)¶
 Init function for class tensor_int
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class tensor_int
- __copy__()¶
 Shallow copy function for class tensor_int
Returns: tensor_int object
- __deepcopy__(memo)¶
 Deep copy function for class tensor_int
Returns: new copy of the tensor_int object
- clear()¶
 
- copy_table3d(ix_x, ix_y, tab, x_name='x', y_name='y', slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_ttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayslice_name =”z”: byte array 
- copy_table3d_sum(ix_x, ix_y, tab, x_name='x', y_name='y', slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_ttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayslice_name =”z”: byte array 
- create_size(v)¶
 Copy
vto anstd_vector_size_tobject and add the line of data to the table
- get(index)¶
 Copy
indexto anstd_vector_size_tobject and get the data from the table
- get_data()¶
 - Returns:
std_vector_intobject 
- get_rank()¶
 - Returns: a Python int
 
- get_size(i)¶
 - Parameters:i:
size_tReturns: a Python int 
- get_vector(index)¶
 - Parameters:index:
vectorobjectReturns: a Python int 
- is_valid()¶
 
- max(index)¶
 
- max_index(index)¶
 - Parameters:index:
std_vector_size_tobject 
- max_value()¶
 - Returns: a Python int
 
- min(index)¶
 
- min_index(index)¶
 - Parameters:index:
std_vector_size_tobject 
- min_value()¶
 - Returns: a Python int
 
- minmax(index_min, index_max)¶
 - Parameters:index_min:
std_vector_size_tobjectindex_max:std_vector_size_tobjectReturns: , a Python int, a Python int 
- minmax_index(index_min, index_max)¶
 
- minmax_value()¶
 - Parameters:Returns: , a Python int, a Python int
 
- pack_indices(index)¶
 
- resize(index)¶
 Copy
indexto anstd_vector_size_tobject and resize
- resize_vector(n, index)¶
 - Parameters:n:
size_tindex:vectorobject 
- set(index, val)¶
 Copy
indexto anstd_vector_size_tobject and add the data to the table
- set_all(x)¶
 - Parameters:x:
int 
- set_vector(index, val)¶
 - Parameters:index:
vectorobjectval:int 
- total_size()¶
 - Returns: a Python int
 
- total_sum()¶
 - Returns: a Python int
 
- unpack_index(ix, index)¶
 
Class tensor_size_t¶
- class o2sclpy.tensor_size_t(pointer=0)¶
 Python interface for O2scl class
tensor, see https://awsteiner.org/code/o2scl/html/class/tensor.html .- __init__(pointer=0)¶
 Init function for class tensor_size_t
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class tensor_size_t
- __copy__()¶
 Shallow copy function for class tensor_size_t
Returns: tensor_size_t object
- __deepcopy__(memo)¶
 Deep copy function for class tensor_size_t
Returns: new copy of the tensor_size_t object
- clear()¶
 
- copy_table3d(ix_x, ix_y, tab, x_name='x', y_name='y', slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_ttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayslice_name =”z”: byte array 
- copy_table3d_sum(ix_x, ix_y, tab, x_name='x', y_name='y', slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_ttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayslice_name =”z”: byte array 
- create_size(v)¶
 Copy
vto anstd_vector_size_tobject and add the line of data to the table
- get(index)¶
 Copy
indexto anstd_vector_size_tobject and get the data from the table
- get_data()¶
 - Returns:
std_vector_size_tobject 
- get_rank()¶
 - Returns: a Python int
 
- get_size(i)¶
 - Parameters:i:
size_tReturns: a Python int 
- get_vector(index)¶
 - Parameters:index:
vectorobjectReturns: a Python int 
- is_valid()¶
 
- max(index)¶
 
- max_index(index)¶
 - Parameters:index:
std_vector_size_tobject 
- max_value()¶
 - Returns: a Python int
 
- min(index)¶
 
- min_index(index)¶
 - Parameters:index:
std_vector_size_tobject 
- min_value()¶
 - Returns: a Python int
 
- minmax(index_min, index_max)¶
 - Parameters:index_min:
std_vector_size_tobjectindex_max:std_vector_size_tobjectReturns: , a Python int, a Python int 
- minmax_index(index_min, index_max)¶
 
- minmax_value()¶
 - Parameters:Returns: , a Python int, a Python int
 
- resize(index)¶
 Copy
indexto anstd_vector_size_tobject and resize
- resize_vector(n, index)¶
 - Parameters:n:
size_tindex:vectorobject 
- set(index, val)¶
 Copy
indexto anstd_vector_size_tobject and add the data to the table
- set_all(x)¶
 - Parameters:x:
size_t 
- set_vector(index, val)¶
 - Parameters:index:
vectorobjectval:size_t 
- total_size()¶
 - Returns: a Python int
 
- total_sum()¶
 - Returns: a Python int
 
Class tensor_grid¶
- class o2sclpy.tensor_grid(pointer=0)¶
 Python interface for O2scl class
tensor_grid, see https://awsteiner.org/code/o2scl/html/class/tensor_grid.html .- __init__(pointer=0)¶
 Init function for class tensor_grid
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class tensor_grid
- __copy__()¶
 Shallow copy function for class tensor_grid
Returns: tensor_grid object
- __deepcopy__(memo)¶
 Deep copy function for class tensor_grid
Returns: new copy of the tensor_grid object
- clear()¶
 
- copy_slice_interp(ifix, vals)¶
 
- copy_table3d_align(ix_x, ix_y, index, tab, z_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_tindex:vectorobjecttab:table3dobjectz_name =”z”: byte array 
- copy_table3d_align_setxy(ix_x, ix_y, index, tab, x_name='x', y_name='y', z_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_tindex:vectorobjecttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayz_name =”z”: byte array 
- copy_table3d_interp(ix_x, ix_y, index, tab, slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_tindex:std_vector_size_tobjecttab:table3dobjectslice_name =”z”: byte array 
- copy_table3d_interp_values(ix_x, ix_y, values, tab, slice_name='z', verbose=0)¶
 - Parameters:ix_x:
size_tix_y:size_tvalues:std_vectorobjecttab:table3dobjectslice_name =”z”: byte arrayverbose =0:int 
- copy_table3d_interp_values_setxy(ix_x, ix_y, values, tab, x_name='x', y_name='y', slice_name='z')¶
 - Parameters:ix_x:
size_tix_y:size_tvalues:std_vectorobjecttab:table3dobjectx_name =”x”: byte arrayy_name =”y”: byte arrayslice_name =”z”: byte array 
- default_grid()¶
 
- from_table3d_fermi(t3d, slice, n_points, low=0.0, high=0.0, width=0.0)¶
 - Parameters:t3d:
table3dobjectslice: byte arrayn_points:size_tlow =0.0:doublehigh =0.0:doublewidth =0.0:double 
- get_grid(i, j)¶
 - Parameters:i:
size_tj:size_tReturns: a Python float 
- get_grid_packed()¶
 - Returns:
numpyarray 
- get_val_vector(grid_point)¶
 - Parameters:grid_point:
vectorobjectReturns: a Python float 
- interp_linear(v)¶
 - Parameters:v:
vectorobjectReturns: a Python float 
- interp_linear_partial(ix_to_interp, ix, val)¶
 - Parameters:ix_to_interp:
std_vector_size_tobjectix:std_vector_size_tobjectval:std_vectorobjectReturns: a Python float 
- is_grid_set()¶
 - Returns: a Python boolean
 
- is_valid()¶
 
- lookup_grid(i, val)¶
 - Parameters:i:
size_tval:doubleReturns: a Python int 
- resize(index)¶
 Copy
indexto anstd_vector_size_tobject and resize
- resize_vector(rank, dim)¶
 - Parameters:rank:
size_tdim:vectorobject 
- set_grid(i, j, val)¶
 - Parameters:i:
size_tj:size_tval:double 
- set_grid_i_func(ix, func)¶
 - Parameters:ix:
size_tfunc: byte array 
- set_grid_i_vec(i, grid)¶
 - Parameters:i:
size_tgrid:vectorobject 
- set_grid_packed(grid)¶
 - Parameters:grid:
vectorobject 
- set_grid_vec_vec(grid_vecs)¶
 - Parameters:grid_vecs:
vectorobject 
- set_interp_type(interp_type)¶
 - Parameters:interp_type:
size_t 
- set_val_vector(grid_point, val)¶
 - Parameters:grid_point:
vectorobjectval:double 
Class find_constants_const_entry¶
- class o2sclpy.find_constants_const_entry(pointer=0)¶
 Python interface for O₂scl class
find_constants<>::const_entry, see https://awsteiner.org/code/o2scl/html/class/find_constants<>::const_entry.html .- __init__(pointer=0)¶
 Init function for class find_constants_const_entry
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class find_constants_const_entry
- __copy__()¶
 Shallow copy function for class find_constants_const_entry
Returns: find_constants_const_entry object
- property A¶
 Property of type
ctypes.c_int
- property K¶
 Property of type
ctypes.c_int
- property cd¶
 Property of type
ctypes.c_int
- get_names()¶
 Get object of type
std::vector
- get_source()¶
 Get byte array object.
- get_unit()¶
 Get byte array object.
- property k¶
 Property of type
ctypes.c_int
- property m¶
 Property of type
ctypes.c_int
- property mol¶
 Property of type
ctypes.c_int
- property s¶
 Property of type
ctypes.c_int
- set_names(value)¶
 Set object of type
std::vector
- set_source(value)¶
 Set object from byte array
- set_unit(value)¶
 Set object from byte array
- property unit_flag¶
 Property of type
ctypes.c_int
- property val¶
 Property of type
ctypes.c_double
Class find_constants¶
- class o2sclpy.find_constants(pointer=0)¶
 Python interface for O₂scl class
find_constants<>, see https://awsteiner.org/code/o2scl/html/class/find_constants<>.html .- __init__(pointer=0)¶
 Init function for class find_constants
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class find_constants
- __copy__()¶
 Shallow copy function for class find_constants
Returns: find_constants object
- add_constant(f, verbose=0)¶
 - Parameters:f:
find_constants<>::const_entryobjectverbose =0:int 
- del_constant(name, verbose=0)¶
 
- output_list_cout()¶
 
Class convert_units_der_unit¶
- class o2sclpy.convert_units_der_unit(pointer=0)¶
 Python interface for O₂scl class
convert_units<>::der_unit, see https://awsteiner.org/code/o2scl/html/class/convert_units<>::der_unit.html .- __init__(pointer=0)¶
 Init function for class convert_units_der_unit
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class convert_units_der_unit
- __copy__()¶
 Shallow copy function for class convert_units_der_unit
Returns: convert_units_der_unit object
- property A¶
 Property of type
ctypes.c_int
- property K¶
 Property of type
ctypes.c_int
- property cd¶
 Property of type
ctypes.c_int
- get_label()¶
 Get byte array object.
- get_name()¶
 Get byte array object.
- property k¶
 Property of type
ctypes.c_int
- property m¶
 Property of type
ctypes.c_int
- property mol¶
 Property of type
ctypes.c_int
- property s¶
 Property of type
ctypes.c_int
- set(label, val, name='', m=0, k=0, s=0, K=0, A=0, mol=0, cd=0)¶
 Set the properties of a derived unit FIXME: better docs here
- set_label(value)¶
 Set object from byte array
- set_name(value)¶
 Set object from byte array
- property val¶
 Property of type
ctypes.c_double
Class convert_units¶
- class o2sclpy.convert_units(pointer=0)¶
 Python interface for O2scl class
convert_units, see https://awsteiner.org/code/o2scl/html/class/convert_units.html .- __init__(pointer=0)¶
 Init function for class convert_units
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class convert_units
- __copy__()¶
 Shallow copy function for class convert_units
Returns: convert_units object
- add_unit(label, val, name='', m=0, k=0, s=0, K=0, A=0, mol=0, cd=0)¶
 Add a unit
- add_unit_internal(d)¶
 - Parameters:d:
convert_units<>::der_unitobject 
- clear_cache()¶
 
- property combine_two_conv¶
 Property of type
ctypes.c_bool
- convert(frm, to, val)¶
 - Parameters:frm: byte arrayto: byte arrayval:
doubleReturns: a Python float 
- convert_ret(frm, to, val, converted)¶
 - Parameters:frm: byte arrayto: byte arrayval:
doubleconverted:doubleReturns: a Python int 
- del_unit(name)¶
 - Parameters:name:
std_stringobject 
- property err_on_fail¶
 Property of type
ctypes.c_bool
- find_print(name, unit, prec, use_regex)¶
 - Parameters:name: byte arrayunit: byte arrayprec:
size_tuse_regex:bool 
- find_unique(name, unit, use_regex=False)¶
 - Parameters:name: byte arrayunit: byte arrayuse_regex =false:
boolReturns: a Python float 
- is_in_cache(frm, to)¶
 - Parameters:frm: byte arrayto: byte arrayReturns: a Python int
 
- print_cache()¶
 
- print_units_cout()¶
 
- remove_cache(frm, to)¶
 - Parameters:frm: byte arrayto: byte arrayReturns: a Python int
 
- set_natural_units(c_is_one=True, hbar_is_one=True, kb_is_one=True)¶
 - Parameters:c_is_one =true:
boolhbar_is_one =true:boolkb_is_one =true:bool 
- test_unique()¶
 
- property verbose¶
 Property of type
ctypes.c_int
Class columnify¶
- class o2sclpy.columnify(pointer=0)¶
 Python interface for O₂scl class
columnify, see https://awsteiner.org/code/o2scl/html/class/columnify.html .- __init__(pointer=0)¶
 Init function for class columnify
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class columnify
- __copy__()¶
 Shallow copy function for class columnify
Returns: columnify object
- property align_dp¶
 Property of type
ctypes.c_int
- property align_left¶
 Property of type
ctypes.c_int
- property align_lmid¶
 Property of type
ctypes.c_int
- property align_lnum¶
 Property of type
ctypes.c_int
- property align_right¶
 Property of type
ctypes.c_int
- property align_rmid¶
 Property of type
ctypes.c_int
Class format_float¶
- class o2sclpy.format_float(pointer=0)¶
 Python interface for O₂scl class
format_float, see https://awsteiner.org/code/o2scl/html/class/format_float.html .- __init__(pointer=0)¶
 Init function for class format_float
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class format_float
- __copy__()¶
 Shallow copy function for class format_float
Returns: format_float object
- c_mode()¶
 
- convert(x, debug=False)¶
 - Parameters:x:
doubledebug =false:boolReturns: Python bytes object 
- html_mode()¶
 
- latex_mode()¶
 
- set_dec_point(dec_point)¶
 - Parameters:dec_point: byte array
 
- set_exp_digits(d)¶
 - Parameters:d:
int 
- set_exp_limits(min, max)¶
 - Parameters:min:
intmax:int 
- set_pad_zeros(pad)¶
 - Parameters:pad:
bool 
- set_sig_figs(sig_figs)¶
 - Parameters:sig_figs:
size_t 
Class interp_vec¶
- class o2sclpy.interp_vec(pointer=0)¶
 Python interface for O₂scl class
interp_vec<std::vector<double>>, see https://awsteiner.org/code/o2scl/html/class/interp_vec<std::vector<double>>.html .- __init__(pointer=0)¶
 Init function for class interp_vec
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class interp_vec
- __copy__()¶
 Shallow copy function for class interp_vec
Returns: interp_vec object
- clear()¶
 
- deriv(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- deriv2(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- eval(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- integ(x1, x2)¶
 - Parameters:x1:
doublex2:doubleReturns: a Python float 
- set(n, x, y, interp_type)¶
 
Class interp_krige_optim_rbf_noise¶
- class o2sclpy.interp_krige_optim_rbf_noise(pointer=0)¶
 Python interface for O₂scl class
interp_krige_optim<std::vector<double>,std::vector<double>,covar_funct_rbf_noise>, see https://awsteiner.org/code/o2scl/html/class/interp_krige_optim<std::vector<double>,std::vector<double>,covar_funct_rbf_noise>.html .- __init__(pointer=0)¶
 Init function for class interp_krige_optim_rbf_noise
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class interp_krige_optim_rbf_noise
- __copy__()¶
 Shallow copy function for class interp_krige_optim_rbf_noise
Returns: interp_krige_optim_rbf_noise object
- deriv(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- deriv2(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- eval(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- property mode¶
 Property of type
ctypes.c_size_t
- property mode_loo_cv¶
 Property of type
ctypes.c_size_t
- property mode_loo_cv_bf¶
 Property of type
ctypes.c_size_t
- property mode_max_lml¶
 Property of type
ctypes.c_size_t
- sample(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- sample_vec(x, y)¶
 
- set(size, x, y)¶
 
- sigma(x0)¶
 - Parameters:x0:
doubleReturns: a Python float 
- property verbose¶
 Property of type
ctypes.c_int
Class terminal¶
- class o2sclpy.terminal(pointer=0)¶
 Python interface for O₂scl class
terminal, see https://awsteiner.org/code/o2scl/html/class/terminal.html .- __init__(pointer=0)¶
 Init function for class terminal
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class terminal
- __copy__()¶
 Shallow copy function for class terminal
Returns: terminal object
- alt_font()¶
 - Returns: Python bytes object
 
- blue_bg()¶
 - Returns: Python bytes object
 
- blue_fg()¶
 - Returns: Python bytes object
 
- bold()¶
 - Returns: Python bytes object
 
- cyan_bg()¶
 - Returns: Python bytes object
 
- cyan_fg()¶
 - Returns: Python bytes object
 
- default_fgbg()¶
 - Returns: Python bytes object
 
- eight_bit_bg(col)¶
 - Parameters:Returns: Python bytes object
 
- eight_bit_fg(col)¶
 - Parameters:Returns: Python bytes object
 
- eight_bit_summ()¶
 - Returns: Python bytes object
 
- green_bg()¶
 - Returns: Python bytes object
 
- green_fg()¶
 - Returns: Python bytes object
 
- hrule(n=78)¶
 - Parameters:n =78:
size_tReturns: Python bytes object 
- is_redirected()¶
 - Returns: a Python boolean
 
- lowint()¶
 - Returns: Python bytes object
 
- magenta_bg()¶
 - Returns: Python bytes object
 
- magenta_fg()¶
 - Returns: Python bytes object
 
- normal_font()¶
 - Returns: Python bytes object
 
- red_bg()¶
 - Returns: Python bytes object
 
- red_fg()¶
 - Returns: Python bytes object
 
- reverse()¶
 - Returns: Python bytes object
 
- str_len(str)¶
 - Parameters:str: byte arrayReturns: a Python int
 
- three_byte_summ()¶
 - Returns: Python bytes object
 
- three_byte_summ_long()¶
 - Returns: Python bytes object
 
- underline()¶
 - Returns: Python bytes object
 
- yellow_bg()¶
 - Returns: Python bytes object
 
- yellow_fg()¶
 - Returns: Python bytes object
 
Class gen_test_number¶
- class o2sclpy.gen_test_number(pointer=0)¶
 Python interface for O₂scl class
gen_test_number<double>, see https://awsteiner.org/code/o2scl/html/class/gen_test_number<double>.html .- __init__(pointer=0)¶
 Init function for class gen_test_number
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class gen_test_number
- __copy__()¶
 Shallow copy function for class gen_test_number
Returns: gen_test_number object
- gen()¶
 - Returns: a Python float
 
- reset()¶
 
- set_radix(r)¶
 - Parameters:r:
double 
Class funct_string¶
- class o2sclpy.funct_string(pointer=0)¶
 Python interface for O₂scl class
funct_string<double>, see https://awsteiner.org/code/o2scl/html/class/funct_string<double>.html .- abstractmethod __init__(pointer=0)¶
 Init function for class funct_string
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class funct_string
- __copy__()¶
 Shallow copy function for class funct_string
Returns: funct_string object
- __getitem__(x)¶
 - Parameters:x:
double 
- classmethod init(expr, var)¶
 Constructor-like class method for funct_string<double> .
Parameters:
- set_parm(name, val)¶
 - Parameters:name: byte arrayval:
doubleReturns: a Python int 
Class comm_option_s¶
- class o2sclpy.comm_option_s(pointer=0)¶
 Python interface for O₂scl class
comm_option_s, see https://awsteiner.org/code/o2scl/html/class/comm_option_s.html .- __init__(pointer=0)¶
 Init function for class comm_option_s
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class comm_option_s
- __copy__()¶
 Shallow copy function for class comm_option_s
Returns: comm_option_s object
- get_desc()¶
 Get byte array object.
- get_help()¶
 Get byte array object.
- get_lng()¶
 Get byte array object.
- get_parm_desc()¶
 Get byte array object.
- property max_parms¶
 Property of type
ctypes.c_int
- property min_parms¶
 Property of type
ctypes.c_int
- set_desc(value)¶
 Set object from byte array
- set_help(value)¶
 Set object from byte array
- set_lng(value)¶
 Set object from byte array
- set_parm_desc(value)¶
 Set object from byte array
- property shrt¶
 Property of type
ctypes.c_char
- property type¶
 Property of type
ctypes.c_int
Class cmd_line_arg¶
- class o2sclpy.cmd_line_arg(pointer=0)¶
 Python interface for O₂scl class
cmd_line_arg, see https://awsteiner.org/code/o2scl/html/class/cmd_line_arg.html .- __init__(pointer=0)¶
 Init function for class cmd_line_arg
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class cmd_line_arg
- __copy__()¶
 Shallow copy function for class cmd_line_arg
Returns: cmd_line_arg object
- get_arg()¶
 Get byte array object.
- get_parms()¶
 Get object of type
std::vector
- property is_option¶
 Property of type
ctypes.c_bool
- property is_valid¶
 Property of type
ctypes.c_bool
- set_arg(value)¶
 Set object from byte array
- set_parms(value)¶
 Set object of type
std::vector
Class cli¶
- class o2sclpy.cli(pointer=0)¶
 Python interface for O₂scl class
cli, see https://awsteiner.org/code/o2scl/html/class/cli.html .- __init__(pointer=0)¶
 Init function for class cli
Parameters:pointerctypes.c_void_ppointer
- __del__()¶
 Delete function for class cli
- __copy__()¶
 Shallow copy function for class cli
Returns: cli object
- apply_aliases(sv, istart, debug=False)¶
 
- get_addl_help_cli()¶
 Get byte array object.
- get_addl_help_cmd()¶
 Get byte array object.
- get_cmd_name()¶
 Get byte array object.
- get_desc()¶
 Get byte array object.
- get_option_list()¶
 - Returns:
std_vector_stringobject 
- property gnu_intro¶
 Property of type
ctypes.c_bool
- option_short_desc(name)¶
 - Parameters:name: byte arrayReturns: Python bytes object
 
- parameter_desc(name)¶
 - Parameters:name: byte arrayReturns: Python bytes object
 
- parse_for_aliases(sv, allow_undashed, debug=False)¶
 - Parameters:sv:
std_vector_stringobjectallow_undashed:booldebug =false:boolReturns: a Python int 
- set_addl_help_cli(value)¶
 Set object from byte array
- set_addl_help_cmd(value)¶
 Set object from byte array
- set_cmd_name(value)¶
 Set object from byte array
- set_desc(value)¶
 Set object from byte array
- set_verbose(v)¶
 - Parameters:v:
intReturns: a Python int 
- property sync_verbose¶
 Property of type
ctypes.c_bool
Function rearrange_and_copy¶
- o2sclpy.rearrange_and_copy(t, spec, verbose, err_on_fail)¶
 - Parameters:t:
tensorobjectspec: stringverbose:interr_on_fail:boolReturns:tensorobject 
Function rearrange_and_copy_int¶
- o2sclpy.rearrange_and_copy_int(t, spec, verbose, err_on_fail)¶
 - Parameters:t:
tensorobjectspec: stringverbose:interr_on_fail:boolReturns:tensor_intobject 
Function rearrange_and_copy_size_t¶
- o2sclpy.rearrange_and_copy_size_t(t, spec, verbose, err_on_fail)¶
 - Parameters:t:
tensorobjectspec: stringverbose:interr_on_fail:boolReturns:tensor_size_tobject 
Function grid_rearrange_and_copy¶
- o2sclpy.grid_rearrange_and_copy(t, spec, verbose, err_on_fail)¶
 - Parameters:t:
tensor_gridobjectspec: stringverbose:interr_on_fail:boolReturns:tensor_gridobject 
Function fermi_function¶
- o2sclpy.fermi_function(x)¶
 - Parameters:x:
doubleReturns:ctypes.c_doubleobject 
Function bose_function¶
- o2sclpy.bose_function(x)¶
 - Parameters:x:
doubleReturns:ctypes.c_doubleobject 
Function quadratic_extremum_x¶
- o2sclpy.quadratic_extremum_x(x1, x2, x3, y1, y2, y3)¶
 - Parameters:x1:
doublex2:doublex3:doubley1:doubley2:doubley3:doubleReturns:ctypes.c_doubleobject 
Function quadratic_extremum_y¶
- o2sclpy.quadratic_extremum_y(x1, x2, x3, y1, y2, y3)¶
 - Parameters:x1:
doublex2:doublex3:doubley1:doubley2:doubley3:doubleReturns:ctypes.c_doubleobject 
Function screenify¶
- o2sclpy.screenify(nin, in_cols, out_cols, max_size)¶
 - Parameters:nin:
size_tin_cols:vectorobjectout_cols:vectorobjectmax_size:size_t 
Function file_exists¶
- o2sclpy.file_exists(fname)¶
 - Parameters:fname: stringReturns:
ctypes.c_boolobject 
Function RGBtoHSV¶
- o2sclpy.RGBtoHSV(r, g, b, h, s, v)¶
 - Parameters:r:
doubleg:doubleb:doubleh:doubles:doublev:double 
Function HSVtoRGB¶
- o2sclpy.HSVtoRGB(h, s, v, r, g, b)¶
 - Parameters:h:
doubles:doublev:doubler:doubleg:doubleb:double 
Function wordexp_single_file¶
- o2sclpy.wordexp_single_file(fname)¶
 - Parameters:fname:
std::stringobject 
Function wordexp_wrapper¶
- o2sclpy.wordexp_wrapper(word, matches)¶
 - Parameters:word: stringmatches:
std::vectorobject 
Function function_to_double¶
- o2sclpy.function_to_double(s, verbose)¶
 - Parameters:s: stringverbose:
intReturns:ctypes.c_doubleobject 
Function function_to_double_nothrow¶
- o2sclpy.function_to_double_nothrow(s, result, verbose)¶
 - Parameters:s: stringresult:
doubleverbose:intReturns:ctypes.c_intobject 
Function find_constant¶
- o2sclpy.find_constant(name, unit)¶
 - Parameters:name: stringunit: stringReturns:
ctypes.c_doubleobject 
Function string_to_uint_list¶
- o2sclpy.string_to_uint_list(x, list)¶
 - Parameters:x:
std::stringobjectlist:vectorobjectReturns:ctypes.c_intobject 
Function rewrap_keep_endlines¶
- o2sclpy.rewrap_keep_endlines(str, sv, ncol, verbose, ignore_vt100)¶
 - Parameters:str: stringsv:
std::vectorobjectncol:size_tverbose:intignore_vt100:bool 
Function vector_level_count¶
- o2sclpy.vector_level_count(level, n, x, y)¶
 - Parameters:level:
doublen:size_tx:std::vectorobjecty:std::vectorobjectReturns:ctypes.c_size_tobject 
Function vector_deriv_interp¶
- o2sclpy.vector_deriv_interp(n, v, dv, interp_type)¶
 - Parameters:n:
size_tv:std::vectorobjectdv:std::vectorobjectinterp_type:size_t 
Function vector_deriv2_interp¶
- o2sclpy.vector_deriv2_interp(n, v, dv, interp_type)¶
 - Parameters:n:
size_tv:std::vectorobjectdv:std::vectorobjectinterp_type:size_t 
Function vector_deriv_xy_interp¶
- o2sclpy.vector_deriv_xy_interp(n, vx, vy, dv, interp_type)¶
 - Parameters:n:
size_tvx:std::vectorobjectvy:std::vectorobjectdv:std::vectorobjectinterp_type:size_t 
Function vector_deriv2_xy_interp¶
- o2sclpy.vector_deriv2_xy_interp(n, vx, vy, dv, interp_type)¶
 - Parameters:n:
size_tvx:std::vectorobjectvy:std::vectorobjectdv:std::vectorobjectinterp_type:size_t 
Function vector_integ_interp¶
- o2sclpy.vector_integ_interp(n, vx, interp_type)¶
 - Parameters:n:
size_tvx:std::vectorobjectinterp_type:size_tReturns:ctypes.c_doubleobject 
Function vector_integ_xy_interp¶
- o2sclpy.vector_integ_xy_interp(n, vx, vy, interp_type)¶
 - Parameters:n:
size_tvx:std::vectorobjectvy:std::vectorobjectinterp_type:size_tReturns:ctypes.c_doubleobject 
Function vector_integ_ul_interp¶
- o2sclpy.vector_integ_ul_interp(n, x2, v, interp_type)¶
 - Parameters:n:
size_tx2:doublev:std::vectorobjectinterp_type:size_tReturns:ctypes.c_doubleobject 
Function vector_integ_ul_xy_interp¶
- o2sclpy.vector_integ_ul_xy_interp(n, x2, vx, vy, interp_type)¶
 - Parameters:n:
size_tx2:doublevx:std::vectorobjectvy:std::vectorobjectinterp_type:size_tReturns:ctypes.c_doubleobject 
Function vector_find_level¶
- o2sclpy.vector_find_level(level, n, x, y, locs)¶
 - Parameters:level:
doublen:size_tx:std::vectorobjecty:std::vectorobjectlocs:std::vectorobject 
Function vector_invert_enclosed_sum¶
- o2sclpy.vector_invert_enclosed_sum(sum, n, x, y, lev, boundaries, verbose, err_on_fail)¶
 - Parameters:sum:
doublen:size_tx:std::vectorobjecty:std::vectorobjectlev:doubleboundaries:intverbose:interr_on_fail:bool 
Function vector_region_int¶
- o2sclpy.vector_region_int(n, x, y, intl, locs, boundaries, verbose, err_on_fail)¶
 - Parameters:n:
size_tx:std::vectorobjecty:std::vectorobjectintl:doublelocs:std::vectorobjectboundaries:intverbose:interr_on_fail:boolReturns:ctypes.c_intobject 
Function vector_region_fracint¶
- o2sclpy.vector_region_fracint(n, x, y, intl, locs, boundaries, verbose, err_on_fail)¶
 - Parameters:n:
size_tx:std::vectorobjecty:std::vectorobjectintl:doublelocs:std::vectorobjectboundaries:intverbose:interr_on_fail:boolReturns:ctypes.c_intobject 
Function vector_bound_fracint¶
- o2sclpy.vector_bound_fracint(n, x, y, frac, low, high, boundaries, verbose, err_on_fail)¶
 - Parameters:n:
size_tx:std::vectorobjecty:std::vectorobjectfrac:doublelow:doublehigh:doubleboundaries:intverbose:interr_on_fail:boolReturns:ctypes.c_intobject 
Function vector_bound_int¶
- o2sclpy.vector_bound_int(n, x, y, frac, low, high, boundaries, verbose, err_on_fail)¶
 - Parameters:n:
size_tx:std::vectorobjecty:std::vectorobjectfrac:doublelow:doublehigh:doubleboundaries:intverbose:interr_on_fail:boolReturns:ctypes.c_intobject 
Function rebin_xy¶
- o2sclpy.rebin_xy(x, y, x_out, y_out, n_pts, interp_type)¶
 - Parameters:x:
std::vectorobjecty:std::vectorobjectx_out:std::vectorobjecty_out:std::vectorobjectn_pts:size_tinterp_type:size_t 
Function linear_or_log_chi2¶
- o2sclpy.linear_or_log_chi2(x, y)¶
 - Parameters:x:
std::vectorobjecty:std::vectorobjectReturns:ctypes.c_doubleobject 
Function linear_or_log_pair¶
- o2sclpy.linear_or_log_pair(x, y, log_x, log_y)¶
 - Parameters:x:
std::vectorobjecty:std::vectorobjectlog_x:boollog_y:bool 
Function vector_refine¶
- o2sclpy.vector_refine(n, index, data, factor, interp_type)¶
 - Parameters:n:
size_tindex:std::vectorobjectdata:std::vectorobjectfactor:size_tinterp_type:size_t 
Function linear_or_log¶
- o2sclpy.linear_or_log(x, log_x)¶
 - Parameters:x:
std::vectorobjectlog_x:bool 
Function get_screen_size_ioctl¶
- o2sclpy.get_screen_size_ioctl(row, col)¶
 - Parameters:row:
intcol:intReturns:ctypes.c_intobject