Module dalpy.misc_utils
This module provides miscellaneous utility functions and constants.
Currently, this module holds utilities only related to mathematical operations, but operations related to other aspects of Python that should be wrapped into DALPy could be added here (e.g. related to strings).
Global variables
var INF
-
Integer constant representing infinity.
var NEG_INF
-
Integer constant representing negative infinity.
Functions
def ceil(x)
-
Returns x rounded up to the nearest integer.
def floor(x)
-
Returns x truncated.