Module Expr Str ImportFrom alias alias alias Import alias identifier ImportFrom alias alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias identifier Assign NameStore ListLoad Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Str NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad TupleLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Num Num ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num ListLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num Num ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num Num ListLoad ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num Num Num ListLoad ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad ListLoad Num Num Num Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num For TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Slice Num Num TupleLoad Num Num ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num ListLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num ListLoad Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num ListLoad Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num ListLoad Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice Num ListLoad Num Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num NameLoad ListLoad Num Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad NameLoad ListLoad Num TupleLoad Num Num ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num NameLoad ListLoad Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad Num Num Num ListLoad Num Num Num TupleLoad Num Num ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num For TupleStore NameStore NameStore NameStore NameStore NameLoad body TryExcept body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad attr NameLoad If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Str CompareLtE Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice Num ListLoad Num Num Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice Num ListLoad Num Num Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num NameLoad SubscriptLoad NameLoad Slice Num ListLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad ListLoad Num Num Num NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad Num ListLoad Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad SubscriptLoad NameLoad Slice Num ListLoad Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr TupleLoad ListLoad NameLoad Num NameLoad For TupleStore NameStore NameStore NameStore NameLoad body TryExcept body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Raise Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad ListLoad NameLoad ListLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num For NameStore ListLoad Num Num Num Num Num Num body Assign NameStore BinOpAdd BinOpAdd Num BinOpFloorDiv NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd UnaryOpUSub NameLoad Num BinOpSub NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num ListLoad Num keyword TupleLoad Num Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Num For NameStore Call NameLoad Num Num body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad ListLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr ListLoad ListLoad Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword Str keyword Str Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num Num attr ListLoad ListLoad Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num Num attr ListLoad ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num Num attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num Num attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr Num Num keyword Str attr Call AttributeLoad NameLoad attr Str For NameStore ListLoad Num Num body For NameStore ListLoad Num Num body For NameStore Call NameLoad Num Num body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If CompareEq NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr ListLoad ListLoad Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num keyword Str keyword Str Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num For NameStore NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num For NameStore NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num ListLoad Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num ListLoad Num Assign NameStore Call NameLoad ListLoad ListLoad Num Assign NameStore Call NameLoad TupleLoad Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad ListLoad Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad ListLoad NameLoad ListLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad ListLoad ListLoad Num ListLoad Num Assign NameStore Call NameLoad ListLoad ListLoad Num Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num attr ListLoad ListLoad Num Num Num ListLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num attr Call NameLoad ListLoad ListLoad Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad Num Num attr Call NameLoad ListLoad ListLoad Num Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad ListLoad Num ListLoad Num attr Call NameLoad ListLoad ListLoad Num ListLoad Num Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Num attr Call NameLoad ListLoad ListLoad Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad NameLoad NameLoad body For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Num Num keyword Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Num Assign NameStore Call NameLoad Num Num keyword Num keyword Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num keyword Num keyword Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad Num Num Num Num body Assign NameStore Call NameLoad Num Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore ListLoad Str Str Str Str body Assign NameStore Call NameLoad Num Num keyword NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Lambda arguments args defaults Call NameLoad Num Num Num Expr Call NameLoad NameLoad Lambda arguments args defaults Call NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Num Num keyword Num keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad NameLoad Num Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Num Num keyword Num keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num keyword Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A test sparse matrix construction functions __future__ division print_function absolute_import N/A numpy np numpy array matrix numpy.testing TestCase run_module_suite assert_equal assert_ assert_array_equal assert_raises assert_array_almost_equal_nulp scipy.sparse csr_matrix coo_matrix scipy.sparse construct scipy.sparse.construct rand sprand N/A sparse_formats N/A csr csc coo bsr dia lil dok _sprandn N/A N/A m n density format dtype random_state N/A 0.01 coo None None N/A N/A N/A random_state None N/A N/A random_state N/A np random N/A N/A N/A isinstance random_state N/A int N/A np integer N/A N/A random_state N/A N/A N/A np random RandomState random_state N/A data_rvs N/A random_state randn N/A N/A N/A construct random m n density format dtype random_state data_rvs N/A TestConstructUtils N/A TestCase N/A test_spdiags N/A N/A self N/A N/A N/A diags1 N/A array N/A N/A 1 2 3 4 5 N/A diags2 N/A array N/A N/A 1 2 3 4 5 N/A 6 7 8 9 10 N/A diags3 N/A array N/A N/A 1 2 3 4 5 N/A 6 7 8 9 10 N/A 11 12 13 14 15 N/A cases N/A N/A N/A N/A cases append N/A diags1 0 1 1 N/A N/A 1 N/A N/A N/A cases append N/A diags1 N/A 0 1 1 N/A N/A 1 N/A N/A N/A cases append N/A diags1 N/A 0 2 1 N/A N/A 1 N/A 0 N/A N/A N/A cases append N/A diags1 N/A 0 1 2 N/A N/A 1 0 N/A N/A N/A cases append N/A diags1 N/A 1 1 2 N/A N/A 0 2 N/A N/A N/A cases append N/A diags1 N/A -1 1 2 N/A N/A 0 0 N/A N/A N/A cases append N/A diags1 N/A 0 2 2 N/A N/A 1 0 N/A 0 2 N/A N/A N/A cases append N/A diags1 N/A -1 2 2 N/A N/A 0 0 N/A 1 0 N/A N/A N/A cases append N/A diags1 N/A 3 2 2 N/A N/A 0 0 N/A 0 0 N/A N/A N/A cases append N/A diags1 N/A 0 3 4 N/A N/A 1 0 0 0 N/A 0 2 0 0 N/A 0 0 3 0 N/A N/A N/A cases append N/A diags1 N/A 1 3 4 N/A N/A 0 2 0 0 N/A 0 0 3 0 N/A 0 0 0 4 N/A N/A N/A cases append N/A diags1 N/A 2 3 5 N/A N/A 0 0 3 0 0 N/A 0 0 0 4 0 N/A 0 0 0 0 5 N/A N/A N/A cases append N/A diags2 N/A 0 2 3 3 N/A N/A 1 0 8 N/A 0 2 0 N/A 0 0 3 N/A N/A N/A cases append N/A diags2 N/A -1 0 3 4 N/A N/A 6 0 0 0 N/A 1 7 0 0 N/A 0 2 8 0 N/A N/A N/A cases append N/A diags2 N/A 2 -3 6 6 N/A N/A 0 0 3 0 0 0 N/A 0 0 0 4 0 0 N/A 0 0 0 0 5 0 N/A 6 0 0 0 0 0 N/A 0 7 0 0 0 0 N/A 0 0 8 0 0 0 N/A N/A N/A cases append N/A diags3 N/A -1 0 1 6 6 N/A N/A 6 12 0 0 0 0 N/A 1 7 13 0 0 0 N/A 0 2 8 14 0 0 N/A 0 0 3 9 15 0 N/A 0 0 0 4 10 0 N/A 0 0 0 0 5 0 N/A N/A N/A cases append N/A diags3 N/A -4 2 -1 6 5 N/A N/A 0 0 8 0 0 N/A 11 0 0 9 0 N/A 0 12 0 0 10 N/A 0 0 13 0 0 N/A 1 0 0 14 0 N/A 0 2 0 0 15 N/A N/A d o m n result cases N/A N/A N/A assert_equal N/A N/A N/A N/A construct spdiags d o m n todense result N/A test_diags N/A N/A self N/A N/A N/A a N/A array N/A 1 2 3 4 5 N/A b N/A array N/A 6 7 8 9 10 N/A c N/A array N/A 11 12 13 14 15 N/A cases N/A N/A N/A N/A cases append N/A N/A a N/A 1 0 N/A 1 1 N/A N/A 1 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A 0 N/A 1 1 N/A N/A 1 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A 0 N/A 2 1 N/A N/A 1 N/A 0 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A 0 N/A 1 2 N/A N/A 1 0 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A 1 N/A 1 2 N/A N/A 0 1 N/A N/A N/A cases append N/A N/A N/A a N/A 2 N/A 0 N/A 2 2 N/A N/A 1 0 N/A 0 2 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A -1 N/A 2 2 N/A N/A 0 0 N/A 1 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A 0 N/A 3 4 N/A N/A 1 0 0 0 N/A 0 2 0 0 N/A 0 0 3 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A 1 N/A 3 4 N/A N/A 0 1 0 0 N/A 0 0 2 0 N/A 0 0 0 3 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A -2 N/A 3 5 N/A N/A 0 0 0 0 0 N/A 0 0 0 0 0 N/A 1 0 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 2 N/A -1 N/A 3 5 N/A N/A 0 0 0 0 0 N/A 1 0 0 0 0 N/A 0 2 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A 0 N/A 3 5 N/A N/A 1 0 0 0 0 N/A 0 2 0 0 0 N/A 0 0 3 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A 1 N/A 3 5 N/A N/A 0 1 0 0 0 N/A 0 0 2 0 0 N/A 0 0 0 3 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A 2 N/A 3 5 N/A N/A 0 0 1 0 0 N/A 0 0 0 2 0 N/A 0 0 0 0 3 N/A N/A N/A cases append N/A N/A N/A a N/A 2 N/A 3 N/A 3 5 N/A N/A 0 0 0 1 0 N/A 0 0 0 0 2 N/A 0 0 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A 4 N/A 3 5 N/A N/A 0 0 0 0 1 N/A 0 0 0 0 0 N/A 0 0 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A -4 N/A 5 3 N/A N/A 0 0 0 N/A 0 0 0 N/A 0 0 0 N/A 0 0 0 N/A 1 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 2 N/A -3 N/A 5 3 N/A N/A 0 0 0 N/A 0 0 0 N/A 0 0 0 N/A 1 0 0 N/A 0 2 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A -2 N/A 5 3 N/A N/A 0 0 0 N/A 0 0 0 N/A 1 0 0 N/A 0 2 0 N/A 0 0 3 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A -1 N/A 5 3 N/A N/A 0 0 0 N/A 1 0 0 N/A 0 2 0 N/A 0 0 3 N/A 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A 0 N/A 5 3 N/A N/A 1 0 0 N/A 0 2 0 N/A 0 0 3 N/A 0 0 0 N/A 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 2 N/A 1 N/A 5 3 N/A N/A 0 1 0 N/A 0 0 2 N/A 0 0 0 N/A 0 0 0 N/A 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 1 N/A 2 N/A 5 3 N/A N/A 0 0 1 N/A 0 0 0 N/A 0 0 0 N/A 0 0 0 N/A 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 3 N/A b N/A 1 N/A 0 2 N/A 3 3 N/A N/A 1 0 6 N/A 0 2 0 N/A 0 0 3 N/A N/A N/A cases append N/A N/A N/A a N/A 2 N/A b N/A 3 N/A -1 0 N/A 3 4 N/A N/A 6 0 0 0 N/A 1 7 0 0 N/A 0 2 8 0 N/A N/A N/A cases append N/A N/A N/A a N/A 4 N/A b N/A 3 N/A 2 -3 N/A 6 6 N/A N/A 0 0 1 0 0 0 N/A 0 0 0 2 0 0 N/A 0 0 0 0 3 0 N/A 6 0 0 0 0 4 N/A 0 7 0 0 0 0 N/A 0 0 8 0 0 0 N/A N/A N/A cases append N/A N/A N/A a N/A 4 b N/A c N/A 4 N/A -1 0 1 N/A 5 5 N/A N/A 6 11 0 0 0 N/A 1 7 12 0 0 N/A 0 2 8 13 0 N/A 0 0 3 9 14 N/A 0 0 0 4 10 N/A N/A N/A cases append N/A N/A N/A a N/A 2 N/A b N/A 3 c N/A -4 2 -1 N/A 6 5 N/A N/A 0 0 6 0 0 N/A 11 0 0 7 0 N/A 0 12 0 0 8 N/A 0 0 13 0 0 N/A 1 0 0 14 0 N/A 0 2 0 0 15 N/A N/A N/A cases append N/A N/A a N/A 0 N/A 1 1 N/A N/A 1 N/A N/A N/A cases append N/A N/A N/A a N/A 3 b N/A 0 2 N/A 3 3 N/A N/A 1 0 6 N/A 0 2 0 N/A 0 0 3 N/A N/A N/A cases append N/A N/A N/A np array N/A N/A 1 2 3 N/A 4 5 6 N/A 0 -1 N/A 3 3 N/A N/A 1 0 0 N/A 4 2 0 N/A 0 5 3 N/A N/A N/A cases append N/A N/A 1 -2 1 N/A 1 0 -1 N/A 3 3 N/A N/A -2 1 0 N/A 1 -2 1 N/A 0 1 -2 N/A N/A d o shape result cases N/A N/A N/A N/A N/A assert_equal N/A N/A N/A N/A construct diags d o shape shape todense result N/A N/A N/A N/A shape N/A 0 N/A shape N/A 1 N/A hasattr N/A d N/A 0 __len__ N/A N/A len N/A d N/A 0 N/A max shape N/A N/A N/A assert_equal N/A N/A N/A N/A construct diags d o todense result N/A N/A N/A N/A N/A print N/A %r %r %r %r N/A d o shape result N/A N/A test_diags_default N/A N/A self N/A N/A N/A a N/A array N/A 1 2 3 4 5 N/A N/A assert_equal N/A N/A N/A N/A construct diags a todense N/A N/A np diag a N/A test_diags_default_bad N/A N/A self N/A N/A N/A a N/A array N/A N/A 1 2 3 4 5 N/A 2 3 4 5 6 N/A N/A assert_raises ValueError N/A construct diags a N/A test_diags_bad N/A N/A self N/A N/A N/A a N/A array N/A 1 2 3 4 5 N/A b N/A array N/A 6 7 8 9 10 N/A c N/A array N/A 11 12 13 14 15 N/A cases N/A N/A N/A N/A cases append N/A N/A N/A a N/A 0 0 N/A 1 1 N/A N/A N/A cases append N/A N/A N/A a N/A 4 b N/A c N/A 3 N/A -1 0 1 N/A 5 5 N/A N/A N/A cases append N/A N/A N/A a N/A 2 c N/A b N/A 3 N/A -4 2 -1 N/A 6 5 N/A N/A N/A cases append N/A N/A N/A a N/A 2 c N/A b N/A 3 N/A -4 2 -1 None N/A N/A N/A cases append N/A N/A N/A -4 2 -1 None N/A N/A N/A cases append N/A N/A 1 N/A -4 N/A 4 4 N/A N/A N/A cases append N/A N/A N/A a N/A 0 N/A -1 N/A 1 2 N/A N/A N/A cases append N/A N/A a 0 None N/A N/A d o shape cases N/A N/A N/A N/A N/A assert_raises ValueError N/A construct diags d o shape N/A N/A N/A N/A N/A print N/A %r %r %r N/A d o shape N/A N/A N/A assert_raises TypeError N/A construct diags N/A N/A None N/A 0 N/A test_diags_vs_diag N/A N/A self N/A N/A N/A N/A N/A N/A np random seed 1234 N/A n_diags N/A 1 2 3 4 5 10 N/A N/A n N/A N/A 1 N/A n_diags 2 N/A N/A N/A np random randint 0 10 N/A offsets N/A N/A np arange N/A N/A n 1 N/A n 1 N/A N/A N/A N/A np random shuffle offsets N/A offsets N/A offsets N/A n_diags N/A diagonals N/A N/A N/A N/A np random rand N/A n N/A abs q N/A q offsets N/A mat N/A N/A construct diags diagonals offsets N/A dense_mat N/A sum N/A N/A N/A np diag x j N/A N/A x j N/A zip diagonals offsets N/A N/A assert_array_almost_equal_nulp N/A N/A mat todense dense_mat N/A N/A N/A len offsets 1 N/A N/A mat N/A N/A construct diags N/A diagonals N/A 0 N/A offsets N/A 0 N/A dense_mat N/A N/A np diag N/A diagonals N/A 0 N/A offsets N/A 0 N/A N/A assert_array_almost_equal_nulp N/A N/A mat todense dense_mat N/A test_diags_dtype N/A N/A self N/A N/A N/A x N/A N/A construct diags N/A 2.2 N/A 0 shape N/A 2 2 dtype int N/A N/A assert_equal N/A x dtype int N/A N/A assert_equal N/A N/A x todense N/A N/A 2 0 N/A 0 2 N/A test_diags_one_diagonal N/A N/A self N/A N/A N/A d N/A list N/A range 5 N/A k N/A range -5 6 N/A N/A N/A assert_equal N/A N/A N/A N/A construct diags d k toarray N/A N/A N/A N/A construct diags N/A d N/A k toarray N/A test_identity N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A N/A N/A construct identity 1 toarray N/A N/A 1 N/A N/A assert_equal N/A N/A N/A N/A construct identity 2 toarray N/A N/A 1 0 N/A 0 1 N/A I N/A N/A construct identity 3 dtype int8 format dia N/A N/A assert_equal N/A I dtype N/A N/A np dtype int8 N/A N/A assert_equal N/A I format dia N/A fmt sparse_formats N/A N/A I N/A N/A construct identity 3 format fmt N/A N/A assert_equal N/A I format fmt N/A N/A assert_equal N/A N/A I toarray N/A N/A 1 0 0 N/A 0 1 0 N/A 0 0 1 N/A test_eye N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A N/A N/A construct eye 1 1 toarray N/A N/A 1 N/A N/A assert_equal N/A N/A N/A N/A construct eye 2 3 toarray N/A N/A 1 0 0 N/A 0 1 0 N/A N/A assert_equal N/A N/A N/A N/A construct eye 3 2 toarray N/A N/A 1 0 N/A 0 1 N/A 0 0 N/A N/A assert_equal N/A N/A N/A N/A construct eye 3 3 toarray N/A N/A 1 0 0 N/A 0 1 0 N/A 0 0 1 N/A N/A assert_equal N/A N/A N/A construct eye 3 3 dtype int16 dtype N/A N/A np dtype int16 N/A m N/A 3 5 N/A N/A n N/A 3 5 N/A N/A k N/A range -5 6 N/A N/A N/A assert_equal N/A N/A N/A N/A construct eye m n k k toarray N/A N/A np eye m n k k N/A N/A m n N/A N/A N/A assert_equal N/A N/A N/A N/A construct eye m k k toarray N/A N/A np eye m n k k N/A test_eye_one N/A N/A self N/A N/A N/A N/A assert_equal N/A N/A N/A N/A construct eye 1 toarray N/A N/A 1 N/A N/A assert_equal N/A N/A N/A N/A construct eye 2 toarray N/A N/A 1 0 N/A 0 1 N/A I N/A N/A construct eye 3 dtype int8 format dia N/A N/A assert_equal N/A I dtype N/A N/A np dtype int8 N/A N/A assert_equal N/A I format dia N/A fmt sparse_formats N/A N/A I N/A N/A construct eye 3 format fmt N/A N/A assert_equal N/A I format fmt N/A N/A assert_equal N/A N/A I toarray N/A N/A 1 0 0 N/A 0 1 0 N/A 0 0 1 N/A test_kron N/A N/A self N/A N/A N/A cases N/A N/A N/A N/A cases append N/A array N/A N/A 0 N/A N/A N/A cases append N/A array N/A N/A -1 N/A N/A N/A cases append N/A array N/A N/A 4 N/A N/A N/A cases append N/A array N/A N/A 10 N/A N/A N/A cases append N/A array N/A N/A 0 N/A 0 N/A N/A N/A cases append N/A array N/A N/A 0 0 N/A N/A N/A cases append N/A array N/A N/A 1 2 N/A 3 4 N/A N/A N/A cases append N/A array N/A N/A 0 2 N/A 5 0 N/A N/A N/A cases append N/A array N/A N/A 0 2 -6 N/A 8 0 14 N/A N/A N/A cases append N/A array N/A N/A 5 4 N/A 0 0 N/A 6 0 N/A N/A N/A cases append N/A array N/A N/A 5 4 4 N/A 1 0 0 N/A 6 0 8 N/A N/A N/A cases append N/A array N/A N/A 0 1 0 2 0 5 8 N/A N/A N/A cases append N/A array N/A N/A 0.5 0.125 0 3.25 N/A 0 2.5 0 0 N/A a cases N/A N/A b cases N/A N/A result N/A N/A N/A N/A construct kron N/A csr_matrix a N/A csr_matrix b todense N/A expected N/A N/A np kron a b N/A N/A assert_array_equal result expected N/A test_kronsum N/A N/A self N/A N/A N/A cases N/A N/A N/A N/A cases append N/A array N/A N/A 0 N/A N/A N/A cases append N/A array N/A N/A -1 N/A N/A N/A cases append N/A array N/A N/A 4 N/A N/A N/A cases append N/A array N/A N/A 10 N/A N/A N/A cases append N/A array N/A N/A 1 2 N/A 3 4 N/A N/A N/A cases append N/A array N/A N/A 0 2 N/A 5 0 N/A N/A N/A cases append N/A array N/A N/A 0 2 -6 N/A 8 0 14 N/A 0 3 0 N/A N/A N/A cases append N/A array N/A N/A 1 0 0 N/A 0 5 -1 N/A 4 -2 8 N/A a cases N/A N/A b cases N/A N/A result N/A N/A N/A N/A construct kronsum N/A csr_matrix a N/A csr_matrix b todense N/A expected N/A N/A N/A np kron N/A N/A np eye N/A len b a N/A N/A np kron b N/A N/A np eye N/A len a N/A N/A assert_array_equal result expected N/A test_vstack N/A N/A self N/A N/A N/A A N/A coo_matrix N/A N/A 1 2 N/A 3 4 N/A B N/A coo_matrix N/A N/A 5 6 N/A expected N/A matrix N/A N/A 1 2 N/A 3 4 N/A 5 6 N/A N/A assert_equal N/A N/A N/A N/A construct vstack N/A A B todense expected N/A N/A assert_equal N/A N/A N/A construct vstack N/A A B dtype N/A np float32 dtype N/A np float32 N/A N/A assert_equal N/A N/A N/A N/A construct vstack N/A N/A N/A A tocsr N/A N/A B tocsr todense expected N/A N/A assert_equal N/A N/A N/A construct vstack N/A N/A N/A A tocsr N/A N/A B tocsr dtype N/A np float32 dtype N/A np float32 N/A test_hstack N/A N/A self N/A N/A N/A A N/A coo_matrix N/A N/A 1 2 N/A 3 4 N/A B N/A coo_matrix N/A N/A 5 N/A 6 N/A expected N/A matrix N/A N/A 1 2 5 N/A 3 4 6 N/A N/A assert_equal N/A N/A N/A N/A construct hstack N/A A B todense expected N/A N/A assert_equal N/A N/A N/A construct hstack N/A A B dtype N/A np float32 dtype N/A np float32 N/A N/A assert_equal N/A N/A N/A N/A construct hstack N/A N/A N/A A tocsc N/A N/A B tocsc todense expected N/A N/A assert_equal N/A N/A N/A construct hstack N/A N/A N/A A tocsc N/A N/A B tocsc dtype N/A np float32 dtype N/A np float32 N/A test_bmat N/A N/A self N/A N/A N/A A N/A coo_matrix N/A N/A 1 2 N/A 3 4 N/A B N/A coo_matrix N/A N/A 5 N/A 6 N/A C N/A coo_matrix N/A N/A 7 N/A D N/A coo_matrix N/A 0 0 N/A expected N/A matrix N/A N/A 1 2 5 N/A 3 4 6 N/A 0 0 7 N/A N/A assert_equal N/A N/A N/A N/A construct bmat N/A N/A A B N/A None C todense expected N/A expected N/A matrix N/A N/A 1 2 0 N/A 3 4 0 N/A 0 0 7 N/A N/A assert_equal N/A N/A N/A N/A construct bmat N/A N/A A None N/A None C todense expected N/A expected N/A matrix N/A N/A 0 5 N/A 0 6 N/A 7 0 N/A N/A assert_equal N/A N/A N/A N/A construct bmat N/A N/A None B N/A C None todense expected N/A expected N/A matrix N/A N/A np empty N/A 0 0 N/A N/A assert_equal N/A N/A N/A N/A construct bmat N/A N/A None None todense expected N/A N/A assert_equal N/A N/A N/A N/A construct bmat N/A N/A None D N/A D None todense expected N/A expected N/A matrix N/A N/A 7 N/A N/A assert_equal N/A N/A N/A N/A construct bmat N/A N/A None D N/A C None todense expected N/A N/A assert_raises ValueError N/A construct bmat N/A N/A A N/A B N/A N/A assert_raises ValueError N/A construct bmat N/A N/A A C N/A test_block_diag_basic N/A N/A self N/A N/A N/A  basic test for block_diag  N/A A N/A coo_matrix N/A N/A 1 2 N/A 3 4 N/A B N/A coo_matrix N/A N/A 5 N/A 6 N/A C N/A coo_matrix N/A N/A 7 N/A expected N/A matrix N/A N/A 1 2 0 0 N/A 3 4 0 0 N/A 0 0 5 0 N/A 0 0 6 0 N/A 0 0 0 7 N/A N/A assert_equal N/A N/A N/A N/A construct block_diag N/A A B C todense expected N/A test_block_diag_scalar_1d_args N/A N/A self N/A N/A N/A  block_diag with scalar and 1d arguments  N/A N/A assert_array_equal N/A N/A N/A N/A construct block_diag N/A N/A 2 3 4 toarray N/A N/A 2 3 0 N/A 0 0 4 N/A test_block_diag_1 N/A N/A self N/A N/A N/A  block_diag with one matrix  N/A N/A assert_equal N/A N/A N/A N/A construct block_diag N/A N/A 1 0 todense N/A matrix N/A N/A 1 0 N/A N/A assert_equal N/A N/A N/A N/A construct block_diag N/A N/A N/A 1 0 todense N/A matrix N/A N/A 1 0 N/A N/A assert_equal N/A N/A N/A N/A construct block_diag N/A N/A N/A 1 N/A 0 todense N/A matrix N/A N/A 1 N/A 0 N/A N/A assert_equal N/A N/A N/A N/A construct block_diag N/A 1 todense N/A matrix N/A N/A 1 N/A test_random_sampling N/A N/A self N/A N/A N/A f N/A sprand _sprandn N/A N/A t N/A N/A np float32 N/A np float64 N/A np longdouble N/A N/A x N/A f 5 10 density 0.1 dtype t N/A N/A assert_equal N/A x dtype t N/A N/A assert_equal N/A x shape N/A 5 10 N/A N/A assert_equal N/A N/A N/A N/A x nonzero N/A 0 size 5 N/A x1 N/A f 5 10 density 0.1 random_state 4321 N/A N/A assert_equal N/A x1 dtype N/A np double N/A x2 N/A f 5 10 density 0.1 random_state N/A N/A N/A np random RandomState 4321 N/A N/A assert_array_equal N/A x1 data N/A x2 data N/A N/A assert_array_equal N/A x1 row N/A x2 row N/A N/A assert_array_equal N/A x1 col N/A x2 col N/A density N/A 0.0 0.1 0.5 1.0 N/A N/A x N/A f 5 10 density density N/A N/A assert_equal N/A x nnz N/A int N/A density N/A N/A np prod N/A x shape N/A fmt N/A coo csc csr lil N/A N/A x N/A f 5 10 format fmt N/A N/A assert_equal N/A x format fmt N/A N/A assert_raises ValueError N/A N/A N/A N/A N/A f 5 10 1.1 N/A N/A assert_raises ValueError N/A N/A N/A N/A N/A f 5 10 -0.1 N/A test_rand N/A N/A self N/A N/A N/A random_state N/A None 4321 N/A N/A N/A np random RandomState N/A N/A x N/A sprand 10 20 density 0.5 dtype N/A np float64 random_state random_state N/A N/A assert_ N/A N/A np all N/A N/A np less_equal 0 N/A x data N/A N/A assert_ N/A N/A np all N/A N/A np less_equal N/A x data 1 N/A test_randn N/A N/A self N/A N/A N/A random_state N/A None 4321 N/A N/A N/A np random RandomState N/A N/A x N/A _sprandn 10 20 density 0.5 dtype N/A np float64 random_state random_state N/A N/A assert_ N/A N/A np any N/A N/A np less N/A x data 0 N/A N/A assert_ N/A N/A np any N/A N/A np less 1 N/A x data N/A test_random_accept_str_dtype N/A N/A self N/A N/A N/A a N/A N/A construct random 10 10 dtype d N/A N/A N/A N/A __name__ __main__ N/A N/A N/A run_module_suite