dll_wrapper

class h2lib.dll_wrapper.DLLWrapper(filename, cwd='.', cdecl=True, fortran=True)[source]

Bases: object

check_stop()[source]
close()[source]
static find_dll(path, name)[source]
getFileProperties()[source]
get_lib_function(name)[source]
open()[source]
version(function_name='get_version')[source]
class h2lib.dll_wrapper.SuppressStream(suppressed_output_file, stream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>)[source]

Bases: object

class h2lib.dll_wrapper.Type2DllWrapper(filename, dll_subroutine_init, dll_subroutine_update, arraysizes_init, arraysizes_update, init_array)[source]

Bases: DLLWrapper

call(name, array, n1, n2)[source]
init()[source]
open()[source]
update(array)[source]
h2lib.dll_wrapper.c_bool_p

alias of LP_c_bool

class h2lib.dll_wrapper.c_double_complex[source]

Bases: Structure

complex is a c structure https://docs.python.org/3/library/ctypes.html#module-ctypes suggests to use ctypes.Structure to pass structures (and, therefore, complex)

imag

Structure/Union member

real

Structure/Union member

property value
h2lib.dll_wrapper.c_double_complex_p

alias of LP_c_double_complex

h2lib.dll_wrapper.c_double_p

alias of LP_c_double

h2lib.dll_wrapper.c_float_p

alias of LP_c_float

h2lib.dll_wrapper.c_int_p

alias of LP_c_int

h2lib.dll_wrapper.c_long_p

alias of LP_c_long

h2lib.dll_wrapper.c_longlong_p

alias of LP_c_long

h2lib.dll_wrapper.chdir(path)[source]
h2lib.dll_wrapper.cwd(f)[source]
h2lib.dll_wrapper.suppress_output(f)[source]
h2lib.dll_wrapper.wrap(self, f, *args, check_stop=True, **kwargs)[source]