misc
Full name: ase2sprkkr.common.misc
Description
Various classes and routines used thorough the package
Functions
|
Interpret the value as integer, or raise (even for float, complex etc.) TypeError.i >>> as_integer(4) 4 >>> as_integer(np.int64(4)) 4 >>> as_integer(4.0) Traceback (most recent call last): . |
|
Copy list of objects. |
|
Return the first item of the given dict. |
|
Mock the numba JIT compiler, if it is not available |
|
Returns index of the first occurence of the item in the array If numba is installed, the function is accelerated. |