aerosandbox.numpy.determine_type#

Module Contents#

Functions#

is_casadi_type(object[, recursive])

Returns a boolean of whether an object is a CasADi data type or not. If the recursive flag is True,

is_iterable(x)

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.

aerosandbox.numpy.determine_type.is_iterable(x)[source]#

Returns a boolean of whether an object is iterable or not. :param x:

Returns: