#NEWLINE# def make_little_d( x , order , mode ) : #NEWLINE# #INDENT# "\n    Make the LP equation d' vector (Da = d')\n    " #NEWLINE# if ( mode == 'f' ) : #NEWLINE# #INDENT# return x [ order : ] . reshape ( ( len ( x ) - order ) , 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( mode == 'b' ) : #NEWLINE# #INDENT# L = ( len ( x ) - order ) #NEWLINE# return x [ : L ] . reshape ( L , 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( "mode must be 'f' or 'b'" )