#NEWLINE# @ classmethod #NEWLINE# def _new( cls , * args , **kwargs ) : #NEWLINE# #INDENT# ( shape , flat_list ) = cls . _handle_ndarray_creation_inputs ( * args , ** kwargs ) #NEWLINE# shape = Tuple ( * map ( _sympify , shape ) ) #NEWLINE# flat_list = flatten ( flat_list ) #NEWLINE# flat_list = Tuple ( * flat_list ) #NEWLINE# self = Basic . __new__ ( cls , flat_list , shape , ** kwargs ) #NEWLINE# self . _shape = shape #NEWLINE# self . _array = list ( flat_list ) #NEWLINE# self . _rank = len ( shape ) #NEWLINE# self . _loop_size = ( functools . reduce ( ( lambda x , y : ( x * y ) ) , shape ) if shape else 0 ) #NEWLINE# return self