Beispiel #1
0
def f01fmc(order, n, a, pda, f, comm, iflag, fail):
    """
    Function of a complex matrix (using user-supplied derivatives).
    http://www.nag.co.uk/numeric/CL/nagdoc_cl23/html/f01/f01fmc.html

    TypeError will be raised when the following arguments are not instances
    of numpy.ndarray:
        a, iflag
    TypeError will be raised when the following arguments are not of data type
    numpy.int32 or numpy.int64:
        iflag
    TypeError will be raised when the following arguments are not of data type
    Complex:
        a
    ImportError will be raised for this function on Mac.
    """
    from platform import system
    if system() == 'Darwin':
        from nag4py.util import nagImportErrorMessage
        raise ImportError(nagImportErrorMessage('f01fmc', system()))
    from nag4py.util import nag_complex_type_check_and_cast
    from nag4py.util import nag_integer_type_check_and_cast
    _a = nag_complex_type_check_and_cast('f01fmc', a, 'a')
    _iflag = nag_integer_type_check_and_cast('f01fmc', iflag, 'iflag')
    f01fmc_ctypes(order, n, _a, pda, f, comm, _iflag, fail)
Beispiel #2
0
def f01fjc(order, n, a, pda, fail):
    """
    Complex matrix logarithm.
    http://www.nag.co.uk/numeric/CL/nagdoc_cl23/html/f01/f01fjc.html

    TypeError will be raised when the following arguments are not instances
    of numpy.ndarray:
        a
    TypeError will be raised when the following arguments are not of data type
    Complex:
        a
    ImportError will be raised for this function on Mac.
    """
    from platform import system
    if system() == 'Darwin':
        from nag4py.util import nagImportErrorMessage
        raise ImportError(nagImportErrorMessage('f01fjc', system()))
    from nag4py.util import nag_complex_type_check_and_cast
    _a = nag_complex_type_check_and_cast('f01fjc', a, 'a')
    f01fjc_ctypes(order, n, _a, pda, fail)
Beispiel #3
0
def f01ekc(order, fun, n, a, pda, imnorm, fail):
    """
    Exponential, sine, cosine, sinh or cosh of a real matrix (Schur--Parlett
    algorithm).
    http://www.nag.co.uk/numeric/CL/nagdoc_cl23/html/f01/f01ekc.html

    TypeError will be raised when the following arguments are not instances
    of numpy.ndarray:
        a, imnorm
    TypeError will be raised when the following arguments are not of data type
    numpy.float:
        a, imnorm
    ImportError will be raised for this function on Mac.
    """
    from platform import system
    if system() == 'Darwin':
        from nag4py.util import nagImportErrorMessage
        raise ImportError(nagImportErrorMessage('f01ekc', system()))
    from nag4py.util import nag_double_type_check_and_cast
    _a = nag_double_type_check_and_cast('f01ekc', a, 'a')
    _imnorm = nag_double_type_check_and_cast('f01ekc', imnorm, 'imnorm')
    f01ekc_ctypes(order, fun, n, _a, pda, _imnorm, fail)