aerosandbox.numpy.determine_type
#
Module Contents#
Functions#
|
Returns a boolean of whether an object is a CasADi data type or not. If the recursive flag is True, |
|
Returns a boolean of whether an object is iterable or not. |
- aerosandbox.numpy.determine_type.is_casadi_type(object, recursive=True)[source]#
Returns a boolean of whether an object is a CasADi data type or not. If the recursive flag is True, iterates recursively, returning True if any subelement (at any depth) is a CasADi type.
- Parameters:
object (Any) – The object to evaluate.
recursive (bool) – If the object is a list or tuple, recursively iterate through every subelement. If any of the
subelements (at any depth) –
- Return type:
bool
Returns: A boolean if the object is (or contains, if recursive=True) a CasADi data type.