Package solvcon :: Module dependency
[hide private]
[frames] | no frames]

Module dependency

source code

Logic for using external compiled libraries.

Functions [hide private]
 
str_of(dtype)
Determine the string representation of a dtype of floating-point.
source code
ctypes.CDLL
loadcdll(location, libname)
Load shared objects using ctypes.
source code
ctypes.CDLL
getcdll(libname, location=None, raise_on_fail=True)
Load shared objects at the default location.
source code
 
_clib_solvcon_of(dtype) source code
Variables [hide private]
  cdllcache = {'/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_cese2d...
  _clib_solvcon_d = <CDLL '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/l...
  _clib_solvcon_s = <CDLL '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/l...
  _clib_metis = <CDLL '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc...
  __package__ = 'solvcon'
  name = 'scotchmetis'
Function Details [hide private]

loadcdll(location, libname)

source code 

Load shared objects using ctypes. Loaded dll objects are cached to prevent duplicated loading.

Parameters:
  • location (str) - location of the ctypes library.
  • libname (str) - full basename of library.
Returns: ctypes.CDLL
ctypes library.

getcdll(libname, location=None, raise_on_fail=True)

source code 

Load shared objects at the default location.

Parameters:
  • libname (str) - main basename of library without sc_ prefix.
  • location (str) - location of the library.
  • raise_on_fail (bool) - raise the error on failing to load. Default True.
Returns: ctypes.CDLL
ctypes library.

Variables Details [hide private]

cdllcache

Value:
{'/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_cese2d.so': <CDLL '/home/y\
ungyuc/tmp/SOLVCON-0.0.7/lib/libsc_cese2d.so', handle 46d5e10 at 4735f\
50>,
 '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_cese3d.so': <CDLL '/home/y\
ungyuc/tmp/SOLVCON-0.0.7/lib/libsc_cese3d.so', handle 46f6ba0 at 4735f\
d0>,
 '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_ceseb2d.so': <CDLL '/home/\
yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_ceseb2d.so', handle 46fbae0 at 473\
...

_clib_solvcon_d

Value:
<CDLL '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_solvcon_d.so', handle\
 41bfb50 at 417eed0>

_clib_solvcon_s

Value:
<CDLL '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_solvcon_s.so', handle\
 41e69d0 at 417ef10>

_clib_metis

Value:
<CDLL '/home/yungyuc/tmp/SOLVCON-0.0.7/lib/libsc_metis.so', handle 41e\
85b0 at 417ef50>