Module Expr Str Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareNotEq Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot BoolOpOr CompareIn Call NameLoad NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Call NameLoad Str body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad If UnaryOpNot BoolOpOr CompareIn Call NameLoad NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Call NameLoad Str body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad NameLoad If BoolOpOr CompareLt NameLoad NameLoad CompareGtE NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad BinOpSub NameLoad Num Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot BoolOpOr CompareIn Call NameLoad NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Call NameLoad Str body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad If UnaryOpNot BoolOpOr CompareIn Call NameLoad NameLoad AttributeLoad NameLoad attr CompareEq NameLoad Call NameLoad Str body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad NameLoad If BoolOpOr CompareLt NameLoad NameLoad CompareGt NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad If CompareNotIn Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad NameLoad If BoolOpOr CompareLt NameLoad NameLoad CompareGt NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotEq Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad If BoolOpOr CompareNotEq Call NameLoad NameLoad NameLoad CompareNotIn NameLoad NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd CompareNotEq Call NameLoad NameLoad NameLoad CompareNotEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad Call NameLoad NameLoad NameLoad If BoolOpAnd CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr Num body Return Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Str If Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str NameLoad If Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults BinOpPow Num Num NameLoad Str body Expr Str If BoolOpAnd CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr CompareGt Call AttributeLoad BinOpPow BinOpSub AttributeLoad NameLoad attr NameLoad Num attr BinOpPow NameLoad Num body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad Call AttributeLoad BinOpPow BinOpSub AttributeLoad NameLoad attr NameLoad Num attr NameLoad orelse If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareGt Call AttributeLoad Call AttributeLoad BinOpSub AttributeLoad NameLoad attr NameLoad attr BinOpSub AttributeLoad NameLoad attr NameLoad attr BinOpPow NameLoad Num body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad Call AttributeLoad Call AttributeLoad BinOpSub AttributeLoad NameLoad attr NameLoad attr BinOpSub AttributeLoad NameLoad attr NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults BinOpPow Num Num NameLoad NameLoad Str body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareGt NameLoad NameLoad body TryFinally body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad NameLoad finalbody If NameLoad body Assign NameStore BinOpSub Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Print TupleLoad Str Call AttributeLoad CompareGt Call NameLoad NameLoad NameLoad attr Print TupleLoad Str SubscriptLoad NameLoad Index CompareGt Call NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Return NameLoad orelse Raise Call NameLoad BinOpAdd Str NameLoad decorator_list NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore ListLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad BinOpAdd NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list
N/A N/A 
Created on 31 Jul 2009

@author: charanpal
 N/A numpy N/A scipy.sparse N/A logging Parameter N/A object N/A N/A 
    A class of static methods which are useful for type checking. 
     __init__ N/A N/A self N/A N/A N/A N/A checkClass N/A N/A obj objectType softCheck N/A False N/A N/A 
        Check if an object belongs to a particular class and raise a ValueError
        if it does not.

        :param objectType: The object to test. `
         N/A N/A N/A isinstance obj objectType N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A Expecting object of type  N/A str objectType  but received  N/A str N/A obj __class__ softCheck N/A True N/A staticmethod checkBoolean N/A N/A val softCheck N/A False N/A N/A 
        Check if val is a boolean and raise a ValueError if it is not.

        :param val: The value to test. 
        :type val: :class:`bool`
         N/A N/A N/A type val bool N/A N/A N/A N/A Parameter whatToDo N/A Expecting boolean but received  N/A str N/A type val softCheck N/A True N/A staticmethod checkIndex N/A N/A i min max softCheck N/A False N/A N/A 
        Check if i is an integer value between min inclusive and max exclusive and raise a
        ValueError if it is not. If one requires an open ended range, then min
        or max can be float('inf') for example.

        :param i: The value to test, such that min <= i < max.
        :type i: :class:`int`

        :param min: The minimum value of i.
        :type min: :class:`int`

        :param max: The maximum+1 value of i.
        :type max: :class:`int`
         N/A N/A N/A N/A N/A type min N/A Parameter intTypes N/A min N/A float -inf N/A N/A N/A N/A Parameter whatToDo N/A Minimum value is not an integer:  N/A str min softCheck N/A N/A N/A N/A N/A type max N/A Parameter intTypes N/A max N/A float inf N/A N/A N/A N/A Parameter whatToDo N/A Maximum value is not an integer:  N/A str max softCheck N/A N/A N/A type i N/A Parameter intTypes N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A Invalid parameter value (not int):  N/A str i  is  N/A str N/A type i softCheck N/A N/A N/A i min N/A i max N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A N/A N/A N/A Invalid parameter value:  N/A str i  not in [ N/A str min ,  N/A str N/A max 1 ] softCheck N/A True N/A staticmethod checkInt N/A N/A i min max softCheck N/A False N/A N/A 
        Check if i is an integer value between min and max inclusive and raise a
        ValueError if it is not. If one requires an open ended range, then min
        or max can be float('inf') for example.

        :param i: The value to test, such that min <= i <= max.
        :type i: :class:`int`

        :param min: The minimum value of i.
        :type min: :class:`int`

        :param max: The maximum value of i.
        :type max: :class:`int`
         N/A N/A N/A N/A N/A type min N/A Parameter intTypes N/A min N/A float -inf N/A N/A N/A N/A Parameter whatToDo N/A Minimum value is not an integer:  N/A str min softCheck N/A N/A N/A N/A N/A type max N/A Parameter intTypes N/A max N/A float inf N/A N/A N/A N/A Parameter whatToDo N/A Maximum value is not an integer:  N/A str max softCheck N/A N/A N/A type i N/A Parameter intTypes N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A Invalid parameter value (not int):  N/A str i  is  N/A str N/A type i softCheck N/A N/A N/A i min N/A i max N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A N/A N/A N/A Invalid parameter value:  N/A str i  not in [ N/A str min ,  N/A str max ] softCheck N/A True N/A staticmethod checkFloat N/A N/A i min max softCheck N/A False N/A N/A 
        Check if i is an floating point value between min and max inclusive and raise a
        ValueError if it is not. If one requires an open ended range, then min
        or max can be float('inf') for example.

        :param i: The value to test, such that min <= i <= max.
        :type i: :class:`float`

        :param min: The minimum value of i.
        :type min: :class:`float`

        :param max: The maximum value of i.
        :type max: :class:`float`
         N/A N/A N/A type min N/A Parameter floatTypes N/A N/A N/A N/A Parameter whatToDo N/A Minimum value is not a float:  N/A str min softCheck N/A N/A N/A type max N/A Parameter floatTypes N/A N/A N/A N/A Parameter whatToDo N/A Maximum value is not a float:  N/A str max softCheck N/A N/A N/A type i N/A Parameter floatTypes N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A Invalid parameter value (not float):  N/A str i  is  N/A str N/A type i softCheck N/A N/A N/A i min N/A i max N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A N/A N/A N/A Invalid parameter value:  N/A str i  not in [ N/A str min ,  N/A str max ] softCheck N/A True N/A staticmethod checkString N/A N/A s strList softCheck N/A False N/A N/A 
        Check if s is an string in strList and raise a ValueError if it is not.

        :param s: The string to test. 
        :type s: :class:`str`

        :param strList: A list of valid strings.
        :type strList: :class:`list`
         N/A N/A N/A type strList list N/A N/A N/A N/A Parameter whatToDo N/A Second parameter is required to be a list:  N/A str strList softCheck N/A N/A N/A N/A type s str N/A s strList N/A N/A N/A N/A Parameter whatToDo N/A Invalid string:  N/A str s softCheck N/A True N/A staticmethod checkList N/A N/A lst func params softCheck N/A False N/A N/A 
        Check if a list/ndarray obeys the constaints given by func. For example, in order
        to check if a list/ndarray lst contains integers between 0 and 10, one can use
        Parameter.checkList(lst, Parameter.checkInt, [0, 10]). The first argument
        of checkInt is taken from the input list and the remaining ones correspond to 
        the 3rd parameter of checkList. If an array is used as input, then it must be 1D. 

        :param lst: The list to test.
        :type lst: :class:`list`

        :param func: A function which raises an exception when an invalid list entry is encountered, otherwise does nothing.

        :param params: A list of parameter to the checking function. 
        :type lst: :class:`list`
         N/A N/A N/A N/A type lst list N/A N/A type lst N/A numpy ndarray N/A N/A N/A N/A Parameter whatToDo N/A First parameter is required to be a list or array, not  N/A str N/A type lst softCheck N/A N/A N/A N/A type lst N/A numpy ndarray N/A N/A lst ndim 1 N/A N/A N/A N/A Parameter whatToDo N/A First parameter must be 1 dimensional:  N/A str N/A lst shape softCheck N/A i lst N/A N/A N/A func i params N/A True N/A staticmethod checkArray N/A N/A array softCheck arrayInfo N/A False N/A N/A 
        Check that an array contains no nan or inf values
         N/A N/A N/A N/A N/A numpy isinf array any N/A N/A N/A N/A Parameter whatToDo N/A N/A The array  arrayInfo  contains a 'inf' value softCheck N/A N/A N/A N/A N/A numpy isnan array any N/A N/A N/A N/A Parameter whatToDo N/A N/A The array  arrayInfo  contains a 'NaN' value softCheck N/A N/A N/A N/A numpy isrealobj array N/A N/A N/A N/A Parameter whatToDo N/A N/A The array  arrayInfo  has an imaginary part softCheck N/A True N/A staticmethod checkSymmetric N/A N/A A tol softCheck arrayInfo N/A N/A 10 -6 False ? N/A N/A 
        Takes as input a matrix A and checks if it is symmetric by verifying whether
        ||A - A.T||_F < tol.
         N/A N/A N/A N/A type A N/A numpy ndarray N/A N/A N/A N/A N/A N/A A T A 2 sum N/A tol 2 N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A A= arrayInfo  is not a symmetric matrix, ||A.T - A||_F^2 =  N/A str N/A N/A N/A N/A N/A A T A 2 sum softCheck N/A N/A N/A N/A N/A N/A scipy sparse issparse A N/A N/A N/A N/A N/A N/A N/A A T A multiply N/A N/A A T A sum N/A tol 2 N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A A= arrayInfo  is not a symmetric matrix, ||A.T - A||_F^2 =  N/A str N/A N/A N/A N/A N/A N/A A T A multiply N/A N/A A T A sum softCheck N/A True N/A staticmethod checkOrthogonal N/A N/A A tol softCheck investigate arrayInfo N/A N/A 10 -6 False False ? N/A N/A 
        Takes as input a matrix A and checks if it is orthogonal by verifying whether
        ||A*A.T - Id||_F < tol.
         N/A diff N/A N/A N/A numpy linalg norm N/A N/A N/A N/A N/A N/A A conj T dot A N/A N/A numpy eye N/A N/A A shape N/A 1 N/A N/A diff tol N/A N/A N/A N/A N/A N/A Parameter whatToDo N/A N/A N/A Non-orthogonal matrix A= arrayInfo : ||A*A.T - Id||_F =  N/A str diff softCheck N/A N/A investigate N/A N/A Diff N/A N/A N/A N/A N/A N/A A conj T dot A N/A N/A numpy eye N/A N/A A shape N/A 1 N/A N/A indexes:
 N/A N/A N/A N/A abs Diff tol nonzero N/A N/A values
 N/A Diff N/A N/A N/A abs Diff tol N/A True N/A staticmethod whatToDo N/A N/A msg softCheck N/A False N/A N/A N/A N/A logging warn msg N/A softCheck N/A N/A False N/A N/A N/A ValueError N/A Check Error:  msg N/A staticmethod N/A a N/A N/A numpy int8 1 N/A b N/A N/A numpy int32 2 N/A intTypes N/A int N/A numpy int8 N/A numpy int16 N/A type N/A a b N/A type N/A b a N/A numpy int64 N/A floatTypes N/A float N/A numpy float32 N/A numpy float64 N/A