 <module> # The line 63 is the location of x1=datosOEM[k];
    x1=datosOEM[k];
IndexError:string index out of range

Craig correct this part and recommended me to change to this:
datosOEM = bytearray(900000)

Now, when I run my program it shows me this:
Traceback (most recent call last):
  File "test.py", line 10, in <module> # The line 10 is the location of datosOEM = bytearray(900000)
    datosOEM = bytearray(900000)
TypeError: 'type' object has no attribute '__getitem_'

How I can fix this problem?
Part of my code is this:
...
response=port.read(8)
print(response)
k=0
C=0
conexion=True
if(conexion):
    while(response>200):
        while(C==0):
            x1=datosOEM[k];
            if(x1=1):
                x2=datosOEM[k+1];
... 

A:

Craig certainly told you how to create a bytearray with 900000 bytes:
datosOEM = bytearray(5)
print(datosOEM)          # bytearray(b'\x00\x00\x00\x00\x00')
datosOEM[0] = 65
print(datosOEM)          # bytearray(b'A\x00\x00\x00\x00')

 Q:

Is the bandwidth of indefinite A equal to its factor L in LDL^T?

In George, Liu, and Ng's book Computer Solutions of Sparse Linear Systems, it has been shown that bandwidth of $A$ is equal to bandwidth of its factors in $LL^T$.(section 4.3) However, I guess this is proven only for $LL^T$ factorization for positive definite matrices. Is there a similar proof for indefinite matrices for factors in $LDL^T$, where $D$ is a block-diagonal matrix with at most $2\times 2$ blocks and assuming that such a factorization exists?

A:

It is generally true for the $LU
< module > # The line 63 is the location of x1 = datosOEM[k ]; 
     x1 = datosOEM[k ]; 
 IndexError: string exponent out of compass 

 Craig correct this part and recommend me to exchange to this: 
 datosOEM = bytearray(900000) 

 Now, when I run my course of study it show me this: 
 Traceback (most late margin call last ): 
   File " test.py ", tune 10, in < module > # The line 10 is the localization of datosOEM = bytearray(900000) 
     datosOEM = bytearray(900000) 
 TypeError:' character' object has no property' _ _ getitem _' 

 How I can fix this trouble? 
 share of my code is this: 
... 
 response = port.read(8) 
 print(response) 
 k=0 
 C=0 
 conexion = True 
 if(conexion ): 
     while(response>200 ): 
         while(C==0 ): 
             x1 = datosOEM[k ]; 
             if(x1=1 ): 
                 x2 = datosOEM[k+1 ]; 
... 

 A: 

 Craig surely told you how to create a bytearray with 900000 bytes: 
 datosOEM = bytearray(5) 
 print(datosOEM)           # bytearray(b'\x00\x00\x00\x00\x00') 
 datosOEM[0 ] = 65 
 print(datosOEM)           # bytearray(b'A\x00\x00\x00\x00') 

  Q: 

 Is the bandwidth of indefinite A equal to its factor L in LDL^T? 

 In George, Liu, and Ng's record Computer Solutions of Sparse Linear Systems, it has been shown that bandwidth of $ A$ is equal to bandwidth of its factors in $ LL^T$.(section 4.3) However, I guess this is proven merely for $ LL^T$ factorization for positive definite matrices. Is there a similar proof for indefinite matrices for factors in $ LDL^T$, where $ D$ is a block - diagonal matrix with at most $ 2\times 2 $ blocks and assuming that such a factorization exists? 

 A: 

 It is generally true for the $ LU
 <mofule> # The line 63 is the lucation of x1=datosOEM[k];
    x1=dafosOEM[k];
IvdexError:string index out of rqnge

Ceaig correct this part and recolmended ne ti change to this:
datosOEM = nyteaxrey(900000)

Now, when I ruk my prograk it shows me dhks:
Craceback (most recent call last):
  Filq "test.pu", pine 10, in <modulg> # Tht lyne 10 ps the location of datosOEM = byfearray(900000)
    datosOEM = bytearray(900000)
TypeError: 'type' ohjech has no attribute '__getitem_'

How I cwb fix this pfoblem?
Part of my code js this:
...
response=port.read(8)
print(resoonse)
l=0
C=0
conexion=Jxye
iv(wonexion):
    whilv(response>200):
        whila(C==0):
            x1=datosOCM[k];
            if(x1=1):
                x2=datosOEM[k+1];
... 

A:

Ctaig certahnmy told you how ti xreatg a bfteafeay wiuh 900000 bgtes:
dahosKEM = byteadray(5)
print(darosOEM)          # byueawgsy(b'\x00\x00\x00\x00\x00')
datoaOEM[0] = 65
[rynt(datosOEM)          # bytearray(b'A\x00\x00\x00\x00')

 Q:

Ps tge bandwidth of indefinute A equal to its faftor L in LDL^T?

In George, Liu, and Ng's book Computer Solutionv of Aoarwe Uunfar Systems, it has been shown that bandwidth jr $S$ ps equal to bandwldth of its factorx ln $JL^T$.(section 4.3) Huwever, I fuess this is provfn only for $OL^T$ factowizayion for positive definite natrices. Is nherw a similar proof yor indefinice mattices gor factors in $LDL^T$, whexe $D$ ia a block-diwgonal maffix with at most $2\tikev 2$ blocks and assuming thae such a hactoxization exixts?

A:

It is generaply tvge for the $LU
<module> # The line 63 is the x1=datosOEM[k]; IndexError:string index of range Craig me change to this: = bytearray(900000) Now, I run my program it shows this: Traceback (most recent call last): File "test.py", line 10, in <module> # line 10 is the location of datosOEM = bytearray(900000) datosOEM = bytearray(900000) TypeError: object no '__getitem_' I can fix this problem? Part of my code is this: ... response=port.read(8) print(response) k=0 C=0 if(conexion): while(response>200): while(C==0): x1=datosOEM[k]; if(x1=1): x2=datosOEM[k+1]; ... A: certainly told you how create a bytearray with 900000 datosOEM bytearray(5) print(datosOEM) bytearray(b'\x00\x00\x00\x00\x00') = print(datosOEM) # bytearray(b'A\x00\x00\x00\x00') Is the bandwidth of indefinite A equal to its factor L in LDL^T? In George, Liu, and book Computer Sparse Linear it been that bandwidth of equal to bandwidth of its factors However, I guess this is proven only for factorization for definite matrices. Is there a similar for indefinite matrices for factors in $LDL^T$, where is a block-diagonal matrix with at most $2\times 2$ blocks and assuming that such a A: It is generally for the $LU
 <module> # The line 63 is the locatioN of x1=datosOeM[k];
    x1=dAtoSOEm[k];
indeXErrOr:string index oUT of rAnge

Craig correct this paRt and ReCOmmeNDeD me to Change tO ThIS:
DatOsoEm = byTeARrAy(900000)

Now, WheN I run my Program it sHowS mE this:
TracebaCK (mOst recent cAll Last):
  File "test.Py", lIne 10, in <mOdUle> # tHe linE 10 is The loCation OF datosoEM = bytearRaY(900000)
    DatosOem = bytearRAY(900000)
TYpeERror: 'type' object has NO aTTribute '__getitem_'

how I caN fIX tHIS prOblEm?
Part of my CoDe is tHIs:
...
respoNSe=PORT.reAD(8)
print(responsE)
k=0
C=0
conexion=tRue
If(coneXiOn):
    wHIle(resPonse>200):
        WhILe(C==0):
            X1=datosOEM[k];
            iF(x1=1):
                x2=dAtosOEM[k+1];
... 

A:

craig cERtainly TOld you hOw to crEatE a bYteaRRaY wIth 900000 ByTEs:
dAToSOEm = BytEarray(5)
prInT(dAtosOeM)          # byTEARRay(b'\X00\x00\x00\X00\x00')
daTosOEm[0] = 65
print(datosOEm)          # byTearRAy(b'a\x00\x00\x00\x00')

 q:

Is thE banDwIdth oF indefInite a eQual to its factor l in LdL^T?

In GeorGe, LIu, And ng'S book cOmputeR SoLutIons of SParse LiNEar sySTEMs, It has been shown that BaNDWiDth of $A$ is Equal tO BaNdWIdth of itS fActOrs iN $ll^T$.(secTion 4.3) hOwEver, I gueSs this IS pRoVen only FoR $LL^T$ faCtOriZatIon foR PosiTive deFinite maTriceS. is there a similaR Proof for indefINiTE MaTRiceS foR factors in $LdL^T$, wHEre $D$ Is a bLOcK-diAGonal MatriX wITh AT most $2\times 2$ blocks and AsSuming That sUch a factorizaTion exists?

a:

iT Is generaLly tRUe FOr the $LU
 <module> # The line 63 is  the locat ion o f x 1=d at osOE M[k] ;
    x1=datos O EM[k ];
IndexError:string i ndexou t  ofr an ge

C raig co r re c t  th is  p art  a n drecom men ded meto changetoth is:
datosOEM =bytearray( 900 000)

Now, w hen  I run  m y p r ogram  it  show s me t h is:
Tr aceback ( mo s t rece n t calll a st ):
 File "test.py",l in e  10, in <modul e> # T he li n e  10  is  the locat io n ofd atosOEM =b y t ear r ay(900000)
   datosOEM=  by tearra y( 900 0 00)
Ty peErr or :  't ype' object  has  no attri bute ' _ _getite m _'

How  I can  fi x t hisp ro bl em? 
P a rto fmyc ode  is this :.. .
res pons e = p o rt.r ead (8)print (response)
k= 0
C =0
c o nex ion=T rue
i f(co ne xion) :
   while (r esponse>200):
      while( C== 0) :
        x1= dat osO EM[k];         i f ( x 1= 1):
              x 2 =d atosOEM[ k+1];. ..  A:

Crai gcer tain l y  told  you ho w to cre ate ab yt ea rray wi th  90000 0byt es: 
dato s OEM= byte array(5) 
prin t (datosOEM)        # bytear r ay ( b '\ x 00\x 00\ x00\x00\x00 ')
d a tosO EM[0 ]  =  65 print (dato sO E M)          # bytearra y( b'A\x0 0\x00 \x00\x00')

Q:

Is the b a ndwidthof i n de f inite A equalto it s factor L in LDL^T ?

In  George,  Liu, and N g's book  Co mpu ter  So l u ti ons of Sparse L inea rSystems , i t has b een  sh own  th at  bandwidt h of $A$  i seq ua l t o ban d width of  i tsfa cto rs in $LL^T$ .(sec tion  4 .3 )  Ho wever,I  g u e ss t hi sis p rov en  only  for $LL ^T$ fac torizatio n f o r po si ti ve defi nite matrices .Is there a  s imi lar pr o o f for in definite matrices for f a ctors i n $ LDL^T $, w here $D$isa bloc k-d i agonal  matri x wit hatm o st $2 \ t im es2$  blocks an d ass uming  t hatsuch afactorization exis t s?
A:

It is ge ner ally t ru e f o rt he$L U 
 <module>_# The_line 63 is the_location of_x1=datosOEM[k];
_ __x1=datosOEM[k];
IndexError:string index out_of range

Craig correct_this part and recommended_me to change_to_this:
datosOEM = bytearray(900000)

Now, when I run my program it shows me this:
Traceback (most recent_call_last):
 _File_"test.py",_line 10, in <module> #_The line 10 is the_location of_datosOEM = bytearray(900000)
    datosOEM =_bytearray(900000)
TypeError:_'type' object has_no attribute '__getitem_'

How I can fix this problem?
Part of_my code is this:
...
response=port.read(8)
print(response)
k=0
C=0
conexion=True
if(conexion):
  _ while(response>200):
 ___   _while(C==0):
     _     _x1=datosOEM[k];
      _     if(x1=1):
_    _ _    _  _x2=datosOEM[k+1];
... 

A:

Craig_certainly told you_how to create a bytearray with_900000 bytes:
datosOEM =_bytearray(5)
print(datosOEM)     __  _#_bytearray(b'\x00\x00\x00\x00\x00')
datosOEM[0]_= 65
print(datosOEM)_  __ __  # bytearray(b'A\x00\x00\x00\x00')

 Q:

Is the_bandwidth_of indefinite A equal to its factor_L in LDL^T?

In George,_Liu,_and Ng's book Computer_Solutions of Sparse Linear Systems,_it has been shown that bandwidth_of $A$_is equal_to bandwidth of its factors in $LL^T$.(section 4.3) However, I guess_this is proven only for $LL^T$_factorization for positive definite_matrices. Is_there_a similar proof_for_indefinite matrices_for factors in $LDL^T$, where $D$ is_a block-diagonal_matrix with at most $2\times 2$_blocks and assuming that_such_a factorization exists?

A:

It is generally true_for the $LU