Post · 1 min read· p. 856

aerosandbox.numpy.determine_type

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.

Module Contents

aerosandbox.numpy.determine_type.is_casadi_type(object, recursive=True) : 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.

code
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) : Returns a boolean of whether an object is iterable or not. :param x:

code
Returns: