@@ -421,9 +421,9 @@ def _repr_html_(self):
421421 if syssize > config .defaults ['statesp.latex_maxsize' ]:
422422 return None
423423 elif config .defaults ['statesp.latex_repr_type' ] == 'partitioned' :
424- return super ()._repr_info (html = True ) + self ._latex_partitioned ()
424+ return super ()._repr_info_ (html = True ) + self ._latex_partitioned ()
425425 elif config .defaults ['statesp.latex_repr_type' ] == 'separate' :
426- return super ()._repr_info (html = True ) + self ._latex_separate ()
426+ return super ()._repr_info_ (html = True ) + self ._latex_separate ()
427427 else :
428428 raise ValueError (
429429 "Unknown statesp.latex_repr_type '{cfg}'" .format (
@@ -444,7 +444,7 @@ def _latex_partitioned_stateless(self):
444444
445445 lines = [
446446 r'$$' ,
447- (r'\left( '
447+ (r'\left[ '
448448 + r'\begin{array}'
449449 + r'{' + 'rll' * self .ninputs + '}' )
450450 ]
@@ -455,7 +455,7 @@ def _latex_partitioned_stateless(self):
455455
456456 lines .extend ([
457457 r'\end{array}'
458- r'\right) ' ,
458+ r'\right] ' ,
459459 r'$$' ])
460460
461461 return '\n ' .join (lines )
@@ -480,7 +480,7 @@ def _latex_partitioned(self):
480480
481481 lines = [
482482 r'$$' ,
483- (r'\left( '
483+ (r'\left[ '
484484 + r'\begin{array}'
485485 + r'{' + 'rll' * self .nstates + '|' + 'rll' * self .ninputs + '}' )
486486 ]
@@ -497,7 +497,7 @@ def _latex_partitioned(self):
497497
498498 lines .extend ([
499499 r'\end{array}'
500- + r'\right) ' ,
500+ + r'\right] ' ,
501501 r'$$' ])
502502
503503 return '\n ' .join (lines )
@@ -518,15 +518,15 @@ def _latex_separate(self):
518518
519519 def fmt_matrix (matrix , name ):
520520 matlines = [name
521- + r' = \left( \begin{array}{'
521+ + r' = \left[ \begin{array}{'
522522 + 'rll' * matrix .shape [1 ]
523523 + '}' ]
524524 for row in asarray (matrix ):
525525 matlines .append ('&' .join (_f2s (entry ) for entry in row )
526526 + '\\ \\ ' )
527527 matlines .extend ([
528528 r'\end{array}'
529- r'\right) ' ])
529+ r'\right] ' ])
530530 return matlines
531531
532532 if self .nstates > 0 :
0 commit comments